auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] patch for subfiles


From: Arash Esbati
Subject: Re: [AUCTeX-devel] patch for subfiles
Date: Tue, 08 Nov 2016 12:15:50 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1

Uwe Brauer <address@hidden> writes:

>>>> "Arash" == Arash Esbati <address@hidden> writes:
>
>     > Uwe Brauer <address@hidden> writes:
>     [...]
>
>     > 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. 

You're welcome.  Just a note reg. the comment in your latest patch:

  +   ;; The following code will fontify `\subfile{}' like input or include.

font-latex fontifies \include as warning[1] and \input as reference[2].

Best, Arash

Footnotes: 
[1]  http://git.savannah.gnu.org/cgit/auctex.git/tree/font-latex.el#n288

[2]  http://git.savannah.gnu.org/cgit/auctex.git/tree/font-latex.el#n329



reply via email to

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