[OS X TeX] changing \tableofcontent fonts

Peter Breitfeld phbrf at t-online.de
Sat Dec 16 12:13:28 CET 2006


Am 14. Dez 2006 um 01:38 schrieb KL Tah:

> hi all,
>
> i'd like to have my table of contents be all non-bold (including
> ``Table of Contents'', ``List of Figures'' and ``List of Tables''
> themselves). I've downloaded tocloft but was wondering if anyone out
> there has done this before. the manual looks pretty dense and i  
> have a thesis due tomorrow...
>
> any help would be much appreciated!
>
> cheers

I did the change of the contents stuff by redefining  the appropriate  
environments. May be this gives you a hint how to proceed to change  
it to your needs (sorry, comments are in german). If you set

\ifNeuesToktrue, then the new settings will apply. It's an option for  
me.

%%-------------------------------------------------------------------
%  Aussehen der Inhalts- Abbildungs- und Tabellenverzeichnisse ändern
%%-------------------------------------------------------------------

%%----- ein \if zur Feststellung, ob ein Befehl nicht existiert:
\def\ifUndefiniertCS#1{\expandafter\ifx\csname#1\endcsname\relax}

\ifNeuesTok
   \newcommand*\l at Abschnitt[2]{%
     \ifnum \c at tocdepth >\m at ne
       \addpenalty{-\@highpenalty}%
       \vskip 1.0em \@plus\p@
       \setlength\@tempdima{1.5em}%
       \begingroup
         \parindent \z@%
         \leavevmode% \large
         \advance\leftskip\@tempdima
         \hskip -\leftskip
         \slshape{#1}\upshape%
         \quad\nobreak \nobreak\hb at xt@\@pnumwidth{#2}\par
         \penalty\@highpenalty
       \endgroup
     \fi}
   \def\@dottedtocline#1#2#3#4#5{%
     \ifnum #1>\c at tocdepth \else
       \vskip \z@ \@plus.2\p@
       {\leftskip #2\relax%
       \parindent #2\relax\@afterindenttrue
       \interlinepenalty\@M
       \leavevmode
       \@tempdima #3\relax
       \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
       {#4}\nobreak\quad%
       \hb at xt@\@pnumwidth{\normalfont \normalcolor #5}%
       \par}%
     \fi}
   \renewcommand*\l at part[2]{%
     \ifnum \c at tocdepth >-2\relax
       \addpenalty{-\@highpenalty}%
       \addvspace{2.25em \@plus\p@}%
       \setlength\@tempdima{3em}%
       \begingroup
         \parindent \z@%
         {\leavevmode%
         \slshape{#1}\upshape\quad\hb at xt@\@pnumwidth{#2}}\par
         \nobreak
         \global\@nobreaktrue
         \everypar{\global\@nobreakfalse\everypar{}}%
       \endgroup
     \fi}
\fi
\ifUndefiniertCS{chapter}
   \ifNeuesTok\let\l at section\l at Abschnitt\fi
\else
   \ifNeuesTok\let\l at chapter\l at Abschnitt\fi
\fi


Gruß Peter
--
==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==
Peter Breitfeld                 | http://www.pBreitfeld.de
Kreuzgasse 4, 88348 Bad Saulgau | PGP/GPG Key gibt's hier




------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the macostex-archives mailing list