Next: Alternative contents files, Previous: Reading the .toc file, Up: Contents
By default, the .toc file has the root \jobname. If your
document has more than one contents—for example, if it is a collection
of papers, some of which have their own contents—you can tell Eplain
to use a different root name by defining the control sequence
\tocfilebasename.
Note that \writetocentry, \writenumberedtocentry and
\writenumberedtocline will
open the contents file for writing only at the first call, using the
value of \tocfilebasename at that time. Changing the value of
\tocfilebasename afterwards will not affect which file gets
written, although it will affect which file gets read by
\readcontentsfile. In case you need to write several contents
files from a single TeX job, use \definecontentsfile
(see Alternative contents files).