[texhax] toc2tex
Uwe Lueck
uwe.lueck at web.de
Fri Jun 12 15:07:17 CEST 2009
Lars Madsen <daleif at imf.au.dk> schrieb am 25.05.2009 20:45:07:
> Le 25 mai 09 à 17:07, Victor Ivrii a écrit :
>> Is there any script which converts foo.toc to foo-toc.tex which could
>> be edited and processed?
>> The rationale: to have different fonts and some explanations for
>> certain portions of table-of-contents (for mammoth project in
>> progress, to distinguish between chapters in the almost final shape
>> and those which are in the stage of very early draft)
>
> Victor have a look at how your document class loads the toc,
> then emulate that using your own macro, loading your file instead.
> Please be aware that \tableofcontents initialtes the creating of the
> toc files, so that needs to be handled as well.
An idea on Lars' idea:
1. cp foo.toc foo-toc.toc
2. write and run foo-toc.tex like this:
\documentclass{article}
\nofiles %% don't rewrite foo-toc.toc
\renewcommand{\contentsname}{Contents of that work}
\begin{document}
\tableofcontents
\end{document}
3. Simply edit foo-toc.toc
HTH -- Uwe.
More information about the texhax
mailing list