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