Tassilo Horn wrote (Mon, Jul 19, 2021 at 09:23:22PM +0200): > You can't. Every file has at most one TeX-master. It can't be > different. If you had multiple masters, which of those should be > compiled/viewed when you invoke LaTeX or a viewer command?
I remember asking this question once before: my use-case was a tex file that's used to generate both beamer slides and beamer notes, so for me, it would be best for TeX-master to be a list. I would need all masters on the list to be compiled/viewed. I didn't get around to a serious attempt at putting this in auctex, and make-do with a kludgy "both" entry in TeX-command-list. This compiles both x-slides.tex and x-notes.tex for my specific use case when I try to compile x.tex. -mandar
