> Hi Uwe,
> 2016-11-07 14:36 GMT+01:00 Uwe Brauer <[email protected]>:
> (TeX-run-style-hooks
> (file-name-base (cadr (assoc "subfiles" LaTeX-provided-class-options))))
Aha, I came up with
(let ((subfile-master (file-name-sans-extension (car (cdr (car
LaTeX-provided-class-options))))))
(TeX-run-style-hooks subfile-master))
Besides the fact I use a (unnecessary) let, your solution is much more
elegant. :-D
> should do the trick, provided that the name of the master file is the
> only possible option in \documentclass[...]{subfiles} (I don't know
> the class).
Great I tested it, works like charm.
Hm I am thinking of providing a very small style file for subfiles,
because this is really nifty.
Do you want me to send a real patch, or is a simple attachment is fine? The
file is very small....
Uwe
_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel