I have modified the LOT and LOF within the amsbook class so that the numbering reads, e.g., "Table 1.1" instead of just "1". My MWE below does this. However, it messes up the alignment of the captions: the first and second lines are not indented the same amount.
My questions are:
1. How can I align the captions in the LOT and LOF?
2. How can I also put in dots ... leading to the page numbers? (e.g., \@dottedtocline)
Please note that I must use amsbook, so I cannot use the tocloft package. Thank you for your advice.
Code: Select all
\documentclass[12pt, oneside]{amsbook}
% Customize list of tables and list of figures
\usepackage{chngcntr} \counterwithin{figure}{chapter}
\counterwithin{table}{chapter}
\makeatletter
\def\l@figure#1#2{\@tocline{0}{3pt plus2pt}{0pt}{3pc}{}{Figure #1}{#2}}
\def\l@table#1#2{\@tocline{0}{3pt plus2pt}{0pt}{3pc}{}{Table #1}{#2}}
\makeatother
\begin{document}
\listoffigures
\begin{figure}
\caption[Caption in the LOF extends beyond one line, but the second line is not aligned with the first line.]{Long caption...}
\end{figure}
\end{document}