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 224 times

Recommended reading 2024:

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

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

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