[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (Feature Request) customise LaTeX-preview regex
From: |
Nicolas Goaziou |
Subject: |
Re: (Feature Request) customise LaTeX-preview regex |
Date: |
Sun, 14 Jun 2020 19:30:28 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hello,
TEC <tecosaur@gmail.com> writes:
> Just a quick note: I'm yet to resolve this, so any further
> comments/help on this would be much appreciated :)
You're only able to preview LaTeX code supported by Org, so something
like `org-latex-regexp' is not really meant to be extended.
Org has limited support for LaTeX macros, i.e., this is not AucTeX. In
particular, it supports macros with at most one argument. With a proper
"latex_header" keyword, it should be possible to preview \ce{...}, but
not \SI{ … }{ … }. Likewise, the former will be correctly exported, but
not the latter.
Regards,
--
Nicolas Goaziou