{"id":206,"date":"2022-02-14T02:35:14","date_gmt":"2022-02-13T18:35:14","guid":{"rendered":"https:\/\/www.scijournal.org\/articles\/?p=206"},"modified":"2024-04-18T02:39:36","modified_gmt":"2024-04-17T18:39:36","slug":"reference-in-latex","status":"publish","type":"post","link":"https:\/\/www.scijournal.org\/articles\/reference-in-latex","title":{"rendered":"How to Reference in Latex &#8211; 7 Steps to Bibliography with BibTeX"},"content":{"rendered":"\n<p><em>Want to learn how to Reference in Latex? Here are 7 Steps to Master Bibliography with BibTeX.<\/em><\/p>\n\n\n\n<p>Adding references and citations to any document can be a time-consuming task. You may need to include a single reference multiple times and also ensure each one follows a consistent referencing style.<\/p>\n\n\n\n<p>The good news is that LaTeX\u2019s bibliography management tool BibTeX makes much of the work involved in reference management a breeze. This is because BibTeX bibliography entries are kept within a separate BibTeX database file that can be imported easily into your main document.<\/p>\n\n\n\n<p>Some of the benefits of using BibTeX file for reference in LaTex include:<\/p>\n\n\n\n<ul><li>Having to type each reference only once<\/li><li>Achieving a consistent citation style throughout your document<\/li><li>Easily getting each item you cite to show up as a reference at the end of the document<\/li><\/ul>\n\n\n\n<p>In general, using bib file for referencing saves a lot of time. This makes it useful for researchers that need to cite or include a large number of references that are presented consistently in their document.<\/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-69d96d1aac6a5\" 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-69d96d1aac6a5\" 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\/reference-in-latex\/#How_to_Add_a_Reference_in_LaTeX_Bibliography_Management\" title=\"How to Add a Reference in LaTeX Bibliography Management\">How to Add a Reference in LaTeX Bibliography Management<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.scijournal.org\/articles\/reference-in-latex\/#Step_1_%E2%80%93_Begin_Document_%E2%80%93_Making_a_LaTeX_document\" title=\"Step 1 &#8211; Begin Document &#8211; Making a LaTeX document\">Step 1 &#8211; Begin Document &#8211; Making a LaTeX document<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.scijournal.org\/articles\/reference-in-latex\/#Step_2_%E2%80%93_Creating_a_new_reference_bib_file_with_%E2%80%9Cbib%E2%80%9D_extension\" title=\"Step 2 &#8211; Creating a new reference bib file with \u201c.bib\u201d extension\">Step 2 &#8211; Creating a new reference bib file with \u201c.bib\u201d extension<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.scijournal.org\/articles\/reference-in-latex\/#Step_3_%E2%80%93_Locating_the_paper_to_be_cited_in_Google_Scholar\" title=\"Step 3 &#8211; Locating the paper to be cited in Google Scholar\">Step 3 &#8211; Locating the paper to be cited in Google Scholar<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.scijournal.org\/articles\/reference-in-latex\/#Step_4_%E2%80%93_Obtaining_the_citation_in_BibTeX_format_for_Reference_in_LaTex\" title=\"Step 4 &#8211; Obtaining the citation in BibTeX format for Reference in LaTex&nbsp;\">Step 4 &#8211; Obtaining the citation in BibTeX format for Reference in LaTex&nbsp;<\/a><\/li><\/ul><\/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\/reference-in-latex\/#How_to_Call_a_Reference_in_LaTex_Bibliography\" title=\"How to Call a Reference in LaTex Bibliography\">How to Call a Reference in LaTex Bibliography<\/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\/reference-in-latex\/#Step_5_%E2%80%93_Calling_a_LaTex_Reference\" title=\"Step 5 &#8211; Calling a LaTex Reference\">Step 5 &#8211; Calling a LaTex Reference<\/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\/reference-in-latex\/#Step_6_%E2%80%93_Managing_and_Creating_Your_Preferred_LaTex_Bibliography_Styles\" title=\"Step 6 &#8211; Managing and Creating Your Preferred LaTex Bibliography Styles\">Step 6 &#8211; Managing and Creating Your Preferred LaTex Bibliography Styles<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.scijournal.org\/articles\/reference-in-latex\/#Step_7_%E2%80%93_Compiling_the_Code_for_Reference_in_LaTex\" title=\"Step 7 &#8211; Compiling the Code for Reference in LaTex&nbsp;\">Step 7 &#8211; Compiling the Code for Reference in LaTex&nbsp;<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.scijournal.org\/articles\/reference-in-latex\/#Summary\" title=\"Summary\">Summary<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.scijournal.org\/articles\/reference-in-latex\/#Additional_Tips\" title=\"Additional Tips\">Additional Tips<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.scijournal.org\/articles\/reference-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-13\" href=\"https:\/\/www.scijournal.org\/articles\/reference-in-latex\/#Q1_How_do_you_reference_equations_in_LaTeX\" title=\"Q1: How do you reference equations in LaTeX?\">Q1: How do you reference equations in LaTeX?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.scijournal.org\/articles\/reference-in-latex\/#Q2_What_is_Documentclass_LaTeX\" title=\"Q2: What is Documentclass LaTeX?\">Q2: What is Documentclass LaTeX?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.scijournal.org\/articles\/reference-in-latex\/#Q3_How_do_you_add_references_in_LaTeX_without_citations\" title=\"Q3: How do you add references in LaTeX without citations?\">Q3: How do you add references in LaTeX without citations?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.scijournal.org\/articles\/reference-in-latex\/#Q4_How_do_you_reference_labels_in_LaTeX\" title=\"Q4: How do you reference labels in LaTeX?\">Q4: How do you reference labels in LaTeX?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/www.scijournal.org\/articles\/reference-in-latex\/#Q5_How_do_you_change_the_reference_style_in_LaTeX\" title=\"Q5: How do you change the reference style in LaTeX?\">Q5: How do you change the reference style in LaTeX?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/www.scijournal.org\/articles\/reference-in-latex\/#Q6_How_do_you_cite_all_references_in_LaTeX\" title=\"Q6: How do you cite all references in LaTeX?\">Q6: How do you cite all references in LaTeX?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/www.scijournal.org\/articles\/reference-in-latex\/#Q7_Where_can_you_get_more_help_with_LaTex\" title=\"Q7: Where can you get more help with LaTex?\">Q7: Where can you get more help with LaTex?<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/www.scijournal.org\/articles\/reference-in-latex\/#Further_Reading\" title=\"Further Reading\">Further Reading<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"how-to-add-a-reference-in-latex-bibliography-management\"><span class=\"ez-toc-section\" id=\"How_to_Add_a_Reference_in_LaTeX_Bibliography_Management\"><\/span>How to Add a Reference in LaTeX Bibliography Management<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Adding a reference in a LaTex bibliography file, or bib file can seem intimidating at first. However, managing a bib file is a relatively simple and straightforward process once you understand the steps involved. We have broken down the procedure into 7 simple steps for this guide.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-1-begin-document-making-a-latex-document\"><span class=\"ez-toc-section\" id=\"Step_1_%E2%80%93_Begin_Document_%E2%80%93_Making_a_LaTeX_document\"><\/span>Step 1 &#8211; Begin Document &#8211; Making a LaTeX document<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Begin document: Create an empty LaTeX document with \u201c.tex\u201d extension in your preferred <a href=\"https:\/\/www.scijournal.org\/articles\/best-latex-editors\"  data-wpil-monitor-id=\"382\">LaTeX editor<\/a>. This could be TeXstudio, ShareLaTeX, or Texmaker.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-2-creating-a-new-reference-bib-file-with-bib-extension\"><span class=\"ez-toc-section\" id=\"Step_2_%E2%80%93_Creating_a_new_reference_bib_file_with_%E2%80%9Cbib%E2%80%9D_extension\"><\/span>Step 2 &#8211; Creating a new reference bib file with \u201c.bib\u201d extension<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Create a new empty file and rename it to \u201ccitation.bib\u201d.&nbsp;<\/p>\n\n\n\n<p>The \u201cbib\u201d extension informs the LaTeX compiler that the bib file contains all the references for your document. Each of these files will be formatted in a particular style discussed in later steps.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-3-locating-the-paper-to-be-cited-in-google-scholar\"><span class=\"ez-toc-section\" id=\"Step_3_%E2%80%93_Locating_the_paper_to_be_cited_in_Google_Scholar\"><\/span>Step 3 &#8211; Locating the paper to be cited in Google Scholar<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The next step is to obtain your citation. Look for the paper you wish to cite in&nbsp; Google Scholar. Once you have located the paper on Google Scholar\u2019s search results, look for a set of inverted commas next to a star symbol.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/BA9NKEskvwQZ6PwLmbqk0D0qXHZYL5_9O_4NUl37j1gEYBQyrt4Y7P0PG_wy8qWH8xvNrg64Yf9_9mi7MCL55oUlAUpRUj_PSMJY3DNYEbFuaQ3N4k-Nlv0X-CregWT7frc0N2XS\" alt=\"\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-4-obtaining-the-citation-in-bibtex-format-for-reference-in-latex\"><span class=\"ez-toc-section\" id=\"Step_4_%E2%80%93_Obtaining_the_citation_in_BibTeX_format_for_Reference_in_LaTex\"><\/span>Step 4 &#8211; Obtaining the citation in BibTeX format for Reference in LaTex&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Select the inverted commas, and a window titled \u201ccite\u201d should appear.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/57pvsLfxXOWQqcOe_DxGEONOsQXLAadY1qFMLHUb5bwgeCWa8i9FkbnSaeLzYAG_49N7LG26hmEm-8SkfJn45nsanPtlR3S7ZB5LjjErB3kV1P1h0zl0tlAgJc8TkaGAsotiF-Hl\" alt=\"\"\/><\/figure>\n\n\n\n<p>This Cite window will list a number of different citation styles such as MLA and APA. At the bottom of this window, there should be a set of hyperlinks for BibTeX, EndNote, RefMan, and RefWorks. Select BibTeX and your citation should appear in the following format:<\/p>\n\n\n\n<p><em>@article{yaggi2006sleep,<\/em><\/p>\n\n\n\n<p><em>&nbsp;&nbsp;title={Sleep duration as a risk factor for the development of type 2 diabetes},<\/em><\/p>\n\n\n\n<p><em>&nbsp;&nbsp;author={Yaggi, H Klar and Araujo, Andre B and McKinlay, John B},<\/em><\/p>\n\n\n\n<p><em>&nbsp;&nbsp;journal={Diabetes care},<\/em><\/p>\n\n\n\n<p><em>&nbsp;&nbsp;volume={29},<\/em><\/p>\n\n\n\n<p><em>&nbsp;&nbsp;number={3},<\/em><\/p>\n\n\n\n<p><em>&nbsp;&nbsp;pages={657&#8211;661},<\/em><\/p>\n\n\n\n<p><em>&nbsp;&nbsp;year={2006},<\/em><\/p>\n\n\n\n<p><em>&nbsp;&nbsp;publisher={Am Diabetes Assoc}<\/em><\/p>\n\n\n\n<p><em>}<\/em><\/p>\n\n\n\n<p>You can also add a second citation by following the same steps for a second paper in Google Scholar.<\/p>\n\n\n\n<p><em>@article{weitzman1982chronobiology,<\/em><\/p>\n\n\n\n<p><em>&nbsp;&nbsp;title={Chronobiology of aging: temperature, sleep-wake rhythms and entrainment},<\/em><\/p>\n\n\n\n<p><em>&nbsp;&nbsp;author={Weitzman, Elliot D and Moline, Margaret L and Czeisler, Charles A and Zimmerman, Janet C},<\/em><\/p>\n\n\n\n<p><em>&nbsp;&nbsp;journal={Neurobiology of aging},<\/em><\/p>\n\n\n\n<p><em>&nbsp;&nbsp;volume={3},<\/em><\/p>\n\n\n\n<p><em>&nbsp;&nbsp;number={4},<\/em><\/p>\n\n\n\n<p><em>&nbsp;&nbsp;pages={299&#8211;309},<\/em><\/p>\n\n\n\n<p><em>&nbsp;&nbsp;year={1982},<\/em><\/p>\n\n\n\n<p><em>&nbsp;&nbsp;publisher={Elsevier}<\/em><\/p>\n\n\n\n<p><em>}<\/em><\/p>\n\n\n\n<p>For these citations, \u201c<em>yaggi2006sleep\u201d<\/em> and \u201c<em>weitzman1982chronobiology<\/em>\u201d are referred to as the key of their respective papers. You can follow the above steps to add each reference you would like to cite in your document. Once this is complete, you can return to your main LaTeX file and cite your papers individually.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-call-a-reference-in-latex-bibliography\"><span class=\"ez-toc-section\" id=\"How_to_Call_a_Reference_in_LaTex_Bibliography\"><\/span>How to Call a Reference in LaTex Bibliography<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-5-calling-a-latex-reference\"><span class=\"ez-toc-section\" id=\"Step_5_%E2%80%93_Calling_a_LaTex_Reference\"><\/span>Step 5 &#8211; Calling a LaTex Reference<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Calling a reference in the LaTex bibliography is also quite straightforward. In a new line, you can type:<\/p>\n\n\n\n<p><em>The references for the paper in our example are \\cite{yaggi2006sleep} and \\cite{weitzman1982chronobiology}.<\/em><\/p>\n\n\n\n<p>Remember that the document keys are vital for citing each paper, so ensure you enter them correctly.<\/p>\n\n\n\n<p>[Need example of what this looks like]<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-6-managing-and-creating-your-preferred-latex-bibliography-styles\"><span class=\"ez-toc-section\" id=\"Step_6_%E2%80%93_Managing_and_Creating_Your_Preferred_LaTex_Bibliography_Styles\"><\/span>Step 6 &#8211; Managing and Creating Your Preferred LaTex Bibliography Styles<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>In the next line, you can choose your preferred bibliography style. For this example, we will be using IEEE referencing style. This is a numbered referencing bibliography style that uses citation numbers provided in square brackets in your document.<\/p>\n\n\n\n<p>Type the following:<\/p>\n\n\n\n<p><em>\\bibliographystyle{ieeetr}<\/em><\/p>\n\n\n\n<p><em>\\bibliography{citation}&nbsp;<\/em><\/p>\n\n\n\n<p>You can also add references in the following bibtex styles by simply including the style code in place of <em>ieeetr<\/em>:<\/p>\n\n\n\n<p><strong>Plain<\/strong><\/p>\n\n\n\n<p>With this bibliography style, references are shown in alphabetical order and are labeled numerically. Use <em>plain<\/em> in the above code to add citations in this style.<\/p>\n\n\n\n<p><strong>Unsrt<\/strong><\/p>\n\n\n\n<p>References appear in order of citation and are labeled numerically. Use <em>unsrt<\/em> in the above code to add citations in this style.<\/p>\n\n\n\n<p><strong>Alpha<\/strong><\/p>\n\n\n\n<p>Same as plain, but the references are labeled by entry. Use <em>alpha <\/em>in the above code to add citations in this style.<\/p>\n\n\n\n<p><strong>Abbrv<\/strong><\/p>\n\n\n\n<p>Same as plain, but first names and journal names use abbreviations. Use <em>abbrv<\/em> in the above code to add citations in this style.<\/p>\n\n\n\n<p><strong>ACM<\/strong><\/p>\n\n\n\n<p>This style shows in-text citations as numbers enclosed in square brackets and separated with commas such as [1, 2]. Use <em>acm<\/em> in the above code to add citations in this style.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-7-compiling-the-code-for-reference-in-latex\"><span class=\"ez-toc-section\" id=\"Step_7_%E2%80%93_Compiling_the_Code_for_Reference_in_LaTex\"><\/span>Step 7 &#8211; Compiling the Code for Reference in LaTex&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Next, compile and run your code. Your document will refresh a few times. You can then view the bibliography at the end of the LaTeX document. The references for our IEETR style example will show up as:<\/p>\n\n\n\n<p><em>The references for this paper are [1] and [2]<\/em>.&nbsp;<\/p>\n\n\n\n<p>[1] and [2] refer to the citations list at the end of the document.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/qPucChC3W8phPtIuASPPMsvHD2_8WGVsovTsPIwWKwlhZqqFoGoqE5WU_YQHI-nCUtXuvZ2-tci3op-NgB4rUbK88f0P7IC2kKoLDJLWcXUL1alZ_GX9R8E-DPPNJ4P33noPD2RN\" alt=\"\"\/><\/figure>\n\n\n\n<p><a href=\"https:\/\/www.bibtex.com\/img\/base-ieeetr-style-intext-citation-700x452.png?v=18\" rel=\"nofollow noopener\" target=\"_blank\"><\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"summary\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The above steps are summarized as:<\/p>\n\n\n\n<ol><li>Create an empty LaTeX document in the .tex extension.<\/li><li>Create a new reference file in the .bib extension.<\/li><li>Locate the paper, journal, or book to be cited in Google Scholar.<\/li><li>Obtain the citation in BibTeX format<\/li><li>Call the reference<\/li><li>Select your citation style in LaTex.<\/li><li>Compile the code in LaTex.<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"additional-tips\"><span class=\"ez-toc-section\" id=\"Additional_Tips\"><\/span>Additional Tips<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>As you can see, adding and calling references in LaTeX is a relatively straightforward process. Some tips to keep in mind when working with references in BibTeX and LaTeX include:<\/p>\n\n\n\n<ul><li>Running your .tex LaTeX file through LaTeX before running BibTeX as the latter program requires the auxiliary file produced by LaTeX.<\/li><li>Noting down the key for your paper, book, or journal properly as they will be vital for calling your reference in the bibliography.<\/li><li>Ensuring the code mentioned above is entered with the correct syntax to avoid any compilation errors in LaTex.&nbsp;<\/li><\/ul>\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<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1630925585124\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q1_How_do_you_reference_equations_in_LaTeX\"><\/span>Q1: How do you reference equations in LaTeX?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can reference equations in LaTeX by inserting a label in your equation with an \u201ceqn:\u201d prefix. A typical LaTeX equation resembles the following:<br \/><em>\\begin{equation}<\/em><br \/><em>\\label{eqn:somelabel}<\/em><br \/><em>e=mc^2<\/em><br \/><em>\\end{equation}<\/em><\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1630925627892\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q2_What_is_Documentclass_LaTeX\"><\/span>Q2: What is Documentclass LaTeX?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>The first line of code in a LaTeX document is referred to as the Documentclass declaration command. It resembles the following:<br \/><em>\\documentclass[options]{class}<\/em><br \/>Documentclass informs LaTex about which layout standard to use. Some common document classes include:<br \/><em>article<\/em>: For articles from scientific journals and presentations.<br \/><em>book<\/em>: For books.<br \/><em>letter<\/em>: For writing letters<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1630925642880\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q3_How_do_you_add_references_in_LaTeX_without_citations\"><\/span>Q3: How do you add references in LaTeX without citations?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>If you wish to list references without citing them in the text body, you can add a single input using:<br \/><em>\\nocite{keyname}<\/em><br \/>You can then mark any key within the .bib file by using:<br \/><em>\\nocite{*}<\/em><br \/>Add this command for each entry in the bib data file or <em>\\nocite{key} <\/em>for a single one that isn\u2019t cited in the text.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1630925664533\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q4_How_do_you_reference_labels_in_LaTeX\"><\/span>Q4: How do you reference labels in LaTeX?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can reference labels in LaTeX by placing a <em>\\label{key}<\/em> command behind a sectioning command, chapter, or image. You should then assign a unique key to it. Following this, you can use <em>\\ref{key}<\/em> and <em>\\pageref{key}<\/em> commands to reference them.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1630925684086\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q5_How_do_you_change_the_reference_style_in_LaTeX\"><\/span>Q5: How do you change the reference style in LaTeX?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can change the reference style in LaTeX by altering the <em>\\bibliographystyle{ filename} <\/em>line in your LaTeX document. <em>Filename<\/em> here should be replaced with your preferred reference style such as <em>plain <\/em>and <em>ieeetr<\/em>.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1630925690680\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q6_How_do_you_cite_all_references_in_LaTeX\"><\/span>Q6: How do you cite all references in LaTeX?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can cite all your sources by typing <em>\\citeall<\/em>.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1630925701552\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q7_Where_can_you_get_more_help_with_LaTex\"><\/span>Q7: Where can you get more help with LaTex?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can get more help with LaTeX by visiting <a href=\"https:\/\/en.wikibooks.org\/wiki\/LaTeX\" target=\"_blank\" rel=\"noopener\">https:\/\/en.wikibooks.org\/wiki\/LaTeX<\/a>.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/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\/source-code-in-latex\">How to highlight source code in LaTeX<\/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\/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>Want to learn how to Reference in Latex? Here are 7 Steps to Master Bibliography with BibTeX. Adding references and citations to any document can be a time-consuming task. You may need to include a single reference multiple times and also ensure each one follows a consistent referencing style. The good news is that LaTeX\u2019s &#8230; <a title=\"How to Reference in Latex &#8211; 7 Steps to Bibliography with BibTeX\" class=\"read-more\" href=\"https:\/\/www.scijournal.org\/articles\/reference-in-latex\" aria-label=\"Read more about How to Reference in Latex &#8211; 7 Steps to Bibliography with BibTeX\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":200,"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\/206"}],"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=206"}],"version-history":[{"count":8,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/206\/revisions"}],"predecessor-version":[{"id":26359,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/206\/revisions\/26359"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/media\/200"}],"wp:attachment":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/media?parent=206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/categories?post=206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/tags?post=206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}