Graphics, Figures & Tableslistoffigures and listoftables do not work together

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Nardo
Posts: 9
Joined: Sun Nov 21, 2010 5:22 pm

listoffigures and listoftables do not work together

Post by Nardo »

Hi guys,

when I want to put the together, I get the error: "destination with the sam identifier has already defined"

Code: Select all

\tableofcontents
\newpage
\addcontentsline{toc}{section}{List of Figures}
\listoffigures
%\bigskip
%\bigskip
%\bigskip
%\bigskip
%\bigskip
%\bigskip
%\newpage
%\listoftables
\newpage \pagenumbering{arabic}\setcounter{page}{1}
\pagestyle{fancy} \fancyhead{} \rhead{\leftmark}
This works and the table of contens and the list of figures is on a seperate page.
However, this works as well, but then it is not on a seperate page:

Code: Select all

\tableofcontents
%\newpage
%\addcontentsline{toc}{section}{List of Figures}
\listoffigures
%\bigskip
%\bigskip
%\bigskip
%\bigskip
%\bigskip
%\bigskip
%\newpage
\listoftables
\newpage \pagenumbering{arabic}\setcounter{page}{1}
\pagestyle{fancy} \fancyhead{} \rhead{\leftmark}
And what I am trying is not working:

Code: Select all

\tableofcontents
\newpage
\addcontentsline{toc}{section}{List of Figures}
\listoffigures
%\bigskip
%\bigskip
%\bigskip
%\bigskip
%\bigskip
%\bigskip
\newpage
\listoftables
\newpage \pagenumbering{arabic}\setcounter{page}{1}
\pagestyle{fancy} \fancyhead{} \rhead{\leftmark}
I read something about the hyperref and changed my to:
\usepackage[hyperfootnotes=true,plainpages=false,
pdfpagelabels=true]{hyperref}

But this does not work as well.
The previous package I used is
%\usepackage[colorlinks=true, pdfstartview=FitV, linkcolor=darkred,
% citecolor=darkblue, urlcolor=red]{hyperref}
My documentclass is article.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Nardo
Posts: 9
Joined: Sun Nov 21, 2010 5:22 pm

Re: listoffigures and listoftables do not work together

Post by Nardo »

Found the problem.

Thanks!!
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: listoffigures and listoftables do not work together

Post by frabjous »

It would be nice if you explained what the problem was. Otherwise, you'll just be tormenting people who come across this page after searching the web for an answer to a similar problem, only to find no answer.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

listoffigures and listoftables do not work together

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic (not the last post) accordingly as clearly written in the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary. And please catch up on posting the solution as already requested by frabjous.


Thorsten
Post Reply