# List of Figures at the end of Contents [duplicate]

I have the list of figures and the list of tables, and I want them to appear at the end of the Contents List. See in the following image:

that the list of Figures and Tables are at the beginning of the contents, but i want them at the end. How can I do that?

Thank you.

• Moving \listoffigures and \listoftables to the end of the document should help ;-) The entry is made at that position where the you use the commands. (Assuming you're using tocbibind or applying \addcontentsline directly) – user31729 Aug 3 '16 at 17:52
• please see tex.stackexchange.com/questions/321132/… – touhami Aug 3 '16 at 18:19

Applying the below to the end of the document saved the day.

\addtocontents{toc}{\protect\contentsline{chapter}{\listfigurename}{\getpagerefnumber{listoffigures}}}
\end{document}

• however, the funny thing is that sometimes it works, and sometimes it gives an error. Why is that? – Hercules Apergis Aug 4 '16 at 15:16
• If you encounter errors by this it's not yet an answer, in my point of view -- the above fragment is not really useful for others that have the same problem since all of the remaining setup is not visible – user31729 Aug 4 '16 at 15:45