[texhax] Formatting lof,toc,lot

Konstantin Karapetyan texnic at photonica.ru
Thu Jun 16 06:52:01 CEST 2005


> Hi,

> The caption for toc,lof,lot is always left aligned. I
> need the caption, ie just the phrase "Table of
> Contents", "List of Figures", "List of Tables" to
> center aligned.

> hope someone can help me out.

> thanks,
> karthik


\renewcommand\listoffigures{%
    \section*{\centering\listfigurename}%
      \@mkboth{\MakeUppercase\listfigurename}%
              {\MakeUppercase\listfigurename}%
    \@starttoc{lof}%
    }

\renewcommand\listoftables{%
    \section*{\centering\listtablename}%
      \@mkboth{\MakeUppercase\listtablename}%
              {\MakeUppercase\listtablename}%
    \@starttoc{lot}%
    }
    
\renewcommand\tableofcontents{%
    \section*{\centering\contentsname
        \@mkboth{%
           \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
    \@starttoc{toc}%
    }


HTH

Happy TeXing!
Konstantin.




More information about the texhax mailing list