[Top][All Lists]

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

Re: [AUCTeX] How to configure TeX special characters?

From: Mosè Giordano
Subject: Re: [AUCTeX] How to configure TeX special characters?
Date: Sat, 6 May 2017 19:30:06 +0200

Hi Marcin,

I tend to agree with David, fontification in AUCTeX is known to fail
at some point when too many catcodes are changed.  Sophisticated LaTeX
style files are not so nicely displayed by AUCTeX.  It would be
awesome to make this more configurable, the problem is that this is *a
lot* of work.  In AUCTeX, the character to start macros should be
always indicated with `TeX-esc' (also because TeXinfo uses a different
character), but I'm pretty sure there are many places where a
hard-coded backslash is used.  Or, the start of comment should be
indicated with `TeX-comment-start-regexp', but this is never used in


2017-05-01 15:13 GMT+02:00 Marcin Borkowski <address@hidden>:
> Hi all,
> a friend of mine has this problem: he does not want $, & and % to have
> special meaning to (La)TeX, so he changes their catcodes to make them
> un-special; to retain the possibility of inputting math, typesetting
> tables and commenting out things, he assigns the respective catcodes to
> some Unicode\setminus ASCII characters.
> Putting aside the question whether it's a good idea (personally I don't
> like it very much, but I can see the rationale), how do I convince
> AUCTeX to take that into consideration when font-locking?  I tried to
> monkey-patch AUCTeX sources (for instance, I tried changing
> "\\$\\$\\([^$]+\\)\\$\\$" in font-latex-make-user-keywords into
> something like "〖\\([^$]+\\)〗", then even restarting Emacs
> altogether), but to no avail.
> TIA,
> --
> Marcin Borkowski
> _______________________________________________
> auctex mailing list
> address@hidden

reply via email to

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