-
Notifications
You must be signed in to change notification settings - Fork 48
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mmd2tex math delimiters #16
Comments
It seems that the "proper" fix is that The goal is not that HTML and LaTeX output is the same (for obvious reasons). The goal is that the meaning of the MMD input is correctly represented in each output format, regardless of the syntax to produce that output. (Math is a bit strange since it's not really HTML math, but MathJax math... This was different in MMD 2 when I used ASCIIMathML.) |
According to LaTeX/Mathematics - Wikibooks, open books for an open world, And since we're talking about mmd2tex generation, the source is in mmd. So like me, I want to write in Since my sources are from wikibooks, forums, google searches, I might not be correct. But I recall MathJax's documentation mention something related and they recommend So that's why I said in the beginning it might be better for MMD to output the brackets rather than dollar sign, regardless which one is used in the mmd source. By the way, you said
I actually mean,
The first column is the MMD source, the last column is the proposed output in LaTeX. The most serious trouble maker is |
In other words, is But I emphasized this is only something I read from the others sources, that I didn't know deeply why it is discouraged [^ at least the original creator of TeX also think it is a mistake (when designing TeX) to use dollar sign as it becomes very difficult to detect the beginning and the end of a math environment] and when it will cause error. And another support might be from pandoc, that when the dollar signs are used (the default of pandoc), it turn them into brackets in |
Hi, I mentioned this before in the mmd support forum, but it was buried in another issue I was talking about (related to LaTeX math environment
$$\begin{align)...
). In the hindsight I should have separated the 2 issues. I hope you don't mind I kind of repeat it here:Currently, in mmd2html and mmd2tex, this is how the math delimiter is translated:
$...$
\(...\)
$...$
$$...$$
\[...\]
$$...$$
\\(...\\)
\(...\)
$...$
\\[...\\]
\[...\]
\[...\]
The proposal is simple:
$...$
\(...\)
\(...\)
$$...$$
\[...\]
\[...\]
\\(...\\)
\(...\)
\(...\)
\\[...\\]
\[...\]
\[...\]
Reasons:
\(...\)
and\[...\]
delimiters are preferred in LaTeX, and$$...$$
might cause errors with some ams packages.The text was updated successfully, but these errors were encountered: