[Top][All Lists]

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

Re: [AUCTeX-devel] more symbols in pretty

From: Tassilo Horn
Subject: Re: [AUCTeX-devel] more symbols in pretty
Date: Wed, 21 Oct 2015 16:45:01 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Uwe Brauer <address@hidden> writes:

> In order to use the norm symbol.
> I set
>             ("\\|" . ?\u2016)
> In my private list
> Then \|_{L^2} is displayed fine, \| also
> but \|U is not displayed correctly
> why  \| U is displayed again correctly.

To decide if something is to be prettified, there's
`prettify-symbols-compose-predicate' which is
`TeX--prettify-symbols-compose-p' in AUCTeX.  Basically, that looks at
the char after the found symbol to decide if it is to be prettified.


  \alpha     ;; prettified
  \alphafoo  ;; not prettified cause foo is still part of the symbol
  \alpha2    ;; prettified because a number is not part of a macro
  \|U        ;; not prettified because the U could be part of the macro


reply via email to

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