>>>>> Jim <[email protected]> writes:
> However, when there is a master file, doing C-c C-b in the chapter file
> creates a _region_.tex file which has no content from the TeX-master file.

> (I am guessing this is not the expected behaviour?  Presumably (*cough*) in
> LaTeX if you do C-c C-b in a "chapter" file, AUCTeX runs off to the master
> file to find the preamble?)

I haven't followed the detail of the discussion yet, but probably your
guess isn't right; `TeX-region-create' looks for the preamble first in
the given region and uses it if found. In that case, the function
doesn't look into the master file.

Thus master file content is ignored when the chapter file contains a
line matching `TeX-header-end' and you type C-c C-b there.

> Not going to the master file for its preamble will work for the case where
> each sub-file itself has all the needed
>         \environment <file>
> commands in its own preamble, but I think that is not a nice structured way
> to do things.

Then it seems that AUCTeX have to arrange `TeX-region-create' to support
ConTeXt document. I admit that most AUCTeX codes are currently written
in LaTeX-centric manner.

Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopGenocide #CeasefireNOW
#IProtestAgainstTrumpAndNetanyahu'sAttackOnIran,WhichViolatesInternationalLaw

Reply via email to