[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] subfiles, private macros, scan the master file

From: Uwe Brauer
Subject: Re: [AUCTeX-devel] subfiles, private macros, scan the master file
Date: Mon, 07 Nov 2016 13:56:34 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

   > Hi Uwe,
   > 2016-11-07 14:36 GMT+01:00 Uwe Brauer <address@hidden>:

   > (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 
    (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....


reply via email to

[Prev in Thread] Current Thread [Next in Thread]