General ⇒ Problems with \listoftables
Problems with \listoftables
Hi,
I have a problem regarding \printnomenclature, \listoffigures and \listoftables:
How do I say Latex just to print the list?
(All three commands print their own page header and do a \newpage in the beginning; I do not want that)
Any ideas?
Thanks,
Kai
I have a problem regarding \printnomenclature, \listoffigures and \listoftables:
How do I say Latex just to print the list?
(All three commands print their own page header and do a \newpage in the beginning; I do not want that)
Any ideas?
Thanks,
Kai
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Problems with \listoftables
Hi Kai,
welcome to the board!
Answers to your question depend on the document class that you are using. For instance the article class does not begin a new page for the list of figures. So please tell us the document class, probably we can give advice then.
Stefan
welcome to the board!
Answers to your question depend on the document class that you are using. For instance the article class does not begin a new page for the list of figures. So please tell us the document class, probably we can give advice then.
Stefan
LaTeX.org admin
Re: Problems with \listoftables
Hi Stefan,
ty for the warm welcome.
I'm using the eis_msc_thesis template;
\documentclass[12pt,a4paper,openright,final,oneside,en]{eis_msc_thesis}
edit: the class itself is "book"
ty for the warm welcome.
I'm using the eis_msc_thesis template;
\documentclass[12pt,a4paper,openright,final,oneside,en]{eis_msc_thesis}
edit: the class itself is "book"
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Problems with \listoftables
\listoffigures etc. are using \chapter* internally. Du you want \section* instead? Or no sectioning command? A workaround could be just to disable \chapter* temporarily or to replace it.
Stefan
Stefan
LaTeX.org admin
Re: Problems with \listoftables
What I do is:
\makeappendix{List of Abbreviations}{List of Abbreviations\label{loa2}}
\input{Acronyms/acro.tex}
acro.tex contains:
\abbrev{WiFi}{Wireless Network}
\printnomenclature
\makeappendix is defined as:
\newcommand{\makeappendix}[2]
{
% First argument is an abbreviated version
% of the chapter name, used as page header
% Second argument is the chapter.
\cleardoublepage
\fancyhf{}
\renewcommand{\thechapter}{\Alph{chapter}}
\renewcommand{\chaptername}{Appendix}
\chapter[\sc #2]{#2}
\fancyhead[RE]{\sc #1}
\fancyhead[LE]{\sc \thepage}
\fancyhead[RO]{\sc \thepage}
\fancyhead[LO]{\sc{\nouppercase{\rightmark}}}
\renewcommand{\thesection}{\Alph{chapter}.\arabic{section}}
\renewcommand{\theequation}{\Alph{chapter}.\arabic{equation}}
\renewcommand{\thefigure}{\Alph{chapter}.\arabic{figure}}
\renewcommand{\thetable}{\Alph{chapter}.\arabic{table}}
}
\makeappendix{List of Abbreviations}{List of Abbreviations\label{loa2}}
\input{Acronyms/acro.tex}
acro.tex contains:
\abbrev{WiFi}{Wireless Network}
\printnomenclature
\makeappendix is defined as:
\newcommand{\makeappendix}[2]
{
% First argument is an abbreviated version
% of the chapter name, used as page header
% Second argument is the chapter.
\cleardoublepage
\fancyhf{}
\renewcommand{\thechapter}{\Alph{chapter}}
\renewcommand{\chaptername}{Appendix}
\chapter[\sc #2]{#2}
\fancyhead[RE]{\sc #1}
\fancyhead[LE]{\sc \thepage}
\fancyhead[RO]{\sc \thepage}
\fancyhead[LO]{\sc{\nouppercase{\rightmark}}}
\renewcommand{\thesection}{\Alph{chapter}.\arabic{section}}
\renewcommand{\theequation}{\Alph{chapter}.\arabic{equation}}
\renewcommand{\thefigure}{\Alph{chapter}.\arabic{figure}}
\renewcommand{\thetable}{\Alph{chapter}.\arabic{table}}
}
Re: Problems with \listoftables
the package tocloft did help me;
is there a similar package for nomencl?
Kai
is there a similar package for nomencl?
Kai
-
- Posts: 7
- Joined: Mon Sep 22, 2008 5:37 am
Re: Problems with \listoftables
Hello.
I'm having the same problem as Kai. Though I have a lesser requirement.
My professor asked me to save trees, and I would like to put the list of tables on the same page as the end of the table of contents.
Stefan_K, you suggested temporarily disabling \chapter*. It sounds like that might work, but I haven't been able to find out how to disable a command.
And. Umm. Kai. You listed a bunch of code. So far as I can tell, it has nothing to do with the problem you mentioned. Am I just confused?
Cheers
Cedric
I'm having the same problem as Kai. Though I have a lesser requirement.
My professor asked me to save trees, and I would like to put the list of tables on the same page as the end of the table of contents.
Stefan_K, you suggested temporarily disabling \chapter*. It sounds like that might work, but I haven't been able to find out how to disable a command.
And. Umm. Kai. You listed a bunch of code. So far as I can tell, it has nothing to do with the problem you mentioned. Am I just confused?
Cheers
Cedric
-
- Posts: 7
- Joined: Mon Sep 22, 2008 5:37 am
Re: Problems with \listoftables
Oops. I broke rule number one.
I'm using a custom .cls file that's based on (or calls?) the report class.
I'm using Miktex.
And I'm calling a boatload of packages, none of which affect the list of tables directly.
Cheers
Cedric
Edit: Nevermind. I've figured it out. Sorta.
The tocloft package excludes the pagebreak by default.
I'm using a custom .cls file that's based on (or calls?) the report class.
I'm using Miktex.
And I'm calling a boatload of packages, none of which affect the list of tables directly.
Cheers
Cedric
Edit: Nevermind. I've figured it out. Sorta.
The tocloft package excludes the pagebreak by default.
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Problems with \listoftables
Hi Cedric,
\chapter* is redefined to take a parameter but to do nothing. Similar for \addvspace (will appear in the lof, lot), but with LaTeX-Syntax. After the closing brace \chapter* and \chapter will show the default behavior again.
Perhaps Kai could use this workaround too.
Stefan
just use \renewcommand or \def or similar and limit the effect by braces. Here's an example:Cedric Tsui wrote: Stefan_K, you suggested temporarily disabling \chapter*. It sounds like that might work, but I haven't been able to find out how to disable a command.
Code: Select all
\documentclass[a4paper,10pt]{report}
\begin{document}
Text
{\def\chapter*#1{}
\renewcommand*\addvspace[1]{}
\listoffigures
\listoftables}
\chapter*{Introduction}
\begin{table}\caption{Test table}\end{table}
\chapter{Test}
\begin{figure}
\caption{Test figure}
\end{figure}
\end{document}
Perhaps Kai could use this workaround too.
Stefan
LaTeX.org admin
Re: Problems with \listoftables
Hi,
that does not work for me; any other ideas?
(I get the same results; even if I overwrite it with your code)
edit:
Works fine; just forgot to mention the scope... sry bout that!
that does not work for me; any other ideas?
(I get the same results; even if I overwrite it with your code)
edit:
Works fine; just forgot to mention the scope... sry bout that!