Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.6k
Org writer: Use LaTeX style maths deliminators#7196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Like Markdown, Org supports LaTeX fragments. However, while manyMarkdown flavours like the TeX-style $ / $$, as mentioned in the Orgmanual [1], Org works better with LaTeX-style delimiters. It alsosupports LaTeX environments (\begin{*} ... \end{*}) without any form ofescaping, but that is best left to another patch.[1]:https://orgmode.org/manual/LaTeX-fragments.html
I don't understand. To me it seems that this PR removes support forTeX-style math (which *is* supported by at least the org HTML exporter),and duplicates support for LaTeX-style math. Can you explain more? |
As it is currently, pandoc will export LaTeX maths snippets in a format that Org does not recognise as maths. The cause of this is mentioned in this point of that manual page:
So, I can create a simple markdown file like
Clearly, these are parsed as maths elements:
Now, if I convert to Org
Except, these are not maths elements in Org, due to the requirements quoted above, specifically
The form that Org better supports, and that acts as pandoc expects, is LaTeX-style delimiters. |
Thank you, I understand now. That was the information I was missing.We need to fix the tests before we can merge, could you take a look? |
Glad I was able to clear that up 🙂 I've updated the test suite to match, hopefully this all looks good to you now. |
Like Markdown, Org supports LaTeX fragments. However, while many Markdown flavours like the TeX-style
$
/$$
, as mentioned in the Org manual [1], Org works better with LaTeX-style\( \)
/\[ \]
delimiters. It also supports LaTeX environments (\begin{*} ... \end{*}
) without any form of escaping, but that is best left to another patch.[1]:https://orgmode.org/manual/LaTeX-fragments.html