[Top][All Lists]

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

[AUCTeX-devel] prettifying, R2L languages and the evil backslash

From: Uwe Brauer
Subject: [AUCTeX-devel] prettifying, R2L languages and the evil backslash
Date: Sat, 14 Jul 2018 14:13:08 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)


Since a while it is possible, by using prettying, to display math
constructs by their symbols.
I attach a screenshot.

The problem is now we one has a R2L language, say hebrew in the
following form 

  \int f dx = \sum \alpha 

It will be displayed wired, some math constructs are displayed others
are not. I attach a screenshot.

One reason is the *evil* backslash. Eli  Z. gave me the advice to try

(defun my-bidi-set-latex-backslash-on ()
  (put-char-code-property ?\\ 'bidi-class 'L)
    (message "Backslash is NOW L for BIDI, good for LaTeX."))

(defun my-bidi-set-latex-backslash-off ()
    "This change backslash back to the default behaviour ON."
  (put-char-code-property ?\\ 'bidi-class 'ON)
  (message "Backslash is again neutral for BIDI")) 

Which results in the 3 screenshot. But in none of the last two prettying

Could that be included?


Uwe Brauer 

Attachment: pretty-math.png
Description: PNG image

Attachment: pretty-math1.png
Description: PNG image

Attachment: pretty-math2.png
Description: PNG image

reply via email to

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