Graphics, Figures & Tables ⇒ Formatting of LoF and LoT
Formatting of LoF and LoT
Steve
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
Re: Formatting of LoF and LoT
%
% Modify the \@caption command to put a period after the figure or
% table number in the lof and lot tables
%long\def\@caption#1[#2]#3{\par\addcontentsline{\csname
% ext@#1\endcsname}{#1}{\protect\numberline{\csname
% the#1\endcsname.}{\ignorespaces #2}}\begingroup
% \@parboxrestore
% \normalsize
% \@makecaption{{\csname fnum@#1\endcsname}}{{\ignorespaces #3}}
% \endgroup}
Formatting of LoF and LoT
How should it work? If you are using the caption package and patching \@caption for yourself, it's like taking a taxi and trying to get behind the wheel.steve wrote:The caption package is used, and the following modification is supposed to add the period. However, it is not.
So if you use the caption package, use \DeclareCaptionListFormat to define a list format with a period, and select it with \captionsetup{listformat=...} afterwards. See caption package documentation for details.
If you are not using the caption package, your suggested patch of \@caption should work. (Otherwise it will not.)
Re: Formatting of LoF and LoT
\usepackage[font={bf,footnotesize},labelsep=period]{caption}
\DeclareCaptionListFormat{simple}{#1#2.}
\captionsetup{listformat=simple}