From: Ilja Kocken <i.j.kocken@uu.nl>
To: emacs-orgmode@gnu.org
Subject: Feature request: Add support for org-toggle-pretty-entities preview of org-entities-user which are more than one unicode character
Date: Tue, 25 Dec 2018 13:07:53 +0100 [thread overview]
Message-ID: <87zhstn71i.fsf@uu.nl> (raw)
Hi there!
I've recently added some custom entries to my org-entities-user
(below), but the ones that are more than one UTF-8 character long
(most) do not show in my org-buffer with
org-toggle-pretty-entities on. Is there a particular reason that
I'm missing for why it will only preview single-character
entities?
(setq org-entities-user
'(("dO" "\\(\\delta^{18}\\)O" nil "δ<sup>18</sup>O"
"δ18O" "δ18O" "δ¹⁸O")
("eO" "\\({}^{18}\\)O" nil "<sup>18</sup>O" "18O" "18O"
"¹⁸O")
("dC" "\\(\\delta^{13}\\)C" nil "δ<sup>13</sup>O"
"δ13C" "δ¹³C" "δ¹³C")
("tC" "\\({}^{13}\\)C" nil "<sup>13</sup>C" "13C" "¹³C"
"¹³O")
("COt" "CO\\(_{2}\\)" nil "CO<sub>2</sub>" "CO2" "CO₂"
"CO₂")
("D" "\\Delta_{47}" t "Δ<sub>47</sub>" "Δ47" "Δ47"
"Δ₄₇")
("celsius" "\\(^{\\circ}\\)C" nil "°C" "°C" "°C" "℃")
;; unit space, for something like 15\us{}kg
("us" "\\," nil " " " " " " " ")
("appr" "\\sim" t "˜" "~" "~" "~")
;; for gps-coordinates
("degree" "^{\\circ}" t "°" "°" "°" "°")
("arcminute" "^{'}" t "′" "'" "′" "′")
("arcsecond" "^{''}" t "″" "\"" "″" "″")
))
Or am I going about this the wrong way in this particular case? I
could of course also write yasnippets to autocomplete the full
org-source, but I would like more control over what the latex
export looks like (since I have to format everything according to
strict latex conventions for scientific journals, so for example
the default CO_2 -> CO\(_{\text{2}}\) is wrong).
Kind regards,
Ilja
next reply other threads:[~2018-12-25 12:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-25 12:07 Ilja Kocken [this message]
2019-01-01 16:56 ` Feature request: Add support for org-toggle-pretty-entities preview of org-entities-user which are more than one unicode character Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zhstn71i.fsf@uu.nl \
--to=i.j.kocken@uu.nl \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.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).