1 ;;; org-entities.el --- Support for Special Entities -*- lexical-binding: t; -*-
3 ;; Copyright (C) 2010-2016 Free Software Foundation, Inc.
5 ;; Author: Carsten Dominik <carsten at orgmode dot org>,
6 ;; Ulf Stegemann <ulf at zeitform dot de>
7 ;; Keywords: outlines, calendar, wp
8 ;; Homepage: http://orgmode.org
10 ;; This file is part of GNU Emacs.
12 ;; GNU Emacs is free software: you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation, either version 3 of the License, or
15 ;; (at your option) any later version.
17 ;; GNU Emacs is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
30 (declare-function org-toggle-pretty-entities
"org" ())
31 (declare-function org-table-align
"org-table" ())
33 (defgroup org-entities nil
34 "Options concerning entities in Org-mode."
38 (defun org-entities--user-safe-p (v)
39 "Non-nil if V is a safe value for `org-entities-user'."
42 (`(,(and (pred stringp
)
43 (pred (string-match-p "\\`[a-zA-Z][a-zA-Z0-9]*\\'")))
44 ,(pred stringp
) ,(pred booleanp
) ,(pred stringp
)
45 ,(pred stringp
) ,(pred stringp
) ,(pred stringp
))
49 (defcustom org-entities-user nil
50 "User-defined entities used in Org to produce special characters.
51 Each entry in this list is a list of strings. It associates the name
52 of the entity that can be inserted into an Org file as \\name with the
53 appropriate replacements for the different export backends. The order
54 of the fields is the following
56 name As a string, without the leading backslash.
57 LaTeX replacement In ready LaTeX, no further processing will take place.
58 LaTeX mathp Either t or nil. When t this entity needs to be in
60 HTML replacement In ready HTML, no further processing will take place.
61 Usually this will be an &...; entity.
62 ASCII replacement Plain ASCII, no extensions.
63 Latin1 replacement Use the special characters available in latin1.
64 utf-8 replacement Use the special characters available in utf-8.
66 If you define new entities here that require specific LaTeX
67 packages to be loaded, add these packages to `org-latex-packages-alist'."
73 (string :tag
"LaTeX ")
74 (boolean :tag
"Require LaTeX math?")
76 (string :tag
"ASCII ")
77 (string :tag
"Latin1")
78 (string :tag
"utf-8 ")))
79 :safe
#'org-entities--user-safe-p
)
81 (defconst org-entities
85 ("Agrave" "\\`{A}" nil
"À" "A" "À" "À")
86 ("agrave" "\\`{a}" nil
"à" "a" "à" "à")
87 ("Aacute" "\\'{A}" nil
"Á" "A" "Á" "Á")
88 ("aacute" "\\'{a}" nil
"á" "a" "á" "á")
89 ("Acirc" "\\^{A}" nil
"Â" "A" "Â" "Â")
90 ("acirc" "\\^{a}" nil
"â" "a" "â" "â")
91 ("Atilde" "\\~{A}" nil
"Ã" "A" "Ã" "Ã")
92 ("atilde" "\\~{a}" nil
"ã" "a" "ã" "ã")
93 ("Auml" "\\\"{A}" nil
"Ä" "Ae" "Ä" "Ä")
94 ("auml" "\\\"{a}" nil
"ä" "ae" "ä" "ä")
95 ("Aring" "\\AA{}" nil
"Å" "A" "Å" "Å")
96 ("AA" "\\AA{}" nil
"Å" "A" "Å" "Å")
97 ("aring" "\\aa{}" nil
"å" "a" "å" "å")
98 ("AElig" "\\AE{}" nil
"Æ" "AE" "Æ" "Æ")
99 ("aelig" "\\ae{}" nil
"æ" "ae" "æ" "æ")
100 ("Ccedil" "\\c{C}" nil
"Ç" "C" "Ç" "Ç")
101 ("ccedil" "\\c{c}" nil
"ç" "c" "ç" "ç")
102 ("Egrave" "\\`{E}" nil
"È" "E" "È" "È")
103 ("egrave" "\\`{e}" nil
"è" "e" "è" "è")
104 ("Eacute" "\\'{E}" nil
"É" "E" "É" "É")
105 ("eacute" "\\'{e}" nil
"é" "e" "é" "é")
106 ("Ecirc" "\\^{E}" nil
"Ê" "E" "Ê" "Ê")
107 ("ecirc" "\\^{e}" nil
"ê" "e" "ê" "ê")
108 ("Euml" "\\\"{E}" nil
"Ë" "E" "Ë" "Ë")
109 ("euml" "\\\"{e}" nil
"ë" "e" "ë" "ë")
110 ("Igrave" "\\`{I}" nil
"Ì" "I" "Ì" "Ì")
111 ("igrave" "\\`{i}" nil
"ì" "i" "ì" "ì")
112 ("Iacute" "\\'{I}" nil
"Í" "I" "Í" "Í")
113 ("iacute" "\\'{i}" nil
"í" "i" "í" "í")
114 ("Icirc" "\\^{I}" nil
"Î" "I" "Î" "Î")
115 ("icirc" "\\^{i}" nil
"î" "i" "î" "î")
116 ("Iuml" "\\\"{I}" nil
"Ï" "I" "Ï" "Ï")
117 ("iuml" "\\\"{i}" nil
"ï" "i" "ï" "ï")
118 ("Ntilde" "\\~{N}" nil
"Ñ" "N" "Ñ" "Ñ")
119 ("ntilde" "\\~{n}" nil
"ñ" "n" "ñ" "ñ")
120 ("Ograve" "\\`{O}" nil
"Ò" "O" "Ò" "Ò")
121 ("ograve" "\\`{o}" nil
"ò" "o" "ò" "ò")
122 ("Oacute" "\\'{O}" nil
"Ó" "O" "Ó" "Ó")
123 ("oacute" "\\'{o}" nil
"ó" "o" "ó" "ó")
124 ("Ocirc" "\\^{O}" nil
"Ô" "O" "Ô" "Ô")
125 ("ocirc" "\\^{o}" nil
"ô" "o" "ô" "ô")
126 ("Otilde" "\\~{O}" nil
"Õ" "O" "Õ" "Õ")
127 ("otilde" "\\~{o}" nil
"õ" "o" "õ" "õ")
128 ("Ouml" "\\\"{O}" nil
"Ö" "Oe" "Ö" "Ö")
129 ("ouml" "\\\"{o}" nil
"ö" "oe" "ö" "ö")
130 ("Oslash" "\\O" nil
"Ø" "O" "Ø" "Ø")
131 ("oslash" "\\o{}" nil
"ø" "o" "ø" "ø")
132 ("OElig" "\\OE{}" nil
"Œ" "OE" "OE" "Œ")
133 ("oelig" "\\oe{}" nil
"œ" "oe" "oe" "œ")
134 ("Scaron" "\\v{S}" nil
"Š" "S" "S" "Š")
135 ("scaron" "\\v{s}" nil
"š" "s" "s" "š")
136 ("szlig" "\\ss{}" nil
"ß" "ss" "ß" "ß")
137 ("Ugrave" "\\`{U}" nil
"Ù" "U" "Ù" "Ù")
138 ("ugrave" "\\`{u}" nil
"ù" "u" "ù" "ù")
139 ("Uacute" "\\'{U}" nil
"Ú" "U" "Ú" "Ú")
140 ("uacute" "\\'{u}" nil
"ú" "u" "ú" "ú")
141 ("Ucirc" "\\^{U}" nil
"Û" "U" "Û" "Û")
142 ("ucirc" "\\^{u}" nil
"û" "u" "û" "û")
143 ("Uuml" "\\\"{U}" nil
"Ü" "Ue" "Ü" "Ü")
144 ("uuml" "\\\"{u}" nil
"ü" "ue" "ü" "ü")
145 ("Yacute" "\\'{Y}" nil
"Ý" "Y" "Ý" "Ý")
146 ("yacute" "\\'{y}" nil
"ý" "y" "ý" "ý")
147 ("Yuml" "\\\"{Y}" nil
"Ÿ" "Y" "Y" "Ÿ")
148 ("yuml" "\\\"{y}" nil
"ÿ" "y" "ÿ" "ÿ")
150 "** Latin (special face)"
151 ("fnof" "\\textit{f}" nil
"ƒ" "f" "f" "ƒ")
152 ("real" "\\Re" t
"ℜ" "R" "R" "ℜ")
153 ("image" "\\Im" t
"ℑ" "I" "I" "ℑ")
154 ("weierp" "\\wp" t
"℘" "P" "P" "℘")
155 ("ell" "\\ell" t
"ℓ" "ell" "ell" "ℓ")
156 ("imath" "\\imath" t
"ı" "[dotless i]" "dotless i" "ı")
157 ("jmath" "\\jmath" t
"ȷ" "[dotless j]" "dotless j" "ȷ")
160 ("Alpha" "A" nil
"Α" "Alpha" "Alpha" "Α")
161 ("alpha" "\\alpha" t
"α" "alpha" "alpha" "α")
162 ("Beta" "B" nil
"Β" "Beta" "Beta" "Β")
163 ("beta" "\\beta" t
"β" "beta" "beta" "β")
164 ("Gamma" "\\Gamma" t
"Γ" "Gamma" "Gamma" "Γ")
165 ("gamma" "\\gamma" t
"γ" "gamma" "gamma" "γ")
166 ("Delta" "\\Delta" t
"Δ" "Delta" "Gamma" "Δ")
167 ("delta" "\\delta" t
"δ" "delta" "delta" "δ")
168 ("Epsilon" "E" nil
"Ε" "Epsilon" "Epsilon" "Ε")
169 ("epsilon" "\\epsilon" t
"ε" "epsilon" "epsilon" "ε")
170 ("varepsilon" "\\varepsilon" t
"ε" "varepsilon" "varepsilon" "ε")
171 ("Zeta" "Z" nil
"Ζ" "Zeta" "Zeta" "Ζ")
172 ("zeta" "\\zeta" t
"ζ" "zeta" "zeta" "ζ")
173 ("Eta" "H" nil
"Η" "Eta" "Eta" "Η")
174 ("eta" "\\eta" t
"η" "eta" "eta" "η")
175 ("Theta" "\\Theta" t
"Θ" "Theta" "Theta" "Θ")
176 ("theta" "\\theta" t
"θ" "theta" "theta" "θ")
177 ("thetasym" "\\vartheta" t
"ϑ" "theta" "theta" "ϑ")
178 ("vartheta" "\\vartheta" t
"ϑ" "theta" "theta" "ϑ")
179 ("Iota" "I" nil
"Ι" "Iota" "Iota" "Ι")
180 ("iota" "\\iota" t
"ι" "iota" "iota" "ι")
181 ("Kappa" "K" nil
"Κ" "Kappa" "Kappa" "Κ")
182 ("kappa" "\\kappa" t
"κ" "kappa" "kappa" "κ")
183 ("Lambda" "\\Lambda" t
"Λ" "Lambda" "Lambda" "Λ")
184 ("lambda" "\\lambda" t
"λ" "lambda" "lambda" "λ")
185 ("Mu" "M" nil
"Μ" "Mu" "Mu" "Μ")
186 ("mu" "\\mu" t
"μ" "mu" "mu" "μ")
187 ("nu" "\\nu" t
"ν" "nu" "nu" "ν")
188 ("Nu" "N" nil
"Ν" "Nu" "Nu" "Ν")
189 ("Xi" "\\Xi" t
"Ξ" "Xi" "Xi" "Ξ")
190 ("xi" "\\xi" t
"ξ" "xi" "xi" "ξ")
191 ("Omicron" "O" nil
"Ο" "Omicron" "Omicron" "Ο")
192 ("omicron" "\\textit{o}" nil
"ο" "omicron" "omicron" "ο")
193 ("Pi" "\\Pi" t
"Π" "Pi" "Pi" "Π")
194 ("pi" "\\pi" t
"π" "pi" "pi" "π")
195 ("Rho" "P" nil
"Ρ" "Rho" "Rho" "Ρ")
196 ("rho" "\\rho" t
"ρ" "rho" "rho" "ρ")
197 ("Sigma" "\\Sigma" t
"Σ" "Sigma" "Sigma" "Σ")
198 ("sigma" "\\sigma" t
"σ" "sigma" "sigma" "σ")
199 ("sigmaf" "\\varsigma" t
"ς" "sigmaf" "sigmaf" "ς")
200 ("varsigma" "\\varsigma" t
"ς" "varsigma" "varsigma" "ς")
201 ("Tau" "T" nil
"Τ" "Tau" "Tau" "Τ")
202 ("Upsilon" "\\Upsilon" t
"Υ" "Upsilon" "Upsilon" "Υ")
203 ("upsih" "\\Upsilon" t
"ϒ" "upsilon" "upsilon" "ϒ")
204 ("upsilon" "\\upsilon" t
"υ" "upsilon" "upsilon" "υ")
205 ("Phi" "\\Phi" t
"Φ" "Phi" "Phi" "Φ")
206 ("phi" "\\phi" t
"φ" "phi" "phi" "ɸ")
207 ("varphi" "\\varphi" t
"ϕ" "varphi" "varphi" "φ")
208 ("Chi" "X" nil
"Χ" "Chi" "Chi" "Χ")
209 ("chi" "\\chi" t
"χ" "chi" "chi" "χ")
210 ("acutex" "\\acute x" t
"´x" "'x" "'x" "𝑥́")
211 ("Psi" "\\Psi" t
"Ψ" "Psi" "Psi" "Ψ")
212 ("psi" "\\psi" t
"ψ" "psi" "psi" "ψ")
213 ("tau" "\\tau" t
"τ" "tau" "tau" "τ")
214 ("Omega" "\\Omega" t
"Ω" "Omega" "Omega" "Ω")
215 ("omega" "\\omega" t
"ω" "omega" "omega" "ω")
216 ("piv" "\\varpi" t
"ϖ" "omega-pi" "omega-pi" "ϖ")
217 ("varpi" "\\varpi" t
"ϖ" "omega-pi" "omega-pi" "ϖ")
218 ("partial" "\\partial" t
"∂" "[partial differential]" "[partial differential]" "∂")
221 ("alefsym" "\\aleph" t
"ℵ" "aleph" "aleph" "ℵ")
222 ("aleph" "\\aleph" t
"ℵ" "aleph" "aleph" "ℵ")
223 ("gimel" "\\gimel" t
"ℷ" "gimel" "gimel" "ℷ")
224 ("beth" "\\beth" t
"ℶ" "beth" "beth" "ב")
225 ("dalet" "\\daleth" t
"ℸ" "dalet" "dalet" "ד")
228 ("ETH" "\\DH{}" nil
"Ð" "D" "Ð" "Ð")
229 ("eth" "\\dh{}" nil
"ð" "dh" "ð" "ð")
230 ("THORN" "\\TH{}" nil
"Þ" "TH" "Þ" "Þ")
231 ("thorn" "\\th{}" nil
"þ" "th" "þ" "þ")
235 ("dots" "\\dots{}" nil
"…" "..." "..." "…")
236 ("cdots" "\\cdots{}" t
"⋯" "..." "..." "⋯")
237 ("hellip" "\\dots{}" nil
"…" "..." "..." "…")
238 ("middot" "\\textperiodcentered{}" nil
"·" "." "·" "·")
239 ("iexcl" "!`" nil
"¡" "!" "¡" "¡")
240 ("iquest" "?`" nil
"¿" "?" "¿" "¿")
243 ("shy" "\\-" nil
"­" "" "" "")
244 ("ndash" "--" nil
"–" "-" "-" "–")
245 ("mdash" "---" nil
"—" "--" "--" "—")
248 ("quot" "\\textquotedbl{}" nil
""" "\"" "\"" "\"")
249 ("acute" "\\textasciiacute{}" nil
"´" "'" "´" "´")
250 ("ldquo" "\\textquotedblleft{}" nil
"“" "\"" "\"" "“")
251 ("rdquo" "\\textquotedblright{}" nil
"”" "\"" "\"" "”")
252 ("bdquo" "\\quotedblbase{}" nil
"„" "\"" "\"" "„")
253 ("lsquo" "\\textquoteleft{}" nil
"‘" "`" "`" "‘")
254 ("rsquo" "\\textquoteright{}" nil
"’" "'" "'" "’")
255 ("sbquo" "\\quotesinglbase{}" nil
"‚" "," "," "‚")
256 ("laquo" "\\guillemotleft{}" nil
"«" "<<" "«" "«")
257 ("raquo" "\\guillemotright{}" nil
"»" ">>" "»" "»")
258 ("lsaquo" "\\guilsinglleft{}" nil
"‹" "<" "<" "‹")
259 ("rsaquo" "\\guilsinglright{}" nil
"›" ">" ">" "›")
262 "** Misc. (often used)"
263 ("circ" "\\^{}" nil
"ˆ" "^" "^" "ˆ")
264 ("vert" "\\vert{}" t
"|" "|" "|" "|")
265 ("vbar" "|" nil
"|" "|" "|" "|")
266 ("brvbar" "\\textbrokenbar{}" nil
"¦" "|" "¦" "¦")
267 ("S" "\\S" nil
"§" "paragraph" "§" "§")
268 ("sect" "\\S" nil
"§" "paragraph" "§" "§")
269 ("amp" "\\&" nil
"&" "&" "&" "&")
270 ("lt" "\\textless{}" nil
"<" "<" "<" "<")
271 ("gt" "\\textgreater{}" nil
">" ">" ">" ">")
272 ("tilde" "\\textasciitilde{}" nil
"~" "~" "~" "~")
273 ("slash" "/" nil
"/" "/" "/" "/")
274 ("plus" "+" nil
"+" "+" "+" "+")
275 ("under" "\\_" nil
"_" "_" "_" "_")
276 ("equal" "=" nil
"=" "=" "=" "=")
277 ("asciicirc" "\\textasciicircum{}" nil
"^" "^" "^" "^")
278 ("dagger" "\\textdagger{}" nil
"†" "[dagger]" "[dagger]" "†")
279 ("dag" "\\dag{}" nil
"†" "[dagger]" "[dagger]" "†")
280 ("Dagger" "\\textdaggerdbl{}" nil
"‡" "[doubledagger]" "[doubledagger]" "‡")
281 ("ddag" "\\ddag{}" nil
"‡" "[doubledagger]" "[doubledagger]" "‡")
284 ("nbsp" "~" nil
" " " " "\x00A0" "\x00A0")
285 ("ensp" "\\hspace*{.5em}" nil
" " " " " " " ")
286 ("emsp" "\\hspace*{1em}" nil
" " " " " " " ")
287 ("thinsp" "\\hspace*{.2em}" nil
" " " " " " " ")
290 ("curren" "\\textcurrency{}" nil
"¤" "curr." "¤" "¤")
291 ("cent" "\\textcent{}" nil
"¢" "cent" "¢" "¢")
292 ("pound" "\\pounds{}" nil
"£" "pound" "£" "£")
293 ("yen" "\\textyen{}" nil
"¥" "yen" "¥" "¥")
294 ("euro" "\\texteuro{}" nil
"€" "EUR" "EUR" "€")
295 ("EUR" "\\texteuro{}" nil
"€" "EUR" "EUR" "€")
298 ("copy" "\\textcopyright{}" nil
"©" "(c)" "©" "©")
299 ("reg" "\\textregistered{}" nil
"®" "(r)" "®" "®")
300 ("trade" "\\texttrademark{}" nil
"™" "TM" "TM" "™")
303 ("minus" "\\minus" t
"−" "-" "-" "−")
304 ("pm" "\\textpm{}" nil
"±" "+-" "±" "±")
305 ("plusmn" "\\textpm{}" nil
"±" "+-" "±" "±")
306 ("times" "\\texttimes{}" nil
"×" "*" "×" "×")
307 ("frasl" "/" nil
"⁄" "/" "/" "⁄")
308 ("colon" "\\colon" t
":" ":" ":" ":")
309 ("div" "\\textdiv{}" nil
"÷" "/" "÷" "÷")
310 ("frac12" "\\textonehalf{}" nil
"½" "1/2" "½" "½")
311 ("frac14" "\\textonequarter{}" nil
"¼" "1/4" "¼" "¼")
312 ("frac34" "\\textthreequarters{}" nil
"¾" "3/4" "¾" "¾")
313 ("permil" "\\textperthousand{}" nil
"‰" "per thousand" "per thousand" "‰")
314 ("sup1" "\\textonesuperior{}" nil
"¹" "^1" "¹" "¹")
315 ("sup2" "\\texttwosuperior{}" nil
"²" "^2" "²" "²")
316 ("sup3" "\\textthreesuperior{}" nil
"³" "^3" "³" "³")
317 ("radic" "\\sqrt{\\,}" t
"√" "[square root]" "[square root]" "√")
318 ("sum" "\\sum" t
"∑" "[sum]" "[sum]" "∑")
319 ("prod" "\\prod" t
"∏" "[product]" "[n-ary product]" "∏")
320 ("micro" "\\textmu{}" nil
"µ" "micro" "µ" "µ")
321 ("macr" "\\textasciimacron{}" nil
"¯" "[macron]" "¯" "¯")
322 ("deg" "\\textdegree{}" nil
"°" "degree" "°" "°")
323 ("prime" "\\prime" t
"′" "'" "'" "′")
324 ("Prime" "\\prime{}\\prime" t
"″" "''" "''" "″")
325 ("infin" "\\infty" t
"∞" "[infinity]" "[infinity]" "∞")
326 ("infty" "\\infty" t
"∞" "[infinity]" "[infinity]" "∞")
327 ("prop" "\\propto" t
"∝" "[proportional to]" "[proportional to]" "∝")
328 ("propto" "\\propto" t
"∝" "[proportional to]" "[proportional to]" "∝")
329 ("not" "\\textlnot{}" nil
"¬" "[angled dash]" "¬" "¬")
330 ("neg" "\\neg{}" t
"¬" "[angled dash]" "¬" "¬")
331 ("land" "\\land" t
"∧" "[logical and]" "[logical and]" "∧")
332 ("wedge" "\\wedge" t
"∧" "[logical and]" "[logical and]" "∧")
333 ("lor" "\\lor" t
"∨" "[logical or]" "[logical or]" "∨")
334 ("vee" "\\vee" t
"∨" "[logical or]" "[logical or]" "∨")
335 ("cap" "\\cap" t
"∩" "[intersection]" "[intersection]" "∩")
336 ("cup" "\\cup" t
"∪" "[union]" "[union]" "∪")
337 ("smile" "\\smile" t
"⌣" "[cup product]" "[cup product]" "⌣")
338 ("frown" "\\frown" t
"⌢" "[Cap product]" "[cap product]" "⌢")
339 ("int" "\\int" t
"∫" "[integral]" "[integral]" "∫")
340 ("therefore" "\\therefore" t
"∴" "[therefore]" "[therefore]" "∴")
341 ("there4" "\\therefore" t
"∴" "[therefore]" "[therefore]" "∴")
342 ("because" "\\because" t
"∵" "[because]" "[because]" "∵")
343 ("sim" "\\sim" t
"∼" "~" "~" "∼")
344 ("cong" "\\cong" t
"≅" "[approx. equal to]" "[approx. equal to]" "≅")
345 ("simeq" "\\simeq" t
"≅" "[approx. equal to]" "[approx. equal to]" "≅")
346 ("asymp" "\\asymp" t
"≈" "[almost equal to]" "[almost equal to]" "≈")
347 ("approx" "\\approx" t
"≈" "[almost equal to]" "[almost equal to]" "≈")
348 ("ne" "\\ne" t
"≠" "[not equal to]" "[not equal to]" "≠")
349 ("neq" "\\neq" t
"≠" "[not equal to]" "[not equal to]" "≠")
350 ("equiv" "\\equiv" t
"≡" "[identical to]" "[identical to]" "≡")
352 ("triangleq" "\\triangleq" t
"≜" "[defined to]" "[defined to]" "≜")
353 ("le" "\\le" t
"≤" "<=" "<=" "≤")
354 ("leq" "\\le" t
"≤" "<=" "<=" "≤")
355 ("ge" "\\ge" t
"≥" ">=" ">=" "≥")
356 ("geq" "\\ge" t
"≥" ">=" ">=" "≥")
357 ("lessgtr" "\\lessgtr" t
"≶" "[less than or greater than]" "[less than or greater than]" "≶")
358 ("lesseqgtr" "\\lesseqgtr" t
"⋚" "[less than or equal or greater than or equal]" "[less than or equal or greater than or equal]" "⋚")
359 ("ll" "\\ll" t
"≪" "<<" "<<" "≪")
360 ("Ll" "\\lll" t
"⋘" "<<<" "<<<" "⋘")
361 ("lll" "\\lll" t
"⋘" "<<<" "<<<" "⋘")
362 ("gg" "\\gg" t
"≫" ">>" ">>" "≫")
363 ("Gg" "\\ggg" t
"⋙" ">>>" ">>>" "⋙")
364 ("ggg" "\\ggg" t
"⋙" ">>>" ">>>" "⋙")
365 ("prec" "\\prec" t
"≺" "[precedes]" "[precedes]" "≺")
366 ("preceq" "\\preceq" t
"≼" "[precedes or equal]" "[precedes or equal]" "≼")
367 ("preccurlyeq" "\\preccurlyeq" t
"≼" "[precedes or equal]" "[precedes or equal]" "≼")
368 ("succ" "\\succ" t
"≻" "[succeeds]" "[succeeds]" "≻")
369 ("succeq" "\\succeq" t
"≽" "[succeeds or equal]" "[succeeds or equal]" "≽")
370 ("succcurlyeq" "\\succcurlyeq" t
"≽" "[succeeds or equal]" "[succeeds or equal]" "≽")
371 ("sub" "\\subset" t
"⊂" "[subset of]" "[subset of]" "⊂")
372 ("subset" "\\subset" t
"⊂" "[subset of]" "[subset of]" "⊂")
373 ("sup" "\\supset" t
"⊃" "[superset of]" "[superset of]" "⊃")
374 ("supset" "\\supset" t
"⊃" "[superset of]" "[superset of]" "⊃")
375 ("nsub" "\\not\\subset" t
"⊄" "[not a subset of]" "[not a subset of" "⊄")
376 ("sube" "\\subseteq" t
"⊆" "[subset of or equal to]" "[subset of or equal to]" "⊆")
377 ("nsup" "\\not\\supset" t
"⊅" "[not a superset of]" "[not a superset of]" "⊅")
378 ("supe" "\\supseteq" t
"⊇" "[superset of or equal to]" "[superset of or equal to]" "⊇")
379 ("setminus" "\\setminus" t
"∖" "\" "\" "⧵")
380 ("forall" "\\forall" t
"∀" "[for all]" "[for all]" "∀")
381 ("exist" "\\exists" t
"∃" "[there exists]" "[there exists]" "∃")
382 ("exists" "\\exists" t
"∃" "[there exists]" "[there exists]" "∃")
383 ("nexist" "\\nexists" t
"∃" "[there does not exists]" "[there does not exists]" "∄")
384 ("nexists" "\\nexists" t
"∃" "[there does not exists]" "[there does not exists]" "∄")
385 ("empty" "\\empty" t
"∅" "[empty set]" "[empty set]" "∅")
386 ("emptyset" "\\emptyset" t
"∅" "[empty set]" "[empty set]" "∅")
387 ("isin" "\\in" t
"∈" "[element of]" "[element of]" "∈")
388 ("in" "\\in" t
"∈" "[element of]" "[element of]" "∈")
389 ("notin" "\\notin" t
"∉" "[not an element of]" "[not an element of]" "∉")
390 ("ni" "\\ni" t
"∋" "[contains as member]" "[contains as member]" "∋")
391 ("nabla" "\\nabla" t
"∇" "[nabla]" "[nabla]" "∇")
392 ("ang" "\\angle" t
"∠" "[angle]" "[angle]" "∠")
393 ("angle" "\\angle" t
"∠" "[angle]" "[angle]" "∠")
394 ("perp" "\\perp" t
"⊥" "[up tack]" "[up tack]" "⊥")
395 ("parallel" "\\parallel" t
"∥" "||" "||" "∥")
396 ("sdot" "\\cdot" t
"⋅" "[dot]" "[dot]" "⋅")
397 ("cdot" "\\cdot" t
"⋅" "[dot]" "[dot]" "⋅")
398 ("lceil" "\\lceil" t
"⌈" "[left ceiling]" "[left ceiling]" "⌈")
399 ("rceil" "\\rceil" t
"⌉" "[right ceiling]" "[right ceiling]" "⌉")
400 ("lfloor" "\\lfloor" t
"⌊" "[left floor]" "[left floor]" "⌊")
401 ("rfloor" "\\rfloor" t
"⌋" "[right floor]" "[right floor]" "⌋")
402 ("lang" "\\langle" t
"⟨" "<" "<" "⟨")
403 ("rang" "\\rangle" t
"⟩" ">" ">" "⟩")
404 ("langle" "\\langle" t
"⟨" "<" "<" "⟨")
405 ("rangle" "\\rangle" t
"⟩" ">" ">" "⟩")
406 ("hbar" "\\hbar" t
"ℏ" "hbar" "hbar" "ℏ")
407 ("mho" "\\mho" t
"℧" "mho" "mho" "℧")
410 ("larr" "\\leftarrow" t
"←" "<-" "<-" "←")
411 ("leftarrow" "\\leftarrow" t
"←" "<-" "<-" "←")
412 ("gets" "\\gets" t
"←" "<-" "<-" "←")
413 ("lArr" "\\Leftarrow" t
"⇐" "<=" "<=" "⇐")
414 ("Leftarrow" "\\Leftarrow" t
"⇐" "<=" "<=" "⇐")
415 ("uarr" "\\uparrow" t
"↑" "[uparrow]" "[uparrow]" "↑")
416 ("uparrow" "\\uparrow" t
"↑" "[uparrow]" "[uparrow]" "↑")
417 ("uArr" "\\Uparrow" t
"⇑" "[dbluparrow]" "[dbluparrow]" "⇑")
418 ("Uparrow" "\\Uparrow" t
"⇑" "[dbluparrow]" "[dbluparrow]" "⇑")
419 ("rarr" "\\rightarrow" t
"→" "->" "->" "→")
420 ("to" "\\to" t
"→" "->" "->" "→")
421 ("rightarrow" "\\rightarrow" t
"→" "->" "->" "→")
422 ("rArr" "\\Rightarrow" t
"⇒" "=>" "=>" "⇒")
423 ("Rightarrow" "\\Rightarrow" t
"⇒" "=>" "=>" "⇒")
424 ("darr" "\\downarrow" t
"↓" "[downarrow]" "[downarrow]" "↓")
425 ("downarrow" "\\downarrow" t
"↓" "[downarrow]" "[downarrow]" "↓")
426 ("dArr" "\\Downarrow" t
"⇓" "[dbldownarrow]" "[dbldownarrow]" "⇓")
427 ("Downarrow" "\\Downarrow" t
"⇓" "[dbldownarrow]" "[dbldownarrow]" "⇓")
428 ("harr" "\\leftrightarrow" t
"↔" "<->" "<->" "↔")
429 ("leftrightarrow" "\\leftrightarrow" t
"↔" "<->" "<->" "↔")
430 ("hArr" "\\Leftrightarrow" t
"⇔" "<=>" "<=>" "⇔")
431 ("Leftrightarrow" "\\Leftrightarrow" t
"⇔" "<=>" "<=>" "⇔")
432 ("crarr" "\\hookleftarrow" t
"↵" "<-'" "<-'" "↵")
433 ("hookleftarrow" "\\hookleftarrow" t
"↵" "<-'" "<-'" "↵")
436 ("arccos" "\\arccos" t
"arccos" "arccos" "arccos" "arccos")
437 ("arcsin" "\\arcsin" t
"arcsin" "arcsin" "arcsin" "arcsin")
438 ("arctan" "\\arctan" t
"arctan" "arctan" "arctan" "arctan")
439 ("arg" "\\arg" t
"arg" "arg" "arg" "arg")
440 ("cos" "\\cos" t
"cos" "cos" "cos" "cos")
441 ("cosh" "\\cosh" t
"cosh" "cosh" "cosh" "cosh")
442 ("cot" "\\cot" t
"cot" "cot" "cot" "cot")
443 ("coth" "\\coth" t
"coth" "coth" "coth" "coth")
444 ("csc" "\\csc" t
"csc" "csc" "csc" "csc")
445 ("deg" "\\deg" t
"°" "deg" "deg" "deg")
446 ("det" "\\det" t
"det" "det" "det" "det")
447 ("dim" "\\dim" t
"dim" "dim" "dim" "dim")
448 ("exp" "\\exp" t
"exp" "exp" "exp" "exp")
449 ("gcd" "\\gcd" t
"gcd" "gcd" "gcd" "gcd")
450 ("hom" "\\hom" t
"hom" "hom" "hom" "hom")
451 ("inf" "\\inf" t
"inf" "inf" "inf" "inf")
452 ("ker" "\\ker" t
"ker" "ker" "ker" "ker")
453 ("lg" "\\lg" t
"lg" "lg" "lg" "lg")
454 ("lim" "\\lim" t
"lim" "lim" "lim" "lim")
455 ("liminf" "\\liminf" t
"liminf" "liminf" "liminf" "liminf")
456 ("limsup" "\\limsup" t
"limsup" "limsup" "limsup" "limsup")
457 ("ln" "\\ln" t
"ln" "ln" "ln" "ln")
458 ("log" "\\log" t
"log" "log" "log" "log")
459 ("max" "\\max" t
"max" "max" "max" "max")
460 ("min" "\\min" t
"min" "min" "min" "min")
461 ("Pr" "\\Pr" t
"Pr" "Pr" "Pr" "Pr")
462 ("sec" "\\sec" t
"sec" "sec" "sec" "sec")
463 ("sin" "\\sin" t
"sin" "sin" "sin" "sin")
464 ("sinh" "\\sinh" t
"sinh" "sinh" "sinh" "sinh")
465 ("sup" "\\sup" t
"⊃" "sup" "sup" "sup")
466 ("tan" "\\tan" t
"tan" "tan" "tan" "tan")
467 ("tanh" "\\tanh" t
"tanh" "tanh" "tanh" "tanh")
470 ("bull" "\\textbullet{}" nil
"•" "*" "*" "•")
471 ("bullet" "\\textbullet{}" nil
"•" "*" "*" "•")
472 ("star" "\\star" t
"*" "*" "*" "⋆")
473 ("lowast" "\\ast" t
"∗" "*" "*" "∗")
474 ("ast" "\\ast" t
"∗" "*" "*" "*")
475 ("odot" "\\odot" t
"o" "[circled dot]" "[circled dot]" "ʘ")
476 ("oplus" "\\oplus" t
"⊕" "[circled plus]" "[circled plus]" "⊕")
477 ("otimes" "\\otimes" t
"⊗" "[circled times]" "[circled times]" "⊗")
478 ("check" "\\checkmark" t
"✓" "[checkmark]" "[checkmark]" "✓")
479 ("checkmark" "\\checkmark" t
"✓" "[checkmark]" "[checkmark]" "✓")
481 "** Miscellaneous (seldom used)"
482 ("para" "\\P{}" nil
"¶" "[pilcrow]" "¶" "¶")
483 ("ordf" "\\textordfeminine{}" nil
"ª" "_a_" "ª" "ª")
484 ("ordm" "\\textordmasculine{}" nil
"º" "_o_" "º" "º")
485 ("cedil" "\\c{}" nil
"¸" "[cedilla]" "¸" "¸")
486 ("oline" "\\overline{~}" t
"‾" "[overline]" "¯" "‾")
487 ("uml" "\\textasciidieresis{}" nil
"¨" "[diaeresis]" "¨" "¨")
488 ("zwnj" "\\/{}" nil
"‌" "" "" "")
489 ("zwj" "" nil
"‍" "" "" "")
490 ("lrm" "" nil
"‎" "" "" "")
491 ("rlm" "" nil
"‏" "" "" "")
494 ("smiley" "\\ddot\\smile" t
"☺" ":-)" ":-)" "☺")
495 ("blacksmile" "\\ddot\\smile" t
"☻" ":-)" ":-)" "☻")
496 ("sad" "\\ddot\\frown" t
"☹" ":-(" ":-(" "☹")
497 ("frowny" "\\ddot\\frown" t
"☹" ":-(" ":-(" "☹")
500 ("clubs" "\\clubsuit" t
"♣" "[clubs]" "[clubs]" "♣")
501 ("clubsuit" "\\clubsuit" t
"♣" "[clubs]" "[clubs]" "♣")
502 ("spades" "\\spadesuit" t
"♠" "[spades]" "[spades]" "♠")
503 ("spadesuit" "\\spadesuit" t
"♠" "[spades]" "[spades]" "♠")
504 ("hearts" "\\heartsuit" t
"♥" "[hearts]" "[hearts]" "♥")
505 ("heartsuit" "\\heartsuit" t
"♥" "[hearts]" "[hearts]" "♥")
506 ("diams" "\\diamondsuit" t
"♦" "[diamonds]" "[diamonds]" "◆")
507 ("diamondsuit" "\\diamondsuit" t
"♦" "[diamonds]" "[diamonds]" "◆")
508 ("diamond" "\\diamondsuit" t
"⋄" "[diamond]" "[diamond]" "◆")
509 ("Diamond" "\\diamondsuit" t
"⋄" "[diamond]" "[diamond]" "◆")
510 ("loz" "\\lozenge" t
"◊" "[lozenge]" "[lozenge]" "⧫"))
511 ;; Add "\_ "-entity family for spaces.
512 (let (space-entities html-spaces
(entity "_"))
513 (dolist (n (number-sequence 1 20) (nreverse space-entities
))
514 (let ((spaces (make-string n ?\s
)))
515 (push (list (setq entity
(concat entity
" "))
516 (format "\\hspace*{%sem}" (* n
.5))
518 (setq html-spaces
(concat " " html-spaces
))
521 (make-string n ?
\x2002
))
523 "Default entities used in Org mode to produce special characters.
524 For details see `org-entities-user'.")
526 (defsubst org-entity-get
(name)
527 "Get the proper association for NAME from the entity lists.
528 This first checks the user list, then the built-in list."
529 (or (assoc name org-entities-user
)
530 (assoc name org-entities
)))
532 ;; Helpfunctions to create a table for orgmode.org/worg/org-symbols.org
534 (defun org-entities-create-table ()
535 "Create an Org mode table with all entities."
538 (insert "|Name|LaTeX code|LaTeX|HTML code |HTML|ASCII|Latin1|UTF-8\n|-\n")
539 (dolist (e org-entities
)
541 (`(,name
,latex
,mathp
,html
,ascii
,latin
,utf8
)
542 (if (equal ascii
"|") (setq ascii
"\\vert"))
543 (if (equal latin
"|") (setq latin
"\\vert"))
544 (if (equal utf8
"|") (setq utf8
"\\vert"))
545 (if (equal ascii
"=>") (setq ascii
"= >"))
546 (if (equal latin
"=>") (setq latin
"= >"))
548 "|" (format "=%s=" latex
)
549 "|" (format (if mathp
"$%s$" "$\\mbox{%s}$") latex
)
550 "|" (format "=%s=" html
) "|" html
551 "|" ascii
"|" latin
"|" utf8
556 (defvar org-pretty-entities
) ;; declare defcustom from org
557 (defun org-entities-help ()
558 "Create a Help buffer with all available entities."
560 (with-output-to-temp-buffer "*Org Entity Help*"
561 (princ "Org-mode entities\n=================\n\n")
562 (let ((ll (append '("* User-defined additions (variable org-entities-user)")
568 " Symbol Org entity LaTeX code HTML code\n"
569 " -----------------------------------------------------------\n")))
572 (`(,name
,latex
,_
,html
,_
,_
,utf8
)
575 (setq lastwasstring nil
))
576 (princ (format " %-8s \\%-16s %-22s %-13s\n"
577 utf8 name latex html
)))
581 (setq lastwasstring t
))))))
582 (with-current-buffer "*Org Entity Help*"
584 (when org-pretty-entities
585 (org-toggle-pretty-entities)))
586 (select-window (get-buffer-window "*Org Entity Help*")))
589 (provide 'org-entities
)
595 ;;; org-entities.el ends here