[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \mathbb and \mathcal prettify does not accept multiple characters
From: |
Uwe Brauer |
Subject: |
Re: \mathbb and \mathcal prettify does not accept multiple characters |
Date: |
Thu, 09 Jun 2022 14:29:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
>>> "HRvDlfAd" == Hendrik Rommeswinkel via Discussion list for AUCTeX
>>> developers <auctex-devel@gnu.org> writes:
> Hi AucTeXers,
> 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? Would this be something that people would be
> generally interested in? I'll admit that some of this might just be bad latex
> coding style but it would be nice to fix especially \mathbb R.
> Also, I would be interested in knowing how to prettify \mathscr S,
> \mathscr{S}, etc..
You could do stuff like this (that is my personal setting though)
(dolist (el '(
;; doble stack
("\\setA" . #x1D538) ;mathcall
("\\setB" . #x1D539)
("\\setC" . #x02102)
("\\setD" . #x1D53B)
("\\setE" . #x1D53C)
("\\setF" . #x1D53D)
("\\setG" . #x1D53E)
("\\setH" . #x0210D)
("\\setI" . #x1D540)
("\\setJ" . #x1D541)
("\\setK" . #x1D542)
("\\setL" . #x1D543)
("\\setM" . #x1D544)
("\\setN" . #x02115)
("\\mathbb{N}" . #x02115)
("\\setO" . #x1D546)
("\\setP" . #x02119)
("\\setQ" . #x0211A)
("\\mathbb{Q}" . #x0211A)
("\\setR" . #x0211D)
("\\mathbb{R}" . #x0211D)
("\\setS" . #x1D54A)
("\\setT" . #x1D54B)
("\\mathbb{T}" . #x1D54B)
("\\setU" . #x1D54C)
("\\setV" . #x1D54D)
("\\setW" . #x1D54E)
("\\setX" . #x1D54F)
("\\setY" . #x1D550)
("\\setZ" . #x02124)
("\\mathbb{Z}" . #x02124)
;; caligraphic
("\\mathcal{A}" . #x1D49C)
("\\mathcal{B}" . #x0212C)
("\\mathcal{C}" . #x1D49E)
("\\mathcal{D}" . #x1D49F)
("\\mathcal{E}" . #x02130)
("\\mathcal{F}" . #x02131)
("\\mathcal{G}" . #x1D4A2)
("\\mathcal{H}" . #x0210B)
("\\mathcal{I}" . #x02110)
("\\mathcal{J}" . #x1D4A5)
("\\mathcal{K}" . #x1D4A6)
("\\mathcal{L}" . #x02112)
("\\mathcal{M}" . #x02133)
("\\mathcal{N}" . #x1D4A9)
("\\mathcal{O}" . #x1D4AA)
("\\mathcal{P}" . #x1D4AB)
("\\mathcal{Q}" . #x1D4AC)
("\\mathcal{R}" . #x0211B)
("\\mathcal{S}" . #x1D4AE)
("\\mathcal{T}" . #x1D4AF)
("\\mathcal{U}" . #x1D4B0)
("\\mathcal{V}" . #x1D4B1)
("\\mathcal{W}" . #x1D4B2)
("\\mathcal{X}" . #x1D4B3)
("\\mathcal{Y}" . #x1D4B4)
("\\mathcal{Z}" . #x1D4B5)
;; fractur
("\\mathfrak{A}" . #x1D504)
("\\mathfrak{B}" . #x1D505)
("\\mathfrak{C}" . #x0212D)
("\\mathfrak{D}" . #x1D507)
("\\mathfrak{E}" . #x1D508)
("\\mathfrak{F}" . #x1D509)
("\\mathfrak{G}" . #x1D50A)
("\\mathfrak{H}" . #x0210C)
("\\mathfrak{I}" . #x02111)
("\\mathfrak{J}" . #x1D50D)
("\\mathfrak{K}" . #x1D50E)
("\\mathfrak{L}" . #x1D50F)
("\\mathfrak{M}" . #x1D510)
("\\mathfrak{N}" . #x1D511)
("\\mathfrak{O}" . #x1D512)
("\\mathfrak{P}" . #x1D513)
("\\mathfrak{Q}" . #x1D514)
("\\mathfrak{R}" . #x0211C)
("\\mathfrak{S}" . #x1D516)
("\\mathfrak{T}" . #x1D517)
("\\mathfrak{U}" . #x1D518)
("\\mathfrak{V}" . #x1D519)
("\\mathfrak{W}" . #x1D51A)
("\\mathfrak{X}" . #x1D51B)
("\\mathfrak{Y}" . #x1D51C)
("\\mathfrak{Z}" . #x02128)
("\\mathfrak{a}" . #x1D51E)
("\\mathfrak{b}" . #x1D51F)
("\\mathfrak{c}" . #x1D520)
("\\mathfrak{d}" . #x1D521)
("\\mathfrak{e}" . #x1D522)
("\\mathfrak{f}" . #x1D523)
("\\mathfrak{g}" . #x1D524)
("\\mathfrak{h}" . #x1D525)
("\\mathfrak{i}" . #x1D526)
("\\mathfrak{j}" . #x1D527)
("\\mathfrak{k}" . #x1D528)
("\\mathfrak{l}" . #x1D529)
("\\mathfrak{m}" . #x1D52A)
("\\mathfrak{n}" . #x1D52B)
("\\mathfrak{o}" . #x1D52C)
("\\mathfrak{p}" . #x1D52D)
("\\mathfrak{q}" . #x1D52E)
("\\mathfrak{r}" . #x1D52F)
("\\mathfrak{s}" . #x1D530)
("\\mathfrak{t}" . #x1D531)
("\\mathfrak{u}" . #x1D532)
("\\mathfrak{v}" . #x1D533)
("\\mathfrak{w}" . #x1D534)
("\\mathfrak{x}" . #x1D535)
("\\mathfrak{y}" . #x1D536)
("\\mathfrak{z}" . #x1D537)
("\\times" . ?×)
("\\quad" . ?␣)
("\\qquad" . ?\u29e2)
("\\sqrt" . ?\u221A)
("\\radical" . ?\u2713)
("\\ldots" . ?\u2026)
("\\vdots" . ?\u22EE)
("\\cdots" . ?\u22EF)
("\\ddots" . ?\u22F1)
("\\therefore" . ?\u2234)
("\\not\\in" . ?\u2209)
("\\pm" . ?\u00B1)
;U+00B1
("\\|" . ?\u2016)
("\\varkappa" . ?\u03F0)
("\\mathbullet" . ?•)
("\\smiley" . ?🙂)
("\\frownie" . ?☹)
("\\varrho" . ?ϱ)))
(add-to-list 'tex--prettify-symbols-alist el))
Feel free to modify it.
Uwe Brauer
--
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
smime.p7s
Description: S/MIME cryptographic signature