[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Inequalities in math blocks
From: |
Max Nikulin |
Subject: |
Re: Inequalities in math blocks |
Date: |
Sun, 3 Oct 2021 19:19:41 +0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 03/10/2021 18:04, Rudolf Adamkovič wrote:
The following Org markup does not render properly in HTML export:
- foo $a<b$ bar foo $b>a$ bar
In Emacs, I see no signs of problems, such as broken math highlighting.
Further, when I export to LaTeX, the inequalities render properly. Does
one have to use \lt and \gt instead of < and
all the time? If so, why allow < and > characters in math
blocks? I ask because, when I reorganize my Org document, it breaks math
"at random" when I use < and > and Emacs does not tell me about it.
I had another reason to look into the manual today, so I noticed:
https://orgmode.org/manual/Math-formatting-in-HTML-export.html
(131)
Please note that exported formulas are part of an HTML document, and
that signs such as ‘<’, ‘>’, or ‘&’ have special meanings. See MathJax
TeX and LaTeX support.
The link is broken however.
http://docs.mathjax.org/en/latest/input/tex/html.html#html-special-characters
Usually, it is sufficient simply to put spaces around these symbols to
cause the browser to avoid them, so
... when $x < y$ we have ...
Though I am a bit surprised that Org did not replace characters to <
and > during export. Perhaps, it is possible to define a filter.
Re: Inequalities in math blocks, Rudolf Adamkovič, 2021/10/03
[PATCH] org-manual.org: Update links to MathJax docs, Max Nikulin, 2021/10/03