<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Victor Ivrii wrote:
<blockquote
 cite="mid:19af81400905250838u2c1bceefi9ab52fb3a716dbd7@mail.gmail.com"
 type="cite">
  <pre wrap="">On Mon, May 25, 2009 at 6:28 PM, Yannis Haralambous
<a class="moz-txt-link-rfc2396E" href="mailto:yannis.haralambous@telecom-bretagne.eu">&lt;yannis.haralambous@telecom-bretagne.eu&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">The *.toc file is generated on each compilation which means that your
changes will disappear as soon as you compile your TeX document again.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
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.

  </pre>
  <blockquote type="cite">
    <pre wrap="">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.
    </pre>
  </blockquote>
  <pre wrap=""><!---->



  </pre>
  <blockquote type="cite">
    <pre wrap="">Le 25 mai 09 &agrave; 17:07, Victor Ivrii a &eacute;crit :

    </pre>
    <blockquote type="cite">
      <pre wrap="">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

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Victor
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->


  </pre>
</blockquote>
&nbsp;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.<br>
<br>
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.<br>
<br>
/daleif<br>
<br>
</body>
</html>