From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Ilja Kocken <i.j.kocken@uu.nl>
Cc: emacs-orgmode@gnu.org
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 [thread overview]
Message-ID: <871s5wz58b.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87zhstn71i.fsf@uu.nl> (Ilja Kocken's message of "Tue, 25 Dec 2018 13:07:53 +0100")
Hello,
Ilja Kocken <i.j.kocken@uu.nl> 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
prev parent reply other threads:[~2019-01-01 16:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-25 12:07 Feature request: Add support for org-toggle-pretty-entities preview of org-entities-user which are more than one unicode character Ilja Kocken
2019-01-01 16:56 ` Nicolas Goaziou [this message]
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=871s5wz58b.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=i.j.kocken@uu.nl \
/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).