Hi David, I had tried to bother to inform AucTeX of the files, but on a previous attempt made a mistake: I only pointed to the master file in the input files, i.e., I included
%%% Local Variables: %%% TeX-master: "main" %%% End: at the end of each of part1.tex and part2.tex. I didn't include it in the main file, and so RefTeX couldn't put it together. Putting the "post"amble there as well did the trick. Cheers, Bernhard. David Kastrup wrote: > > bnickel <[email protected]> writes: > >> I'm trying to solve a problem that's come up in producing a large >> document >> that I'm breaking up into smaller ones. The basic structure is this. >> >> A main document (`main.tex`) that includes formatting info for the whole >> project, and individual files for chapters (`part1.tex`, `part2.tex`, >> etc). >> >> I need to produce a lot of cross-references, mostly to enumerate items >> within a part, but ideally also to some elements across parts. >> >> My basic workflow is editing LaTeX documents in emacs using the RefTeX >> capabilities to produce cross-references. My problem is that when RefTex >> automatically supplies me with labels (and I'm not willing to give up >> that >> convenience), it'll start numbering the labels from scratch for each >> part. > > Have you actually bothered informing AUCTeX that you are working with a > multi-file document here? If the appropriate TeX-master settings are > established, usually RefTeX should not have a problem figuring out what > belongs where. > > How to set up AUCTeX for multi-file documents should be described pretty > much at the start of its manual. > > -- > David Kastrup > > _______________________________________________ > auctex mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/auctex > > -- View this message in context: http://old.nabble.com/Cross-References-in-multiple-documents-AucTeX-RefTeX-tp33140811p33142702.html Sent from the Gnu - AUCTeX - General mailing list archive at Nabble.com. _______________________________________________ auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex
