[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: |
Firmin Martin |
Subject: |
Re: Bug: LaTeX: inline maths expression in \textrm is not fully supported |
Date: |
Mon, 14 Dec 2020 07:33:16 +0100 |
> 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$}\}$@@
Thank you for the advice! This does work for LaTeX export, but if one
would also want to export in HTML, the LaTeX expression is lost. I will
stay with the "multiple \textrm" solution for now.
Best,
Firmin
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> 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