{"id":213,"date":"2022-02-14T02:35:56","date_gmt":"2022-02-13T18:35:56","guid":{"rendered":"https:\/\/www.scijournal.org\/articles\/?p=213"},"modified":"2026-04-15T19:17:56","modified_gmt":"2026-04-15T11:17:56","slug":"latex-table-of-contents","status":"publish","type":"post","link":"https:\/\/www.scijournal.org\/articles\/latex-table-of-contents","title":{"rendered":"How to Create a LaTeX Table of Contents &#8211; 6 steps to create and custom ToC"},"content":{"rendered":"\n<p>One of the standout features in LaTeX is the ability to generate a Latex table of contents easily. A Table of Contents is an essential inclusion in many documents, as it provides readers with an overview of the content. This helps them navigate to the information they are seeking quickly.<\/p>\n\n\n\n<p>Creating a Table of Contents in LaTeX can seem tricky at first. However, it is easy to do once you understand the commands involved <a href=\"https:\/\/coolzino.it\/\" target=\"_blank\" rel=\"noopener\">Coolzino<\/a>.<\/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-69e4a432d552f\" 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-69e4a432d552f\" 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\/latex-table-of-contents\/#Creating_a_Table_of_Contents_in_LaTeX\" title=\"Creating a Table of Contents in LaTeX\">Creating a Table of Contents in LaTeX<\/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\/latex-table-of-contents\/#Customizing_the_Table_of_Contents\" title=\"Customizing the Table of Contents\">Customizing the Table of Contents<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.scijournal.org\/articles\/latex-table-of-contents\/#Step_1_Change_the_List_Headings\" title=\"Step 1. Change the List Headings\">Step 1. Change the List Headings<\/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\/latex-table-of-contents\/#Step_2_Add_%E2%80%9CPage%E2%80%9D_Above_the_Page_Numbers\" title=\"Step 2. Add \u201cPage\u201d Above the Page Numbers\">Step 2. Add \u201cPage\u201d Above the Page Numbers<\/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\/latex-table-of-contents\/#Step_3_Change_the_Depth_of_Table_of_Contents_Entries\" title=\"Step 3. Change the Depth of Table of Contents Entries\">Step 3. Change the Depth of Table of Contents Entries<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.scijournal.org\/articles\/latex-table-of-contents\/#Step_4_Use_Different_Styles_For_Table_of_Contents_Page_Numbers\" title=\"Step 4. Use Different Styles For Table of Contents Page Numbers\">Step 4. Use Different Styles For Table of Contents Page Numbers<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.scijournal.org\/articles\/latex-table-of-contents\/#Step_5_Add_Lists_of_Table_of_Contents\" title=\"Step 5. Add Lists of Table of Contents\">Step 5. Add Lists of Table of Contents<\/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\/latex-table-of-contents\/#Step_6_Add_a_List_of_Figures_in_Table_of_Contents\" title=\"Step 6. Add a List of Figures in Table of Contents\">Step 6. Add a List of Figures in Table of Contents<\/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\/latex-table-of-contents\/#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-10\" href=\"https:\/\/www.scijournal.org\/articles\/latex-table-of-contents\/#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-11\" href=\"https:\/\/www.scijournal.org\/articles\/latex-table-of-contents\/#Q1_How_do_you_create_a_Table_of_Contents_in_LaTeX\" title=\"Q1: How do you create a Table of Contents in LaTeX?\">Q1: How do you create a Table of Contents in LaTeX?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.scijournal.org\/articles\/latex-table-of-contents\/#Q2_How_do_you_add_an_Appendix_to_a_Table_of_Contents_in_LaTeX\" title=\"Q2: How do you add an Appendix to a Table of Contents in LaTeX?\">Q2: How do you add an Appendix to a Table of Contents in LaTeX?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.scijournal.org\/articles\/latex-table-of-contents\/#Q3_How_to_Create_a_LaTeX_Table_of_Contents_With_Links\" title=\"Q3: How to Create a LaTeX Table of Contents With Links?\">Q3: How to Create a LaTeX Table of Contents With Links?<\/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\/latex-table-of-contents\/#Q4_How_to_Change_the_LaTeX_Table_of_Contents_Style\" title=\"Q4: How to Change the LaTeX Table of Contents Style?\">Q4: How to Change the LaTeX Table of Contents Style?<\/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\/latex-table-of-contents\/#Q5_What_to_Do_if_the_LaTeX_Table_of_Contents_Arent_Working\" title=\"Q5: What to Do if the LaTeX Table of Contents Aren\u2019t Working?\">Q5: What to Do if the LaTeX Table of Contents Aren\u2019t Working?<\/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\/latex-table-of-contents\/#Q6_What_Is_a_LaTeX_Table_of_Contents_Beamer\" title=\"Q6: What Is a LaTeX Table of Contents Beamer?\u00a0\">Q6: What Is a LaTeX Table of Contents Beamer?\u00a0<\/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\/latex-table-of-contents\/#Q7_What_Is_LaTeX_Table_of_Contents_Depth\" title=\"Q7 What Is LaTeX Table of Contents Depth?\u00a0\">Q7 What Is LaTeX Table of Contents Depth?\u00a0<\/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\/latex-table-of-contents\/#Q8_How_to_Change_LaTeX_Table_of_Contents_Unnumbered_Sections\" title=\"Q8: How to Change LaTeX Table of Contents Unnumbered Sections?\">Q8: How to Change LaTeX Table of Contents Unnumbered Sections?<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/www.scijournal.org\/articles\/latex-table-of-contents\/#Further_Reading\" title=\"Further Reading\">Further Reading<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"creating-a-table-of-contents-in-latex\"><span class=\"ez-toc-section\" id=\"Creating_a_Table_of_Contents_in_LaTeX\"><\/span>Creating a Table of Contents in LaTeX<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Creating a simple Table of Contents is a straightforward process. Users simply need to enter the following command:<\/p>\n\n\n\n<p><em>\\tableofcontents<\/em><\/p>\n\n\n\n<p>You should keep in mind that the document needs to be typeset twice to produce this list. The first iteration will collect each heading and caption, before writing them to the \u201c.toc\u201d meta file. The second iteration will print the list on the basis of the meta file content.&nbsp;<\/p>\n\n\n\n<p>The following example illustrates the commands for a document with a Table of Contents:<\/p>\n\n\n\n<p><em>\\documentclass{article}<\/em><\/p>\n\n\n\n<p><em>\\begin{document}<\/em><\/p>\n\n\n\n<p><em>\\tableofcontents<\/em><\/p>\n\n\n\n<p><em>\\newpage<\/em><\/p>\n\n\n\n<p><em>\\section{Section}<\/em><\/p>\n\n\n\n<p><em>Example text 1<\/em><\/p>\n\n\n\n<p><em>\\subsection{Subsection}<\/em><\/p>\n\n\n\n<p><em>Example text 2<\/em><\/p>\n\n\n\n<p><em>\\end{document}<\/em><\/p>\n\n\n\n<p>The above commands should produce a table of contents that resembles the following:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/tZKs9ue81gFazgrmNynPGXOp7e_--H-F8Mp-1vIufgHPsgSu0WCGLBnt1aO7x_KglSIa9kKchkn3sgDBMtcXHfpFad4VZG8sfXKI4bDaoTWFG0hj-jEHbs9P6W1IBphKtbRPfrsv\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"customizing-the-table-of-contents\"><span class=\"ez-toc-section\" id=\"Customizing_the_Table_of_Contents\"><\/span>Customizing the Table of Contents<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>LaTeX also offers many options for customizing your Table of Contents.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-1-change-the-list-headings\"><span class=\"ez-toc-section\" id=\"Step_1_Change_the_List_Headings\"><\/span>Step 1. Change the List Headings<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>It is possible to change the heading without loading a specific package. You can use the following command to do this:<\/p>\n\n\n\n<p><em>\\renewcommand\\contentsname{}<\/em><\/p>\n\n\n\n<p><em>\\tableofcontents<\/em><\/p>\n\n\n\n<p>So if you wanted to change the heading from Table of Contents to Summary, the command would resemble:<\/p>\n\n\n\n<p><em>\\renewcommand\\contentsname{Summary}<\/em><\/p>\n\n\n\n<p><em>\\tableofcontents<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-2-add-page-above-the-page-numbers\"><span class=\"ez-toc-section\" id=\"Step_2_Add_%E2%80%9CPage%E2%80%9D_Above_the_Page_Numbers\"><\/span>Step 2. Add \u201cPage\u201d Above the Page Numbers<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>It is possible to add the word \u201cPage\u201d above the page numbers in the Table of Contents. You can do this with the following command:<\/p>\n\n\n\n<p><em>\\tableofcontents<\/em><\/p>\n\n\n\n<p><em>\\addtocontents{toc}{~\\hfill\\textbf{Page}\\par}<\/em><\/p>\n\n\n\n<p><em>\\chapter{&#8230;}<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-3-change-the-depth-of-table-of-contents-entries\"><span class=\"ez-toc-section\" id=\"Step_3_Change_the_Depth_of_Table_of_Contents_Entries\"><\/span>Step 3. Change the Depth of Table of Contents Entries<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Users can change the depth or the number of levels to be printed in the Table of Contents using the following command:<\/p>\n\n\n\n<p><em>\\setcounter{tocdepth}{1}<\/em><\/p>\n\n\n\n<p><em>\\tableofcontents<\/em><\/p>\n\n\n\n<p>In this example \u201c1\u201d refers to a section. \u201c2\u201d would create a subsection and so forth.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-4-use-different-styles-for-table-of-contents-page-numbers\"><span class=\"ez-toc-section\" id=\"Step_4_Use_Different_Styles_For_Table_of_Contents_Page_Numbers\"><\/span>Step 4. Use Different Styles For Table of Contents Page Numbers<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Users can change the style for the page numbers in the Table of Contents using the command:<\/p>\n\n\n\n<p><em>\\pagenumbering{}<\/em><\/p>\n\n\n\n<p>LaTeX supports different styles such as Roman, Alph, and arabic. If you wanted to change the page numbering style to Roman and then switch it back to Arabic before the beginning of the first chapter, the code would resemble the following:<\/p>\n\n\n\n<p><em>\\pagenumbering{roman}<\/em><\/p>\n\n\n\n<p><em>\\tableofcontents<\/em><\/p>\n\n\n\n<p><em>\\listoffigures<\/em><\/p>\n\n\n\n<p><em>\\listoftables<\/em><\/p>\n\n\n\n<p><em>\\clearpage<\/em><\/p>\n\n\n\n<p><em>\\pagenumbering{arabic}<\/em><\/p>\n\n\n\n<p><em>\\chapter{&#8230;}<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-5-add-lists-of-table-of-contents\"><span class=\"ez-toc-section\" id=\"Step_5_Add_Lists_of_Table_of_Contents\"><\/span>Step 5. Add Lists of Table of Contents<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>It is possible to add entries to your Table of Contents using a single command. Many users do this to ensure the page number of each section is correct. This command is:<\/p>\n\n\n\n<p><em>\\addcontentsline{}{}{}<\/em><\/p>\n\n\n\n<p>The above brackets refer to file the line (toc), the entry type (chapter or figure), and the entry text.<\/p>\n\n\n\n<p>Adding the three lists to the Table of Contents resembles the following:<\/p>\n\n\n\n<p><em>\\tableofcontents<\/em><\/p>\n\n\n\n<p><em>\\addcontentsline{toc}{chapter}{Contents}<\/em><\/p>\n\n\n\n<p><em>\\listoffigures<\/em><\/p>\n\n\n\n<p><em>\\addcontentsline{toc}{chapter}{List of Figures}<\/em><\/p>\n\n\n\n<p><em>\\listoftables<\/em><\/p>\n\n\n\n<p><em>\\addcontentsline{toc}{chapter}{List of Tables}<\/em><\/p>\n\n\n\n<p>This should produce a Table of Content that resembles the following:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/9TPT2pZkHKqUniQbiLeKtct9-vMT5x2JdwrAdH-Vy-JRzOzbz6SFhgUUHzBeJp4a3k33dqlfooZ0xAuFw8b1YH-Dw9q-ZR2YMcSv8o046XauEFXaD2ALe3ODgTgB1De0EUmnk0Gr\" alt=\"\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-6-add-a-list-of-figures-in-table-of-contents\"><span class=\"ez-toc-section\" id=\"Step_6_Add_a_List_of_Figures_in_Table_of_Contents\"><\/span>Step 6. Add a List of Figures in Table of Contents<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Users can add a list of figures using the command <em>\\listoffigures<\/em>. After compiling the code, the output should resemble the following:<\/p>\n\n\n\n<p><em>\\documentclass{article}<\/em><\/p>\n\n\n\n<p><em><\/em><em>\\usepackage[utf8]{inputenc}<\/em><\/p>\n\n\n\n<p><em><\/em><em>\\title{List of Figures}<\/em><\/p>\n\n\n\n<p><em><\/em><em>\\author{User }<\/em><\/p>\n\n\n\n<p><em><\/em><em>\\date{}<\/em><\/p>\n\n\n\n<p><em><\/em><em>\\begin{document}<\/em><\/p>\n\n\n\n<p><em><\/em><em>\\begin{figure}<\/em><\/p>\n\n\n\n<p><em>&nbsp;&nbsp;&nbsp;&nbsp;<\/em><em> <\/em><em>\\caption{Your first figure}<\/em><\/p>\n\n\n\n<p><em>&nbsp;&nbsp;&nbsp;&nbsp;<\/em><em> <\/em><em>\\caption{Your second figure}<\/em><\/p>\n\n\n\n<p><em><\/em><em>\\end{figure}<\/em><\/p>\n\n\n\n<p><em><\/em><em>\\begin{appendix}<\/em><\/p>\n\n\n\n<p><em><\/em><em>\\listoffigures<\/em><\/p>\n\n\n\n<p><em><\/em><em>\\end{appendix}<\/em><\/p>\n\n\n\n<p><em><\/em><em>\\end{document}<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/_1k2TIWHdG3l7mtvhgGaG1T3axc1E4WgB9960TU2mXX5bs0ySqzwGrq7XGfFd5t8PJjS3okcgj995FBnVMH1Dcuhv97KEkF0GcwU77XX7m9Coh5HwFTTC8PX2mLMFTui98LSLTER\" alt=\"\"\/><\/figure>\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, adding a Table of Contents to your LaTeX document is a relatively easy process. Customizing this Table of Contents does require the right commands. However, this process becomes much faster once you understand the process.<\/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<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1630925037989\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q1_How_do_you_create_a_Table_of_Contents_in_LaTeX\"><\/span>Q1: How do you create a Table of Contents in LaTeX?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can add a Table of Contents using the following command: <em>\\tableofcontents<\/em><\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1630925043741\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q2_How_do_you_add_an_Appendix_to_a_Table_of_Contents_in_LaTeX\"><\/span>Q2: How do you add an Appendix to a Table of Contents in LaTeX?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can add an appendix to the Table of Contents with the following code:<br \/><em>\\appendix<\/em><br \/><em>\\addtocontents{toc}{\\cftpagenumbersoff{chapter}}\u00a0<\/em><br \/><em>\\chapter*{APPENDICES}<\/em><br \/><em>\\addtocontents{toc}{\\protect\\contentsline {chapter}{APPENDICES}{}{}}<\/em><br \/><em>\\addtocontents{toc}{\\cftpagenumberson{chapter}}\u00a0<\/em><br \/><em>\\makeatletter<\/em><br \/><em>\\addtocontents{toc}{\\let\\protect\\l@chapter\\protect\\l@section}<\/em><br \/><em>\\makeatother<\/em><br \/><em>\\include{appendix_materials}<\/em><br \/><em>\\include{appendix_project}<\/em><\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1630925056695\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q3_How_to_Create_a_LaTeX_Table_of_Contents_With_Links\"><\/span>Q3: How to Create a LaTeX Table of Contents With Links?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can turn the lines in a Table of Contents into clickable links that direct to corresponding pages by adding <em>\\usepackage{hyperref}<\/em> in the preamble of the document line.\u00a0<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1630925069639\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q4_How_to_Change_the_LaTeX_Table_of_Contents_Style\"><\/span>Q4: How to Change the LaTeX Table of Contents Style?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can change the font of entries using a command in the <em>tocloft<\/em> package. It should resemble the following:<br \/><em>\\usepackage{tocloft}<\/em><br \/><em>\\renewcommand{\\cftchapfont}{\\scshape}<\/em><br \/><em>\\renewcommand{\\cftsecfont}{\\bfseries}<\/em><br \/><em>\\renewcommand{\\cftfigfont}{Figure }<\/em><br \/><em>\\renewcommand{\\cfttabfont}{Table }<\/em><\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1630925084063\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q5_What_to_Do_if_the_LaTeX_Table_of_Contents_Arent_Working\"><\/span>Q5: What to Do if the LaTeX Table of Contents Aren\u2019t Working?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>If your Table of Contents aren\u2019t working, ensure you are typesetting the\u00a0 document twice as mentioned in the \u201cCreating a Table of Contents in LaTeX\u201d section above.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1630925105404\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q6_What_Is_a_LaTeX_Table_of_Contents_Beamer\"><\/span>Q6: What Is a LaTeX Table of Contents Beamer?\u00a0<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Beamer is a LaTeX class for creating presentations. Users can add a table of contents to the beginning of their presentation using the following code:<br \/><em>\\begin{frame}<\/em><br \/><em>\\frametitle{Table of Contents}<\/em><br \/><em>\\tableofcontents<\/em><br \/><em>\\end{frame}<\/em><\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1630925170301\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q7_What_Is_LaTeX_Table_of_Contents_Depth\"><\/span>Q7 What Is LaTeX Table of Contents Depth?\u00a0<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Depth describes sections and their corresponding subsections in the Table of Contents. You can set the dept for each section and subsection using the following command:<br \/><em>\\setcounter{tocdepth}{1}<\/em><br \/><em>\\tableofcontents<\/em><br \/>The \u201c1\u201d above corresponds to a section, while \u201c2\u201d would correspond to its sub-section.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1630925192882\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><span class=\"ez-toc-section\" id=\"Q8_How_to_Change_LaTeX_Table_of_Contents_Unnumbered_Sections\"><\/span>Q8: How to Change LaTeX Table of Contents Unnumbered Sections?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can add unnumbered sections to the LaTeX Table of Contents using the following code:\u00a0<br \/><em>\\documentclass{article}<\/em><br \/><em>\\setcounter{secnumdepth}{0}<\/em><br \/><em>\\begin{document}<\/em><br \/><em>\\tableofcontents<\/em><br \/><em>\\section{ADSF}<\/em><br \/><em>\\section{Foo}<\/em><br \/><em>\\end{document}<\/em><\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n<h2 class=\"gb-headline gb-headline-031c40e8 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>\n<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>\n\n\n\n<li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-document\">6 Easy steps to create your first Latex document examples<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.scijournal.org\/articles\/circuit-diagrams-in-latex\">How to add circuit diagrams in Latex<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-font\">How to change Latex font and font size<\/a><\/li>\n\n\n\n<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>\n\n\n\n<li><a href=\"https:\/\/www.scijournal.org\/articles\/glossaries-in-latex\">How to create Glossaries in LaTeX<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.scijournal.org\/articles\/plots-in-latex\">How to create plots in Latex &#8211; codes and examples<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.scijournal.org\/articles\/symbols-in-latex\">How to create symbols in LaTeX &#8211; commands for Latex greek alphabet<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-tables\">How to create tables in LaTeX &#8211; rows, columns, pages and landscape tables<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.scijournal.org\/articles\/graphs-in-latex\">How to drawing graphs in Latex &#8211; vector graphics with tikz<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.scijournal.org\/articles\/source-code-in-latex\">How to highlight source code in LaTeX<\/a><\/li>\n\n\n\n<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>\n\n\n\n<li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-bullet-points\">How to Itemize and Number List &#8211; Adding Latex Bullet Points<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.scijournal.org\/articles\/hyperlinks-in-latex\">How to make hyperlink in latex &#8211; Clickable links<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.scijournal.org\/articles\/reference-in-latex\">How to reference in Latex &#8211; 5 steps to bibliography with Bibtex<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-packages\">How to use Latex Packages with examples<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-paragraphs\">How to use LaTeX paragraphs and sections<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-installation-guide\">LaTeX Installation Guide &#8211; Easy to follow steps to install LaTex<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.scijournal.org\/articles\/latex-equations-and-math\">Learn to typeset and align Latex equations and math<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>One of the standout features in LaTeX is the ability to generate a Latex table of contents easily. A Table of Contents is an essential inclusion in many documents, as it provides readers with an overview of the content. This helps them navigate to the information they are seeking quickly. Creating a Table of Contents &#8230; <a title=\"How to Create a LaTeX Table of Contents &#8211; 6 steps to create and custom ToC\" class=\"read-more\" href=\"https:\/\/www.scijournal.org\/articles\/latex-table-of-contents\" aria-label=\"Read more about How to Create a LaTeX Table of Contents &#8211; 6 steps to create and custom ToC\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":214,"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\/213"}],"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=213"}],"version-history":[{"count":8,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/213\/revisions"}],"predecessor-version":[{"id":27601,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/213\/revisions\/27601"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/media\/214"}],"wp:attachment":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/media?parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/categories?post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/tags?post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}