all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* prettify-symbols-mode to handle "\alpha-\beta" ...
@ 2021-02-04  1:24 pietru
  2021-02-04  2:08 ` Óscar Fuentes
                   ` (2 more replies)
  0 siblings, 3 replies; 36+ messages in thread
From: pietru @ 2021-02-04  1:24 UTC (permalink / raw)
  To: emacs-devel


I am using prettify-symbols-mode for displaying greek command using
the corresponding greek glyph when using mathematical expressions
in texinfo.

Here is an example

  (push '("\\alpha" . ?α) prettify-symbols-alist)
  (push '("\\beta" . ?β) prettify-symbols-alist)

This works well when using "\alpha\beta", "\alpha - \beta" 
But the expression fails when using "\alpha-\beta" or
"\alpha_i", "\alpha_{ij}", "\beta^i", "\beta+\alpha".
The expressions are all valid mathematical expressions
when using tex.  

Would you be so kind to update "prettify-symbols-mode"
so the substitutions can become possible to handle.

Does this require that SYMBOL in (SYMBOL . CHARACTER) be
a regexp?

Regards
Pietru






^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2021-02-06  0:05 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-04  1:24 prettify-symbols-mode to handle "\alpha-\beta" pietru
2021-02-04  2:08 ` Óscar Fuentes
2021-02-04  3:03   ` pietru
2021-02-04  3:39     ` Óscar Fuentes
2021-02-04  3:46       ` Christopher Dimech
2021-02-04  3:51       ` pietru
2021-02-04  4:04       ` Stefan Monnier
2021-02-04  4:21         ` Christopher Dimech
2021-02-04 16:12           ` Stefan Monnier
2021-02-04 18:09             ` Christopher Dimech
2021-02-04 18:21               ` Stefan Monnier
2021-02-04 20:14                 ` Christopher Dimech
2021-02-04 18:15             ` Christopher Dimech
2021-02-04 18:23               ` Stefan Monnier
2021-02-04 20:22                 ` Christopher Dimech
2021-02-04 20:38                   ` Stefan Monnier
2021-02-04 20:54                     ` Christopher Dimech
2021-02-05 20:32                     ` pietru
2021-02-05 21:01                       ` Stefan Monnier
2021-02-05 21:05                         ` Christopher Dimech
2021-02-05 21:54                           ` Christopher Dimech
2021-02-05 21:57                           ` Stefan Monnier
2021-02-05 22:09                       ` Gregory Heytings
2021-02-05 22:22                         ` pietru
2021-02-05 22:45                           ` Gregory Heytings
2021-02-05 22:56                             ` pietru
2021-02-05 23:04                               ` Gregory Heytings
2021-02-05 23:15                                 ` pietru
2021-02-05 23:22                                   ` Gregory Heytings
2021-02-05 23:43                                     ` Christopher Dimech
2021-02-05 23:44                                     ` pietru
2021-02-06  0:05                                     ` pietru
2021-02-04 20:34                 ` Christopher Dimech
2021-02-04  3:46 ` Ihor Radchenko
2021-02-04  3:59   ` Christopher Dimech
2021-02-04  8:44 ` tomas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.