Graphics, Figures & Tables ⇒ Formatting of LoF and LoT
Formatting of LoF and LoT
Steve
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
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}