[texhax] Collections
Philip G. Ratcliffe
philipratcliffe at tiscali.it
Thu Jan 29 10:59:57 CET 2004
> > Much more serious are multiply defined labels and bib
> > entries. Have these problems been solved? I did search ctan for
> > "collections", but found nothing helpful.
>
> This is a lot harder, since with a multi-author document
> and lots of \include'd files (one for each paper, say),
> the .aux files are all read at the same grouping level.
> This is where the labels are first encountered.
>
> A technique that I have used is to assign a 'unique prefix'
> automatically for each paper, which will work with
> \cite \bibitem \label \ref etc. commands.
>
> e.g. conceptually these macros need to be changed so that
> \label{<label>}
> gets interpreted like
> \label{\chapterPrefix <label>}
> and similarly in the other cases.
>
> Of course you need to change the expansion of \chapterPrefix for
> each chapter/paper and ensure that it has been fully expanded
> when the entry is written to the appropriate .aux file.
If that proves too hard then, with a good editor or even batch programme, it
shouldn't be too hard to do multiple global substitutions in each input file
of the sort:
\label{xxx} -> \label{filename:xxx}
Cordialmente, Philip G. Ratcliffe
More information about the texhax
mailing list