auctex
[Top][All Lists]

## Re: [AUCTeX] How to use tex--prettify-symbols-alist?

 From: Marcin Borkowski Subject: Re: [AUCTeX] How to use tex--prettify-symbols-alist? Date: Sat, 27 Feb 2016 19:22:40 +0100 User-agent: mu4e 0.9.13; emacs 25.1.50.4

On 2016-02-27, at 19:18, Marcin Borkowski <address@hidden> wrote:

> Hi folks,
>
> I did (setq prettify-symbols-alist tex--prettify-symbols-alist), and
> enabled prettify-symbols-mode.  However, things do not look as well as
> I would like them to.
>
> 1. Math between $...$ doesn't get prettified; $$...$$ and other
> constructs work.  Also, symbols outside math mode /do/ work!  Why?
>
> 2. $$\infty$$ does not get prettified; $$\infty$$ does.  Why?  Is that
> because prettify-symbols-mode surrounds the regex with the "symbol"
> delimiters?
>
> 3. I tried adding this to prettify-symbols-alist:
>    ("\\mathbb{R}" . 8477).  It didn't work, though.  Why is that so?

OK, this one /did/ work; I was a bit impatient and had a glance into the
code, and it turns out that disabling and enabling the mode helped.

The other questions are still a bit of a mystery for me, though.

Best,

--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science