emacs-orgmode
[Top][All Lists]

## Re: [O] Feature request: Add support for org-toggle-pretty-entities prev

 From: Nicolas Goaziou Subject: Re: [O] 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 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hello,

> 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.

> 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.