> 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))))

That is the code I am thinking of 
(defvar LaTeX-subfiles-package-options nil
  "Package options for the subfiles package.")

(TeX-add-style-hook
 "subfiles"
 (lambda ()
   ;; the following code will run `TeX-run-style-hooks' on the subfile master 
file
   ;; thanks to Mosè Giordano for presenting a better solution.
   (TeX-run-style-hooks
    (file-name-base (cadr (assoc "subfiles" LaTeX-provided-class-options))))
   (TeX-add-symbols
    '("subfile" 0)))
 LaTeX-dialect)

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

Reply via email to