[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] patch for subfiles
From: |
Uwe Brauer |
Subject: |
Re: [AUCTeX-devel] patch for subfiles |
Date: |
Tue, 08 Nov 2016 08:33:49 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
>>> "Arash" == Arash Esbati <address@hidden> writes:
> Uwe Brauer <address@hidden> writes:
>> +(TeX-add-style-hook
>> + "subfiles"
>> + (lambda ()
>> + ;; thanks to Mosè
>> + (TeX-run-style-hooks
>> + (file-name-base (cadr (assoc "subfiles"
LaTeX-provided-class-options))))
>> + (TeX-add-symbols
>> + '("subfile" 0)))
> Besides Tassilo's comments, I would also add something like this to get
> a fontification like `\input':
> (when (and (featurep 'font-latex)
> (eq TeX-install-font-lock 'font-latex-setup))
> (font-latex-add-keywords '(("subfile" "{"))
> 'reference))
Excellent, thanks! I was a bit annoyed that subfiles was not nicely
fontified, but did not bother to look into that.