daleif at imf.au.dk
Mon May 25 20:43:04 CEST 2009
Victor Ivrii wrote:
> 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
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.
BTW I would think most of what you are asking for might be doable in the
memoir class especially if your are using a master file and have the
chapters in seperate files.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the texhax