From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Feature request: Add support for org-toggle-pretty-entities preview of org-entities-user which are more than one unicode character Date: Tue, 01 Jan 2019 17:56:36 +0100 Message-ID: <871s5wz58b.fsf@nicolasgoaziou.fr> References: <87zhstn71i.fsf@uu.nl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1geNLO-0000fd-W4 for emacs-orgmode@gnu.org; Tue, 01 Jan 2019 11:56:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1geNLL-0002Wk-M1 for emacs-orgmode@gnu.org; Tue, 01 Jan 2019 11:56:42 -0500 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:44289) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1geNLL-0002VN-Fp for emacs-orgmode@gnu.org; Tue, 01 Jan 2019 11:56:39 -0500 In-Reply-To: <87zhstn71i.fsf@uu.nl> (Ilja Kocken's message of "Tue, 25 Dec 2018 13:07:53 +0100") 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: Ilja Kocken Cc: emacs-orgmode@gnu.org Hello, Ilja Kocken writes: > Is there a particular reason that I'm missing for why it will only > preview single-character entities? Entities provide a way to insert special characters using only ASCII. You are trying to use them as a templating system, or some such, which is not the initial use case. > 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). You have control over what the LaTeX output will be, e.g., CO_{$2$}, or \(CO_2\), whichever you need. IOW, I think a package like Yasnippet already fulfills your needs. Regards, -- Nicolas Goaziou