Document ClassesReport.cls: where are the LOF/LOT entries typeset

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
intiha
Posts: 5
Joined: Wed May 27, 2009 8:46 am

Report.cls: where are the LOF/LOT entries typeset

Post by intiha »

I am trying to modify either my own cls file or the report.cls file it is based on two specially modify the spacing within (single space) enteries and between (double spacing) entries. However, I am not able to find how I can add this command inside the .cls file. Using the documentation file classes.dtx the closest I got was to this line

Code: Select all

% \begin{macro}{\l@figure}
%    This macro produces an entry in the list of figures.
%    \begin{macrocode}
\newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
%    \end{macrocode}
% \end{macro}
However, adding \singlespacing to the above command does no good.
Inside my own .cls file I am trying to do the following the

Code: Select all

\let\oldlistoftables = \listoftables
\renewcommand{\listoftables}{
\newpage
\addcontentsline{toc}{chapter}{\listtablename}
    \pagestyle{plain}
    \begin{singlespace} 
    \oldlistoftables 
    \end{singlespace}}
What it does though is that it makes between enteries as double space as well. To solve that I try

Code: Select all

% Even though lists of figures  are single-spaced, Editor requires
% double spacing between the items in the lists. 

\let\oldcaption = \caption
\renewcommand{\caption}[1]{
    \oldcaption{#1}
        \addtocontents{lof}{\protect\addvspace{10\p@}}%
        \addtocontents{lot}{\protect\addvspace{10\p@}}%
}
However This doesnt help me at all. (No double spacing between the enteries). I believe this is b/c my redefinition of \caption is not working. Where I can find the code that introduces the text for each entry of LOT/LOF where I can then manuall add the vspace?

All help is appreciated.


Thanks
Affan

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Report.cls: where are the LOF/LOT entries typeset

Post by localghost »

I think the easiest way for modifications is to use the tocloft package.


Best regards
Thorsten
Post Reply