[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \mathbb and \mathcal prettify does not accept multiple characters
From: |
Hendrik Rommeswinkel |
Subject: |
Re: \mathbb and \mathcal prettify does not accept multiple characters |
Date: |
Thu, 09 Jun 2022 13:04:19 +0000 |
Thank you I will look into this! Would it perhaps be possible to use some other
method for multiple characters? For example, {\em bla} and \emph{bla} get
replaced by italics. Could I perhaps use something similar to replace
\mathscr{ABC} as long as I can find the right font?
Bests,
Hendrik
------- Original Message -------
On Thursday, June 9th, 2022 at 9:26 PM, Tassilo Horn <tsdh@gnu.org> wrote:
> Hendrik Rommeswinkel via Discussion list for AUCTeX developers
> auctex-devel@gnu.org writes:
>
>
> Hi Hendrik,
>
> > I noticed that while \mathbb{R} gets nicely substituted, \mathbb{RR}
> > or \mathcal{ABC} does not. Also, \mathbb R works in latex without
> > problems but it does not get prettified. Could someone give me some
> > pointers how I can fix this?
>
>
> If you mean prettified (in terms of prettify-symbols-mode) by "nicely
> substituted", then you can simply add the missing replacements to
> `tex--prettify-symbols-alist' (provided by the standard emacs
> tex-mode.el which auctex simply re-uses).
>
> However, note that prettify-symbols-mode only supports
> string-to-character replacements, so replacing \mathbb{RR} with ℝℝ won't
> work.
>
> Bye,
> Tassilo
publickey - rommeswi@protonmail.com - 0xB2AC9831.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature