GeneralProblems with \listoftables

LaTeX specific issues not fitting into one of the other forums of this category.
Kai
Posts: 8
Joined: Sun Sep 21, 2008 1:01 am

Problems with \listoftables

Post by Kai »

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

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
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: Problems with \listoftables

Post by Stefan Kottwitz »

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
LaTeX.org admin
Kai
Posts: 8
Joined: Sun Sep 21, 2008 1:01 am

Re: Problems with \listoftables

Post by Kai »

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"
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: Problems with \listoftables

Post by Stefan Kottwitz »

\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
LaTeX.org admin
Kai
Posts: 8
Joined: Sun Sep 21, 2008 1:01 am

Re: Problems with \listoftables

Post by Kai »

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}}
}
Kai
Posts: 8
Joined: Sun Sep 21, 2008 1:01 am

Re: Problems with \listoftables

Post by Kai »

the package tocloft did help me;

is there a similar package for nomencl?



Kai
Cedric Tsui
Posts: 7
Joined: Mon Sep 22, 2008 5:37 am

Re: Problems with \listoftables

Post by Cedric Tsui »

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
Cedric Tsui
Posts: 7
Joined: Mon Sep 22, 2008 5:37 am

Re: Problems with \listoftables

Post by Cedric Tsui »

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.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Problems with \listoftables

Post by Stefan Kottwitz »

Hi Cedric,
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.
just use \renewcommand or \def or similar and limit the effect by braces. Here's an example:

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}
\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
LaTeX.org admin
Kai
Posts: 8
Joined: Sun Sep 21, 2008 1:01 am

Re: Problems with \listoftables

Post by Kai »

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!
Post Reply