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

Code, edit and compile here:
\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}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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

Code, edit and compile here:
\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}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
And what I am trying is not working:

Code: Select all

Code, edit and compile here:
\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}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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.

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