Hello everybody
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.
Graphics, Figures & Tables ⇒ listoffigures like section and NOT section*
listoffigures like section and NOT section*
Last edited by pozzyx on Mon Jun 21, 2010 10:51 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

listoffigures like section and NOT section*
This seems like a bit if a dirty hack, but could you manually add the number like this
Obviously change the number and perhaps the space between the number and title so it is right for you.
Code: Select all
\listoffigures\addcontentsline{toc}{section}{5\ \ \ \listfigurename}
Re: listoffigures like section and NOT section*
Yes but in this case the number will not be shown on the page of the list of figure before the title
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
listoffigures like section and NOT section*
Not very common to number the LoF (or LoT). Try the tocbibind package.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: listoffigures like section and NOT section*
ok thank you I'll keep it unnumbered 
Thanks for your help !!

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
Code, edit and compile here:
\makeatletter\renewcommand\listoffigures{%\section{\listfigurename}%\@mkboth{\MakeUppercase\listfigurename}{\MakeUppercase\listfigurename}%\@starttoc{lof}%}\renewcommand\listoftables{%\section{\listtablename}%\@mkboth{\MakeUppercase\listtablename}{\MakeUppercase\listtablename}%\@starttoc{lot}%}\makeatother
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10