Open RoyiAvital opened 8 years ago
Related to PR #73. I'm pasting here parts of my answer:
Abricotine used to distinguish inline and display math but as I can remember this was very tricky (display math was not rendering correctly in inline preview) and quite useless since there is no standard for writing math in markdown, so I finally decided to remove this feature (see commit 5dda88e7e6019961accf3df11c251878e3cba989).
I don't really like the single $
syntax because I think it can be very confusing in some situations (such as $10
), so I used $$
and $$$
delimiters (but once again there is no standard). Actually with #15 user would be able to customize delimiters so this question is not really important.
I'm not sure to understand why display math is so important, but if everybody think it is then we can plan to support it again in Abricotine.
I think it is important.
I also think both modes of MathJax are crucial, since the "Display Math" supports align
, split
and equation
environments.
If the user would be able to set delimiters, it would be great. Most people are used to $ $ and $$ $$ since this is the standard in LaTeX.
MarkDown is mostly used by Developers and Students. Those people usually use heavy Math tools, so it's only logical to have good Math Support. For me MarkDown is perfect for Home Work for university and Documentation of Code. Being able to document Math can do the difference.
Thank You.
Hi,
Any update on this issue?
That's the only thing stopping me fro using this software.
Thank You.
Any updates on that?
By the way, does the project uses the latest version of Electron?
[...] does the project uses the latest version of Electron?
Not in 0.3.3. But next release will at least be upgraded to electron 1.3.2 (see #85), which was the latest version until recently...
@cicithesquirrel , This is great. I just want a portable version of this with support for inline math.
Thank You.
Using $$
for only seems to support one inline math fragment per sentence. For example, in the sentence
Minimize over $$\theta_0$$ and $$\theta_1$$.
only the first math expression (\theta_0) will be rendered as math. No matter what delimiter ends up being the default, it would be great if multiple math expression within the same sentence were supported.
@joelostblom This is another issue and it has already been solved on develop branch: #47
@RoyiAvital I understood this is a very important feature for you, but as you see we got plenty of feature requests here. Spamming this thread is not really useful in my opinion. I don't have time to do this right now anyway.
@brrd Great! Sorry for not finding that earlier.
@brrd there is a standard: dollars: $inline$ and $$display$$
I never see: "$$ and $$$ delimiters", is important to support $ and $$.
This won't work: $$\begin{aligned} X &= Y YY &= XX \end{aligned}$$
@JohnRobson Where have you seen that this is a standard?
@brrd TeX, which is the syntax being used to type math, and thus the standard which one would expect Abricotine to follow.
From https://github.com/cben/mathdown/wiki/math-in-markdown:
$$ is deprecated TeX syntax
Anyway, TeX is not markdown. There is not a single syntax for math in markdown, it always depends on implementations. This is why we should support custom delimiters in my opinion: #15.
@brrd , Letting the user configure it would be perfect (Though I still think it is better to stick with MathJaX).
But what's really important is to have Inline and Display mode (Special delimiter for each).
@brrd please, check this: https://en.wikibooks.org/wiki/LaTeX/Mathematics#Mathematics_environments
$inline$
and $$display$$
are very used!!! but I changed for \(inline\)
and \[display\]
.
Works on other markdown editors (Atom & https://stackedit.io/editor), please, could you follow this https://en.wikibooks.org/wiki/LaTeX this is an excellent "defacto standard for math equations".
Well, once again: LaTeX is not markdown.
Anyway I think this conversation is a total waste of time since #15 will allow the user to decide which delimiters to use. So I'm closing this issue.
And please consider that asking for a feature again and again does not help to implement it. I have no time to do it now. But of course you can contribute if you want.
@brrd , Does the application support Display Math? It used to have Inline Math only?
I don't think people think if they post more you do it. I think they assume the priority, given time, what features to add are influenced by the crowd of users.
Thank You.
Does the application support Display Math? It used to have Inline Math only?
You're right. I closed this one too quickly.
I think they assume the priority, given time, what features to add are influenced by the crowd of users.
The real priority is fixing major bugs such as #174. A lot of users are concerned and fortunately all of them are not posting comments such as "I think this is important to fix this". I'm sorry but answering such comments is really a waste of time.
influenced by the crowd of users
This is why github added the ability to "Add your reaction" to threads. By reacting with a :+1:, you can show your adhesion to a topic and have an influence on the next addition without sending a notification to anyone.
I didn't mean to be aggressive in my last comment, excuse me if I was. But on the other hand you have to know that I'm receiving a lot of "Any updates on this?" comments which are both annoying and useless. If any contributor is working on a feature then we will let you know.
I'm not a developer. But could be a simple solution for that.
If I understand correctly, MathJax can scan the HTML by itself (https://docs.mathjax.org/en/v1.0/configuration.html#common-configurations).
So if there will be a mode which leaves $ ... $
and $$ .. $$
unchanged and turn on this configuration the user will be able to have both Inline and Display Mode math.
I'm not sure about it, just a thought.
Moreover, something is strange with Abricotine math rendering. Though it is Display Mode the size is small and the math isn't centered. I also think you should update the script source as MathJax do not host it any more (They just redirect it - https://www.mathjax.org/cdn-shutting-down/).
Thank You.
So if there will be a mode which leaves $ ... $ and $$ .. $$ unchanged and turn on this configuration the user will be able to have both Inline and Display Mode math.
@RoyiAvital Already did this in 1b983a8b99548bcfe206d906f0d3be0c4ff981f2 but it need further investigation, this question is actually much more complicated than what you suggest.
Though it is Display Mode the size is small and the math isn't centered.
Once again, what is currently supported is displaying math, no matter how it is included.
I also think you should update the script source as MathJax do not host it any more (They just redirect it - https://www.mathjax.org/cdn-shutting-down/).
Can you create a dedicated issue please? Thank you.
@brrd , I'm pointing on 2 issues:
$...$
) is centered in the page and has large fonts. Maybe related to the guy said that $...$
should translate into span<>
elements while $$...$$
should be translated into div<>
element.The end target deals with both I guess. When Abricotine will have proper Math it will be a killer for students. By the way, StackEdit v4 had a great MathJax implementation, maybe you could just replicate it?
Still an issue...
It seems currently Abricotine doesn't support In Line Math.
MathJax supports 2 different modes of Math - Inline (Using (...) or $...$ Delimiters) and Displayed (Using [...] and $$...$$ Delimiters.
It seems that Abricotine only renders Math when it is between $$ $$ and it doesn't make the differentiation between In Line and Displayed Math (Font Size, Centering, etc..).
Could that be fixed?
Thank You.