Uwe Brauer <[email protected]> writes:

>> Well, if we'd set the master from that \documentclass it would have
>> the same effect.  As far as I understand, what you want to have is a
>> no master file for the subfiles wrt. compilation but main.tex as
>> master wrt. references.  Is that correct?
>
> This is the most important feature, yes.  I would also like auctex to
> scan the header of main.tex without being the master but this looks
> almost impossibe.

Indeed.

>> If so, could you test this version of `reftex-TeX-master-file' where
>> the optional argument of the \documenclass is used as master for
>> RefTeX only, i.e., you stick to TeX-master being t in the subfiles.
>
> Great, I have tested it: it works like charm, thanks a ton, (should
> have asked earlier :-D )
>
> Pls commit.

Done, although a different variant which will work for Emacs' builtin
`latex-mode', too.

Bye,
Tassilo


_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to