[texhax] Tables of contents
T. Michael Sommers
tmsommers2 at gmail.com
Mon Jun 25 01:34:35 CEST 2012
On 6/19/2012 4:24 PM, Ivan Griffin wrote:
>
> % remove dots and page numbers for all document classes (*.cls)
> \renewcommand{\@dottedtocline}[5]
> {
> \ifnum #1>\c at tocdepth \else
> \vskip \z@ \@plus.2\p@
> {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
> \parindent #2\relax\@afterindenttrue
> \interlinepenalty\@M
> \leavevmode
> \@tempdima #3\relax
> \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
> {#4}\nobreak
To get this to work right, I had to insert an \hfill before the \nobreak
above:
{#4}\hfill\nobreak
Without that, the section headers were right justified. Thanks again.
> % removed the dotting until the page number (#5) from here
> \par
> \fi}
> }
> \makeatother
--
T.M. Sommers -- tmsommers2 at gmail.com -- ab2sb
More information about the texhax
mailing list