Uwe Brauer <[email protected]> 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.

Examples:

  \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

Bye,
Tassilo


_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to