[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug: LaTeX: inline maths expression in \textrm is not fully supporte
From: |
Eric S Fraga |
Subject: |
Re: Bug: LaTeX: inline maths expression in \textrm is not fully supported |
Date: |
Sun, 13 Dec 2020 10:24:59 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
On Sunday, 13 Dec 2020 at 02:30, Firmin Martin wrote:
> Sometimes, we want to nest inline maths expression in \textrm to
> handle spaces easily and avoid repetition.
>
> Examples:
>
> 1. $A = \{n : \textrm{$n$ odd in $X$}\}$
I think you may be expecting too much of org's simple inline LaTeX
parser. As soon as you have complex LaTeX, it's best to be explicit
about it being LaTeX, e.g.:
1. @@latex:$A = \{n : \textrm{$n$ odd in $X$}\}$@@
HTH,
eric
--
: Eric S Fraga via Emacs 28.0.50, Org release_9.4-160-g7c8dce