[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Inline LaTeX formulae
From: |
Titus von der Malsburg |
Subject: |
Re: [O] Inline LaTeX formulae |
Date: |
Tue, 05 May 2015 14:32:50 -0700 |
Rasums wrote:
> Titus von der Malsburg <malsburg <at> posteo.de> writes:
>
> > Hi all,
> >
> > I just updated to the development version of org and encountered a
> > problem with inline LaTeX formulae. I have the following test document:
> >
> > #+OPTIONS: toc:nil tex:t
> > Test: ($p\ll.001$)
>
> Try:
> Test: (\(p\ll.001\))
>
> ($x$) doesn't work. You could use $(x)$. Strangely
> org-highlight-latex-and-related still highlights it.
>
> –Rasmus
Thanks, Rasmus (and Marcin), replacing the $ by \( and \) works. I
didn’t know about the parentheses notation. To my experience most
people use the $ notation for inline math, and therefore it would make
sense to properly support that notation, too. Especially since it used
to work in earlier versions of org (if I’m not mistaken) and there is
nothing in the manual suggesting that it shouldn’t work. The contrary
is the case. Quote from the manual:
To avoid conflicts with currency specifications, single ‘$’ characters
are only recognized as math delimiters if the enclosed text contains
at most two line breaks, is directly attached to the ‘$’ characters
with no whitespace in between, and if the closing ‘$’ is followed by
whitespace, punctuation or a dash.
Parentheses are punctuation, so the $ in my example should be
interpreted as math delimiters. I think whoever wrote the code, simply
overlooked parentheses when implementing the punctuation part. This
should be fixed.
Titus
signature.asc
Description: PGP signature
- [O] Inline LaTeX formulae, Titus von der Malsburg, 2015/05/05
- Re: [O] Inline LaTeX formulae, Rasmus, 2015/05/05
- Re: [O] Inline LaTeX formulae, Marcin Borkowski, 2015/05/05
- Re: [O] Inline LaTeX formulae,
Titus von der Malsburg <=
- Re: [O] Inline LaTeX formulae, Marcin Borkowski, 2015/05/05
- Re: [O] Inline LaTeX formulae, Rasmus, 2015/05/06
- Re: [O] Inline LaTeX formulae, Titus von der Malsburg, 2015/05/06
- Re: [O] Inline LaTeX formulae, Eric S Fraga, 2015/05/07
- Re: [O] Inline LaTeX formulae, Titus von der Malsburg, 2015/05/07
- Re: [O] Inline LaTeX formulae, Nicolas Goaziou, 2015/05/07
- Re: [O] Inline LaTeX formulae, Titus von der Malsburg, 2015/05/08
- Re: [O] Inline LaTeX formulae, Nicolas Goaziou, 2015/05/08
- Re: [O] Inline LaTeX formulae, Titus von der Malsburg, 2015/05/08
- Re: [O] Inline LaTeX formulae, Nicolas Goaziou, 2015/05/09