{"id":301,"date":"2022-02-14T02:20:24","date_gmt":"2022-02-13T18:20:24","guid":{"rendered":"https:\/\/www.scijournal.org\/articles\/?p=301"},"modified":"2023-05-22T06:12:23","modified_gmt":"2023-05-21T22:12:23","slug":"source-code-in-latex","status":"publish","type":"post","link":"https:\/\/www.scijournal.org\/articles\/source-code-in-latex","title":{"rendered":"How to Format and Highlight Source Code in LaTeX Listings"},"content":{"rendered":"\n<p>LaTeX is popular with professionals because it allows you to insert and format various types of content. If you want to obtain source code highlights for different languages, LaTeX can help you with this. Let\u2019s examine how to use <em>source code in LaTeX<\/em> listings.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_67_1 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f03deab1764\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f03deab1764\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.scijournal.org\/articles\/source-code-in-latex\/#Creating_Source_Code\" title=\"Creating Source Code\">Creating Source Code<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.scijournal.org\/articles\/source-code-in-latex\/#How_to_Import_Code_From_a_File\" title=\"How to Import Code From a File\">How to Import Code From a File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.scijournal.org\/articles\/source-code-in-latex\/#Custom_Formatting_Your_Source_Code\" title=\"Custom Formatting Your Source Code\">Custom Formatting Your Source Code<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.scijournal.org\/articles\/source-code-in-latex\/#Supported_Code_Languages\" title=\"Supported Code Languages\">Supported Code Languages<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.scijournal.org\/articles\/source-code-in-latex\/#Final_Thoughts\" title=\"Final Thoughts\">Final Thoughts<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.scijournal.org\/articles\/source-code-in-latex\/#Frequently_Asked_Questions\" title=\"Frequently Asked Questions\">Frequently Asked Questions<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.scijournal.org\/articles\/source-code-in-latex\/#Q1_How_to_Write_Source_Code_as_Text_in_LaTeX\" title=\"Q1. How to Write Source Code as Text in LaTeX?\">Q1. How to Write Source Code as Text in LaTeX?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.scijournal.org\/articles\/source-code-in-latex\/#Q2_How_to_Insert_Code_in_LaTeX_Document_With_Indentation\" title=\"Q2. How to Insert Code in LaTeX Document With Indentation?\">Q2. How to Insert Code in LaTeX Document With Indentation?<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.scijournal.org\/articles\/source-code-in-latex\/#Further_Reading\" title=\"Further Reading\">Further Reading<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"creating-source-code\"><span class=\"ez-toc-section\" id=\"Creating_Source_Code\"><\/span>Creating Source Code<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Let\u2019s start by looking at a simple example of printing source code in LaTeX<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\\documentclass&#x5B;a4paper,12pt]{article}\n\\usepackage{amssymb} \n\\usepackage{amsmath} \n\\usepackage&#x5B;utf8]{inputenc} \n\\usepackage&#x5B;ngerman]{babel} \n \n\\usepackage&#x5B;T1]{fontenc}\n\\usepackage&#x5B;margin=2.5cm]{geometry}\n\\usepackage{listings}\n \n\\usepackage{hyperref}\n \n\\begin{document}\n    \\lstinputlisting&#x5B;language=Java]{Othello.java}\n\\end{document}\n\n<\/pre><\/div>\n\n\n<p>In the above code, the commands <em>\\usepackage{amssymb}<\/em> and <em>\\usepackage{amsmath}<\/em> are needed for math. The commands <em>\\usepackage[utf8]{inputenc}<\/em> and <em>\\usepackage[ngerman]{babel}<\/em> informs LaTeX to use German amlauts.<\/p>\n\n\n\n<p>The command <em>\\usepackage[margin=2.5cm]{geometry}<\/em> affects the printed source code\u2019s layout. The command <em>\\usepackage{listings}<\/em> informs LaTeX to include the source code in the document. The command <em>\\usepackage{hyperref}<\/em> is needed for adding links in the text.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-import-code-from-a-file\"><span class=\"ez-toc-section\" id=\"How_to_Import_Code_From_a_File\"><\/span>How to Import Code From a File<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Code is generally stored within a source file. It is possible to pull the source code in LaTeX from a file using the command <em>\\lstinputlisting[language=LANGUAGENAME]{FILE NAME}<\/em>. This command also lets you choose which language the code will be in.<\/p>\n\n\n\n<p>If you wish to import only part of the source file, you can mention which lines of code to include. For example, if you wanted to import code lines 3 to 10, the above command would become <em>\\lstinputlisting[language=LANGUAGENAME , firstline=3, lastline=10]{FILE NAME}<\/em>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"custom-formatting-your-source-code\"><span class=\"ez-toc-section\" id=\"Custom_Formatting_Your_Source_Code\"><\/span>Custom Formatting Your Source Code<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In some cases, you may wish to format the text in your source in different ways. You can change the font, size, color, and spacing of source code text. We demonstrate how to do this in the following example:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: latex; title: ; notranslate\" title=\"\">\n\\documentclass&#x5B;a4paper,12pt]{article}\n\\usepackage{amssymb} \n\\usepackage{amsmath}\n\\usepackage&#x5B;utf8]{inputenc}\n\\usepackage&#x5B;ngerman]{babel}\n\\usepackage&#x5B;T1]{fontenc}    \n\\usepackage&#x5B;margin=2.5cm]{geometry} \n\\usepackage{listings} \n \n \n\\usepackage{color}\n \n\\definecolor{dkgreen}{rgb}{0,0.6,0}\n\\definecolor{gray}{rgb}{0.5,0.5,0.5}\n\\definecolor{mauve}{rgb}{0.58,0,0.82}\n \n\\lstset{ %\n  language=Java,                \n  basicstyle=\\footnotesize,     \n  numbers=left,               \n  numberstyle=\\tiny\\color{gray},\n  stepnumber=1,                                       \n  numbersep=5pt,                 \n  backgroundcolor=\\color{white},  \n  showspaces=false,             \n  showstringspaces=false,         \n  showtabs=false,                 \n  frame=single,                   \n  rulecolor=\\color{black},       \n  tabsize=4,                   \n  captionpos=b,        \n  breaklines=true,             \n  breakatwhitespace=false,       \n  title=\\lstname,                                                  \n  keywordstyle=\\color{blue},          \n  commentstyle=\\color{dkgreen},    \n  stringstyle=\\color{mauve},       \n  escapeinside={\\%*}{*)},        \n  morekeywords={*,...}              \n}\n \n\\usepackage{hyperref}\n \n\\newcommand{\\authorName}{Mark Smith}\n\\newcommand{\\tags}{\\authorName, my, tags}\n\\title{This is the document title}\n\\author{\\Your Author Name}\n\\date{\\today}\n \n\\hypersetup{\n  pdfauthor   = {\\Your Author Name},\n  pdfkeywords = {\\tags},\n  pdftitle    = {This is the document title}\n}\n \n\\begin{document}\n    \\lstinputlisting&#x5B;language=Java]{Othello.java}\n\\end{document}\n\n<\/pre><\/div>\n\n\n<p>In the above code, the following commands were required for syntax highlighting:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: latex; title: ; notranslate\" title=\"\">\n\\usepackage{color}\n\\definecolor{dkgreen}{rgb}{0,0.6,0}\n\\definecolor{gray}{rgb}{0.5,0.5,0.5}\n\\definecolor{mauve}{rgb}{0.58,0,0.82}\n\n<\/pre><\/div>\n\n\n<p>We then used the command <em>\\lstset{&#8230;}<\/em> to create a listing. The codes under this are explained in the following bullet points:<\/p>\n\n\n\n<ul><li><em>language=Java<\/em>: Sets the code language.<\/li><li><em>basicstyle=\\footnotesize<\/em>: Sets the font size for the fonts used in the code.<\/li><li><em>numbers=left<\/em>: Indicates where line-numbers are to be placed.<\/li><li><em>numberstyle=\\tiny\\color{gray}<\/em>: Sets the style for line-numbers.<\/li><li><em>stepnumber=1<\/em>: Sets the step number between two line-numbers. Setting this as \u201c1\u201d numbers each line.<\/li><li><em>numbersep=5pt<\/em>: Sets the distance between line-numbers and the code.<\/li><li><em>backgroundcolor=\\color{white}<\/em>: Sets the background color, but you need to add <em>\\usepackage{color}<\/em> in the preamble.<\/li><li><em>showspaces=false<\/em>: Informs LaTeX to show spaces for adding underscores.<\/li><li><em>showstringspaces=false<\/em>: Informs LaTeX to underline the spaces within strings.<\/li><li><em>showtabs=false<\/em>: Informs LaTeX to show tabs that are within strings while adding underscores.<\/li><li><em>frame=single<\/em>: Informs LaTeX to add a frame around the printed code.<\/li><li><em>rulecolor=\\color{black}<\/em>: This sets the frame frame-color.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"supported-code-languages\"><span class=\"ez-toc-section\" id=\"Supported_Code_Languages\"><\/span>Supported Code Languages<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The example above references Java as the source code language. However, LaTeX supports a large number of languages. This includes:<\/p>\n\n\n\n<ul><li>ABAP (R\/2 4.3, R\/2 5.0, R\/3 3.1, R\/3 4.6C, R\/3 6.10)<\/li><li>ACSL Ada (83, 95)<\/li><li>Algol (60, 68)<\/li><li>Ant<\/li><li>Assembler (x86masm)<\/li><li>Awk (gnu, POSIX), bash, Basic (Visual)<\/li><li>C (ANSI, Handel, Objective, Sharp)&nbsp;<\/li><li>C++ (ANSI, GNU, ISO, Visual)<\/li><li>Caml (light, Objective)<\/li><li>Clean<\/li><li>Cobol (1974, 1985, ibm)<\/li><li>Comal 80<\/li><li>csh<\/li><li>Delphi<\/li><li>Ei\ufb00el<\/li><li>Elan<\/li><li>erlang<\/li><li>Euphoria<\/li><li>Fortran (77, 90, 95)<\/li><li>GCL<\/li><li>Gnuplot<\/li><li>Haskell<\/li><li>HTML<\/li><li>IDL (empty, CORBA)<\/li><li>inform<\/li><li>Java (empty, AspectJ)<\/li><li>JVMIS, ksh<\/li><li>Lisp (empty, Auto)<\/li><li>Logo<\/li><li>make (empty, gnu)<\/li><li>Mathematica (1.0, 3.0)<\/li><li>Matlab<\/li><li>Mercury<\/li><li>MetaPost<\/li><li>Miranda<\/li><li>Mizar<\/li><li>ML<\/li><li>Modula-2<\/li><li>MuPAD<\/li><li>NASTRAN<\/li><li>Oberon-2<\/li><li>OCL (decorative, OMG)<\/li><li>Octave, Oz<\/li><li>Pascal (Borland6, Standard, XSC)<\/li><li>Perl,PHP<\/li><li>PL\/I,Plasm<\/li><li>POV<\/li><li>Prolog<\/li><li>Promela,Python<\/li><li>R<\/li><li>Reduce<\/li><li>Rexx<\/li><li>RSL<\/li><li>Ruby&nbsp;<\/li><li>S (empty, PLUS)<\/li><li>SAS<\/li><li>Scilab<\/li><li>Sh<\/li><li>SHELXL<\/li><li>Simula (67, CII, DEC, IBM)<\/li><li>SQL<\/li><li>tcl (empty, tk)<\/li><li>TeX (AlLaTeX, common, LaTeX, plain, primitive)<\/li><li>VBScript<\/li><li>Verilog<\/li><li>VHDL (empty, AMS)<\/li><li>VRML (97)<\/li><li>XML<\/li><li>XSLT<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"final-thoughts\"><span class=\"ez-toc-section\" id=\"Final_Thoughts\"><\/span>Final Thoughts<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>As you can see, LaTeX offers a straightforward route for printing source code. The above guide offers only a basic introduction to the topic. However, the section on customizing source code should prove to be useful for programmers that wish to represent their code in an easy-to-read manner.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-embed aligncenter is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"LaTeX Programming : 031 : Writing Source Codes Part 1 of 4 : Verbatim and Listing\" width=\"1200\" height=\"675\" src=\"https:\/\/www.youtube.com\/embed\/-trhlQToLiU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"has-text-align-center\" style=\"font-size:12px\">You can learn more about writing source codes in LaTeX from this <a href=\"https:\/\/www.youtube.com\/watch?v=-trhlQToLiU&amp;ab_channel=FluidicColours\" target=\"_blank\" rel=\"noopener\">video<\/a>.<\/p>\n\n\n\n<p>LaTeX is great at creating professional-looking documents, so any code you print is bound to look fantastic. So try printing source code in your next LaTeX document.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"frequently-asked-questions\"><span class=\"ez-toc-section\" id=\"Frequently_Asked_Questions\"><\/span>Frequently Asked Questions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Some frequently asked questions related to source code in LaTeX are shown below.<\/p>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1630933492938\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q1_How_to_Write_Source_Code_as_Text_in_LaTeX\"><\/span>Q1. How to Write Source Code as Text in LaTeX?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can write source code without the lines being interpreted as code by LaTeX using the commands:<br \/>\\begin{verbatim}<br \/>[YOUR SOURCE CODE]<br \/>\\end{verbatim}<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1630933503322\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q2_How_to_Insert_Code_in_LaTeX_Document_With_Indentation\"><\/span>Q2. How to Insert Code in LaTeX Document With Indentation?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can add indentation to your code by inserting it using the verbatim environment.<br \/>\\begin{verbatim}<br \/>[YOUR CODE LINE 1]<br \/>[YOU CODE LINE 2]<br \/>\\end{verbatim}<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: latex; title: ; notranslate\" title=\"\">\n\n<\/pre><\/div>\n\n\n<h2 class=\"gb-headline gb-headline-c8ee9dc0 gb-headline-text\"><span class=\"ez-toc-section\" id=\"Further_Reading\"><\/span><strong>Further Reading<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>LaTex Tutorial<\/strong><\/p>\n\n\n\n<ol><li><a href=\"https:\/\/www.scijournal.org\/articles\/pros-and-cons-of-using-latex\">27 Pros and Cons of Using LaTex for Scientific Writing<\/a> <\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-document\">6 easy steps to create your first Latex document examples<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/circuit-diagrams-in-latex\">How to add circuit diagrams in Latex<\/a> <\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-font\">How to change Latex font and font size<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-table-of-contents\">How to create a Latex table of contents<\/a> <\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/footnotes-in-latex\">How to create footnotes in LaTeX and how to refer to them, using the builtin commands<\/a> <\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/glossaries-in-latex\">How to create Glossaries in LaTeX<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/plots-in-latex\">How to create plots in Latex \u2013 codes and examples<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/symbols-in-latex\">How to create symbols in LaTeX \u2013 commands for Latex greek alphabet<\/a>\u00a0 <\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-tables\">How to create tables in LaTeX \u2013 rows, columns, pages and landscape tables<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/graphs-in-latex\">How to drawing graphs in Latex \u2013 vector graphics with tikz<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/image-in-latex\">How to insert an image in LaTeX \u2013 Managing Latex figure and picture<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-bullet-points\">How to Itemize and Number List \u2013 Adding Latex Bullet Points<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/hyperlinks-in-latex\">How to make hyperlink in latex \u2013 Clickable links<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/reference-in-latex\">How to reference in Latex \u2013 5 steps to bibliography with Bibtex<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-packages\">How to use Latex Packages with examples<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-paragraphs\">How to use LaTeX paragraphs and sections<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-installation-guide\">LaTeX Installation Guide \u2013 Easy to follow steps to install LaTex<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-equations-and-math\">Learn to typeset and align Latex equations and math<\/a><\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>LaTeX is popular with professionals because it allows you to insert and format various types of content. If you want to obtain source code highlights for different languages, LaTeX can help you with this. Let\u2019s examine how to use source code in LaTeX listings. Creating Source Code Let\u2019s start by looking at a simple example &#8230; <a title=\"How to Format and Highlight Source Code in LaTeX Listings\" class=\"read-more\" href=\"https:\/\/www.scijournal.org\/articles\/source-code-in-latex\" aria-label=\"Read more about How to Format and Highlight Source Code in LaTeX Listings\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":302,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/301"}],"collection":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/comments?post=301"}],"version-history":[{"count":5,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/301\/revisions"}],"predecessor-version":[{"id":5588,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/301\/revisions\/5588"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/media\/302"}],"wp:attachment":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/media?parent=301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/categories?post=301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/tags?post=301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}