LaTeX Table of Contents and List of Figures in Latex

  • Thread starter Thread starter EngWiPy
  • Start date Start date
  • Tags Tags
    Latex List Table
Click For Summary
SUMMARY

This discussion focuses on creating a comprehensive Table of Contents (ToC) and List of Figures in LaTeX. Users can include non-auto numbered sections such as Abstract and Acknowledgments in the ToC using the command \addcontentsline{toc}{subsection}{title name}. For managing long captions in the List of Figures, the command \caption[Short desc. for the List of Fig]{Long Desc. for the original caption} is recommended. Additionally, users encountered issues with the \tableofcontents command, which can be resolved by ensuring proper placement and syntax.

PREREQUISITES
  • Familiarity with LaTeX document structure
  • Understanding of LaTeX commands for ToC and List of Figures
  • Knowledge of the \addcontentsline command
  • Experience with figure captions in LaTeX
NEXT STEPS
  • Research LaTeX document classes and their impact on ToC generation
  • Learn about customizing LaTeX figure captions for better formatting
  • Explore advanced LaTeX packages for enhanced ToC and List of Figures functionality
  • Investigate troubleshooting common LaTeX errors related to ToC and figure listings
USEFUL FOR

LaTeX users, technical writers, and researchers who need to create structured documents with detailed tables of contents and lists of figures.

EngWiPy
Messages
1,361
Reaction score
61
Hello,

1- How to do the table of contents like this:

attachment.php?attachmentid=19799&stc=1&d=1248152270.jpg


2- In creating a list of figures, the long description of some figures does not appear as a whole. How to split the description of figures in the list of figures?

Thanks in advance
 

Attachments

  • untitled.JPG
    untitled.JPG
    21.7 KB · Views: 11,013
Physics news on Phys.org
1. \tableofcontents

2. When you write your caption, you give two arguments
Code:
\caption[Short desc. for the List of Fig]{Long Desc. for the original caption}
 
trambolin said:
1. \tableofcontents

2. When you write your caption, you give two arguments
Code:
\caption[Short desc. for the List of Fig]{Long Desc. for the original caption}

Yes, but \tableofcontents control sequence list the auto numbered headings. I need to include the list of figure page, the list of table page, abstract, acknowledgment,..etc, and all of these are not auto numbered headings. How can I do that?

About the second point I didn't understand it very well, can you elaborate more in this point, and give me an example, please?

Furthermore, when I write \tableofcontents, the following error eppears:

attachment.php?attachmentid=19804&stc=1&d=1248177442.jpg

Why is this error? Even though I put it the first time it worked, but later on stopped working, I don't know why?!

Regards
 

Attachments

  • untitled.JPG
    untitled.JPG
    43.6 KB · Views: 1,998
To add the abstract to the table of contents,
Code:
\begin{abstract} 
\addcontentsline{toc}{chapter}{\numberline{}Abstract}
Your abstract
\end{abstract}
 
D H said:
To add the abstract to the table of contents,
Code:
\begin{abstract} 
\addcontentsline{toc}{chapter}{\numberline{}Abstract}
Your abstract
\end{abstract}

Actually, I am not using the abstract enviroment, so, is there any other method to do that? Further, I need a method to add the page of list of figures and list of tables.

But before all of that, I am facing the aforementioned problem in using the \tableofcontents control sequence. Can anyone help me in this please?

Regards
 
Do you mean by auto numbering, page numbering?

\listoffigures gives you the list but I don't get your problem. Also my second point is that when you want to include a figure in List of figures, sometimes the caption is too long then you can use what I tried to suggest above.
 
trambolin said:
Do you mean by auto numbering, page numbering?

\listoffigures gives you the list but I don't get your problem. Also my second point is that when you want to include a figure in List of figures, sometimes the caption is too long then you can use what I tried to suggest above.

I mean, when you dividing your article to chapters, sections, subsections, ..., etc, without the '*' character, these headings will be automatically numbered by the program, and hence will be included automatically in the ToC. But there are some page titles such as Abstract, Acknowledgement, ...,etc, do not have numbers, i.e.: they have no reference. The question was: how to include these titles in the ToC? Anyway, I figured it out, and it is for whom is concerned, the following control sequence which must be placed in its proper position:

Code:
\addcontentsline{toc}{subsection}{[I]title name[/I]}

For example if you want to include the title "ACKNOWLEDGEMENT" in the ToC and its page number, all you have to do is to place the above control sequence just after the last line of the acknowledgment page, by replacing the title name by ACKNOWLEDGEMENT.

About the figures, I saw some "articles" where the discription of the figures in the list of figures span more than one line. I strictly need to do this, because the requirements is to include the description as it is under the intended figure, like this example:

attachment.php?attachmentid=19831&stc=1&d=1248386525.jpg


Regards
 

Attachments

  • untitled.JPG
    untitled.JPG
    32.7 KB · Views: 2,257

Similar threads

Replies
3
Views
7K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 36 ·
2
Replies
36
Views
2K