Graphics, Figures & Tables ⇒ listoffigures like section and NOT section*
listoffigures like section and NOT section*
I'm new to latex and I've a little problem.
I had at the end of my document a listoffigures but this listoffigures hasn't a number like my other sections and it doesn't appear (with a number) in the tableofcontent.
I've tried :
\addcontentsline{toc}{section}{Liste des figures}
\listoffigures
But in the table of content my line hasn't a number like the other sections.
I'm using documentclass article
Is there anyway the listoffigures appaears like a normal section ?
Thanks for your help.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
listoffigures like section and NOT section*
Code: Select all
\listoffigures
\addcontentsline{toc}{section}{5\ \ \ \listfigurename}
Re: listoffigures like section and NOT section*
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
listoffigures like section and NOT section*
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: listoffigures like section and NOT section*

Thanks for your help !!
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
listoffigures like section and NOT section*
If that settles the matter you should act as I directed you in my last reply and mark the topic as solved.pozzyx wrote:ok thank you I'll keep it unnumbered […]
It seems that I messed things up a little bit. The recommended package won't help. It only numbers the ToC entry of the bibliography and the index. But you can also try another approach. For this we have to pick up some code from the »article.cls« file and modify it slightly.
Code: Select all
\makeatletter
\renewcommand\listoffigures{%
\section{\listfigurename}%
\@mkboth{\MakeUppercase\listfigurename}{\MakeUppercase\listfigurename}%
\@starttoc{lof}%
}
\renewcommand\listoftables{%
\section{\listtablename}%
\@mkboth{\MakeUppercase\listtablename}{\MakeUppercase\listtablename}%
\@starttoc{lot}%
}
\makeatother
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10