Generalamsbook - problems when printing \listoffigures and \listoft

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
sawakuchig
Posts: 1
Joined: Thu Jul 05, 2007 10:24 pm

amsbook - problems when printing \listoffigures and \listoft

Post by sawakuchig »

I am modifying the amsbook defaults as:
\renewcommand{\thefigure}{Figure \thechapter.\arabic{figure}}
\renewcommand{\thetable}{Table \thechapter.\arabic{table}}

In the text it appears to be fine but when I print the \listoftables and \listoffigures the figure label (e.g. Figure 1.10) overlaps its caption (see file).
Anyone knows how to fix it?

Thanks,

Gabriel
listoftables.pdf
(36.66 KiB) Downloaded 234 times

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Ted
Posts: 94
Joined: Sat Jun 23, 2007 4:11 pm

amsbook - problems when printing \listoffigures and \listoft

Post by Ted »

sawakuchig wrote: I am modifying the amsbook defaults as:
\renewcommand{\thefigure}{Figure \thechapter.\arabic{figure}}
Consult varioref:

http://www.ctan.org/tex-archive/help/Ca ... ioref.html

This is a useful package that is included with every LaTeX distribution. Its documentation:

http://www.ctan.org/tex-archive/macros/ ... rioref.pdf

With it, you can do this:

Code: Select all

\usepackage{varioref}
\renewcommand{\thefigure}{\thechapter.\arabic{figure}}
\labelformat{figure}{Figure~#1}
This way, your \ref's will have "Figure" included but the list of figures will omit all of the "Figure" parts but include the chapter stuff.

You may want to consider using hyperref's autoref. It will handle adding the "Figure" and "Table" for you. See this post for more details about autoref (and labelformat).
-- Ted [home/blog]
Post Reply