[texhax] toc2tex

Victor Ivrii vivrii at gmail.com
Mon May 25 17:38:53 CEST 2009

On Mon, May 25, 2009 at 6:28 PM, Yannis Haralambous
<yannis.haralambous at telecom-bretagne.eu> wrote:
> The *.toc file is generated on each compilation which means that your
> changes will disappear as soon as you compile your TeX document again.

Sure, you are right but what I want is a script, generating from
foo.toc another file foo-toc.tex with the sole purpose to produce the
table of contents (foo-toc.pdf but not foo.pdf)  of foo.tex and which
can be modified. Sure latexing foo,tex would affect foo.toc but it
does not affect already produced foo-toc.tex or foo-toc.pdf which is
needed only seldom (say to be presented to granting agency or
whatever). Script does not seem to be a good option as the changes are
rather unpredictable.

> What am I doing in such cases is applying Perl scripts for post-processing
> of TOC files. You can put the Perl script in your make file so that it is
> ran whenever needed. The Perl script will then apply the same changes every
> time the TOC file is updated.

> 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)
>> Thank you in advance
>>               Victor

Victor Ivrii, Professor, Department of Mathematics, University of Toronto

More information about the texhax mailing list