From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilja Kocken 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 Message-ID: <87zhstn71i.fsf@uu.nl> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gblaZ-0008K5-2l for emacs-orgmode@gnu.org; Tue, 25 Dec 2018 07:13:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gblaU-0006Pt-5z for emacs-orgmode@gnu.org; Tue, 25 Dec 2018 07:13:35 -0500 Received: from ictsc-w-s217.ictsc.uu.nl ([131.211.14.230]:18308 helo=edgesmtp.uu.nl) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gblaT-0006OY-W5 for emacs-orgmode@gnu.org; Tue, 25 Dec 2018 07:13:30 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi there! I've recently added some custom entries to my org-entities-user=20 (below), but the ones that are more than one UTF-8 character long=20 (most) do not show in my org-buffer with=20 org-toggle-pretty-entities on. Is there a particular reason that=20 I'm missing for why it will only preview single-character=20 entities? (setq org-entities-user '(("dO" "\\(\\delta^{18}\\)O" nil "δ18O"=20 "=CE=B418O" "=CE=B418O" "=CE=B4=C2=B9=E2=81=B8O") ("eO" "\\({}^{18}\\)O" nil "18O" "18O" "18O"=20 "=C2=B9=E2=81=B8O") ("dC" "\\(\\delta^{13}\\)C" nil "δ13O"=20 "=CE=B413C" "=CE=B4=C2=B9=C2=B3C" "=CE=B4=C2=B9=C2=B3C") ("tC" "\\({}^{13}\\)C" nil "13C" "13C" "=C2=B9=C2=B3C"=20 "=C2=B9=C2=B3O") ("COt" "CO\\(_{2}\\)" nil "CO2" "CO2" "CO=E2=82=82"=20 "CO=E2=82=82") ("D" "\\Delta_{47}" t "Δ47" "=CE=9447" "=CE=9447"= =20 "=CE=94=E2=82=84=E2=82=87") ("celsius" "\\(^{\\circ}\\)C" nil "°C" "=C2=B0C" "=C2=B0C" "=E2= =84=83") ;; unit space, for something like 15\us{}kg ("us" "\\," nil " " " " " " " ") ("appr" "\\sim" t "˜" "~" "~" "~") ;; for gps-coordinates ("degree" "^{\\circ}" t "°" "=C2=B0" "=C2=B0" "=C2=B0") ("arcminute" "^{'}" t "′" "'" "=E2=80=B2" "=E2=80=B2") ("arcsecond" "^{''}" t "″" "\"" "=E2=80=B3" "=E2=80=B3") )) Or am I going about this the wrong way in this particular case? I=20 could of course also write yasnippets to autocomplete the full=20 org-source, but I would like more control over what the latex=20 export looks like (since I have to format everything according to=20 strict latex conventions for scientific journals, so for example=20 the default CO_2 -> CO\(_{\text{2}}\) is wrong). Kind regards, Ilja