General ⇒ Problems with \listoftables
Problems with \listoftables
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.
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
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Problems with \listoftables
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
Re: Problems with \listoftables
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
Stefan
Re: Problems with \listoftables
\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
is there a similar package for nomencl?
Kai
-
- Posts: 7
- Joined: Mon Sep 22, 2008 5:37 am
Re: Problems with \listoftables
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
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
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
Re: Problems with \listoftables
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!