unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#50639: adding symbols to the tex--prettify-symbols-alist
@ 2021-09-17 12:53 Uwe Brauer
  2021-09-17 14:33 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Brauer @ 2021-09-17 12:53 UTC (permalink / raw)
  To: 50639; +Cc: Tassilo Horn

[-- Attachment #1: Type: text/plain, Size: 737 bytes --]

Tags: patch

<#secure method=smime mode=sign>
Hi

The purpose of this trivial patch is to add symbols, such as varkappa
and calligraphic and fractur letters to the tex--prettify-symbols-alist.

I have signed all the FSF paper, also the patch is very trivial

Regards

Uwe Brauer 



In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.14.6, Xaw3d scroll bars)
 of 2021-07-31 built on Utnapischtim
Repository revision: 83a915d3dfafd5f3d737afe1e13b75e4dd3aef96
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
System Description: Ubuntu 16.04.7 LTS

Configured using:
 'configure --prefix=/opt/emacs28 --with-x-toolkit=athena --without-pop
 --with-mailutils'


[-- Attachment #2: pretty-patch.diff --]
[-- Type: text/patch, Size: 3746 bytes --]

# HG changeset patch
# User Uwe Brauer <oub@mat.ucm.es>
# Date 1631882696 -7200
#      Fri Sep 17 14:44:56 2021 +0200
# Node ID f8e49d2c643b209d5c39d29dc91ddd92e38bec4e
# Parent  3b17c79f46e694f6df6a5b81026cbd2b43ba158d
Add symbols to tex--prettify-symbols-alist

* lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Add
  mathbb, caligraphic letters, fractur, varkappa and \|.

diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -3469,7 +3469,98 @@
     ("\\Bbb{P}" . ?ℙ)			; Also sometimes \mathbb.
     ("\\Bbb{Q}" . ?ℚ)
     ("\\Bbb{R}" . ?ℝ)
+    ("\\Bbb{T}" . ?ℝ)
+    ("\\Bbb{T}" . #x1D54B) 	
     ("\\Bbb{Z}" . ?ℤ)
+    ("\\mathbb{N}" . ?ℕ)			; AMS commands for blackboard bold
+    ("\\mathbb{P}" . ?ℙ)			; Also sometimes \mathbb.
+    ("\\mathbb{Q}" . ?ℚ)
+    ("\\mathbb{R}" . ?ℝ)
+    ("\\mathbb{T}" . #x1D54B) 	
+    ("\\mathbb{Z}" . ?ℤ)
+    ("\\pm" . ?\u00B1)
+    ("\\|" . ?\u2016)
+    ("\\varkappa" . ?\u03F0)
+    ;; 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) 
     ("--" . ?–)
     ("---" . ?—)
     ("\\ordfeminine" . ?ª)

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

* bug#50639: adding symbols to the tex--prettify-symbols-alist
  2021-09-17 12:53 bug#50639: adding symbols to the tex--prettify-symbols-alist Uwe Brauer
@ 2021-09-17 14:33 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-09-17 14:33 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: 50639, Tassilo Horn

Uwe Brauer <oub@mat.ucm.es> writes:

> The purpose of this trivial patch is to add symbols, such as varkappa
> and calligraphic and fractur letters to the tex--prettify-symbols-alist.

Thanks; applied to Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2021-09-17 14:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-17 12:53 bug#50639: adding symbols to the tex--prettify-symbols-alist Uwe Brauer
2021-09-17 14:33 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).