Page LayoutList of Figures Not Included in Table of Contents

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
yuguang
Posts: 3
Joined: Wed Sep 09, 2009 2:57 am

List of Figures Not Included in Table of Contents

Post by yuguang »

I am using the following code to generate the stuff:

Code: Select all

\tocsection{}
\tableofcontents
\newpage
\listoffigures
\newpage
As soon as I put the \tocsection before \tableofcontents, the \listoffigures gets messed up in pdf and goes missing in dvi. I'm using MiKTEX 2.6. Is there any way to fix this? I've tried \addcontentsline.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

List of Figures Not Included in Table of Contents

Post by gmedina »

Hi,

you forgot crucial information... what document class are you using? what packages are you loading to control the List of Figures and Tables?

On a side note, you should update your MiKTeX installation; here you can find MiKTeX2.8:

MiKTeX2.8
1,1,2,3,5,8,13,21,34,55,89,144,233,...
yuguang
Posts: 3
Joined: Wed Sep 09, 2009 2:57 am

Re: List of Figures Not Included in Table of Contents

Post by yuguang »

I just use the \dotableofcontents from the template after a \tocsection, and the list of figures disappears from table of contents
Attachments
template.sty
The template I'm using.
(1.69 KiB) Downloaded 234 times
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: List of Figures Not Included in Table of Contents

Post by gmedina »

Hi,

well, you use that sty file. I tried to do a simple test with it and immediately got errors. All I can suggest you now is to contact the designer of that file and ask him/her your question.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
yuguang
Posts: 3
Joined: Wed Sep 09, 2009 2:57 am

List of Figures Not Included in Table of Contents

Post by yuguang »

Issue solved

Code: Select all

\addcontentsline{toc}{section}{Table of Contents}
\tableofcontents
\newpage
\addcontentsline{toc}{section}{List of Figures}
\listoffigures
\newpage
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

List of Figures Not Included in Table of Contents

Post by localghost »

The tocbibind package might be helpful in this case. The code in template.sty is very questionable and (in a correct version) should better be incorporated into the preamble of the document.


Best regards and welcome to the board
Thorsten
Post Reply