Discussion:
Including LOF/LOT into TOC
Hirotsugu Uchida
2006-12-06 22:29:02 UTC
Permalink
Hi everyone,

Please excuse me for posting a rather TeX-oriented question here, but I
am really hoping someone on this list would know the solution...

The question is: how can I include the "List of Figures (LOF)" and/or
"List of Tables (LOT)" into the "Table of Contents (TOC)"? Currently, I
have the following commands:
----------------------
\documentclass{report}
\begin{document}
\tableofcontents %creates TOC
\listoffigures %creates LOF
\listoftables %creates LOT
....
\end{document}
---------------------
Each page of TOC, LOF, and LOT appears fine, but the listed items on TOC
does NOT contain LOF and LOT. And, as I understand it, since LOF and LOT
are not a tex file I cannot use \addcontentsline command to have them
appear in TOC.

Here is how my TOC output looks now:
--------------
Contents

Abstract [page #]
Chapter 1 [page #]
....
---------------

And here is how I want to have TOC output to look like:
---------------
Contents

Abstract [page #]
List of figures [page #] <-- this is what I want to include
List of tables [page #] <-- this is what I want to include
Chapter 1 [page #]
.....
----------------

I've tried a cheap trick to save [file_name].lof into a tex file by
changing the extension code, and then adding \chapter*{ } command at the
top, but this did not work...

I really appreciate if anyone knows anything! BTW, I am using MikTeX 2.4
with TXC Greengrass on WinXP.

Thanks!

Hiro
--
************************************************
Hirotsugu (Hiro) Uchida
montezumanm-***@public.gmane.org (JPN/ENG)
uchida-***@public.gmane.org (ENG)

"Pessimism is a wrong use of imagination"
************************************************
Martin Chicoine
2006-12-07 15:37:41 UTC
Permalink
You should ask that kind of question on the google newsgroup comp.text.tex.



Martin.



_____

De : TeXnicCenter-Users-***@public.gmane.org
[mailto:TeXnicCenter-Users-***@public.gmane.org] De la part de Hirotsugu Uchida
Envoyé : 6 décembre, 2006 17:29
À : TeXnicCenter-Users-***@public.gmane.org
Objet : [TXC-Users] Including LOF/LOT into TOC



Hi everyone,

Please excuse me for posting a rather TeX-oriented question here, but I
am really hoping someone on this list would know the solution...

The question is: how can I include the "List of Figures (LOF)" and/or
"List of Tables (LOT)" into the "Table of Contents (TOC)"? Currently, I
have the following commands:
----------------------
\documentclass{report}
\begin{document}
\tableofcontents %creates TOC
\listoffigures %creates LOF
\listoftables %creates LOT
....
\end{document}
---------------------
Each page of TOC, LOF, and LOT appears fine, but the listed items on TOC
does NOT contain LOF and LOT. And, as I understand it, since LOF and LOT
are not a tex file I cannot use \addcontentsline command to have them
appear in TOC.

Here is how my TOC output looks now:
--------------
Contents

Abstract [page #]
Chapter 1 [page #]
....
---------------

And here is how I want to have TOC output to look like:
---------------
Contents

Abstract [page #]
List of figures [page #] <-- this is what I want to include
List of tables [page #] <-- this is what I want to include
Chapter 1 [page #]
.....
----------------

I've tried a cheap trick to save [file_name].lof into a tex file by
changing the extension code, and then adding \chapter*{ } command at the
top, but this did not work...

I really appreciate if anyone knows anything! BTW, I am using MikTeX 2.4
with TXC Greengrass on WinXP.

Thanks!

Hiro
--
************************************************
Hirotsugu (Hiro) Uchida
montezumanm@ <mailto:montezumanm%40gmail.com> gmail.com (JPN/ENG)
***@primal. <mailto:uchida%40primal.ucdavis.edu> ucdavis.edu (ENG)

"Pessimism is a wrong use of imagination"
************************************************
Loading...