I am writing a thesis using the book document class. In the list of figures and list of tables, I am required to place a period after the figure and table number, but I cannot figure out how to modify the class to accomplish the task. Thanks for any help you can provide.
Steve
Graphics, Figures & Tables ⇒ Formatting of LoF and LoT
Formatting of LoF and LoT
Last edited by steve on Mon Aug 08, 2011 3:14 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: Formatting of LoF and LoT
The caption package is used, and the following modification is supposed to add the period. However, it is not.
%
% 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}
%
% 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
Thank you, sommerfee. I removed the @caption patch, and replaced it with the following three lines. The captions within the floats and lof and lot are now correctly formatted.
\usepackage[font={bf,footnotesize},labelsep=period]{caption}
\DeclareCaptionListFormat{simple}{#1#2.}
\captionsetup{listformat=simple}
\usepackage[font={bf,footnotesize},labelsep=period]{caption}
\DeclareCaptionListFormat{simple}{#1#2.}
\captionsetup{listformat=simple}