careteditor / issues

Caret issues
https://caret.io
326 stars 12 forks source link

436 comments - $$ math reply #452

Open chipbrock opened 7 years ago

chipbrock commented 7 years ago

Issue 436 had a comment after it was closed:

hi

Version 3.3.1, right?

Thanks. I am still finding some anomalous behavior with math. See the two screen shots…

Inside of display math, “\nonumber” is not processed and the standard "align" environment is not processed. I also found that if I don’t have the $ $ snuggled up against the enclosed equation with no spaces, that it is not rendered.

I don’t have these issues in Atom or Typora…that is, MathJax has no problem with this inherently and these render properly in a browser.

Thanks for responding!

Ray

pastedgraphic-1 pastedgraphic-2

On Jul 21, 2017, at 7:18 AM, Antonio Stoilkov notifications@github.com<mailto:notifications@github.com> wrote:

Hi Ray,

Latest version of Caret now supports both types of parsing mathematics.

Closing this issue. Thanks for the idea.

astoilkov commented 7 years ago

Hi @chipbrock,

Regarding the \nonumber: We use KaTeX to display math which currently doesn't support \nonumber.

Regarding the $ parsing: We require characters at the start and end of the math expressions because otherwise the parsing algorithm could detect false positives like: This should cost between $10 and $20. Is there any particular reason you need math expressions to end or start with a space?

chipbrock commented 7 years ago

hi in-line:

On Jul 26, 2017, at 1:45 AM, Antonio Stoilkov notifications@github.com<mailto:notifications@github.com> wrote:

Hi @chipbrockhttps://github.com/chipbrock,

Regarding the \nonumber: We use KaTeXhttps://github.com/Khan/KaTeX to display math which currently doesn't support \nonumber.

That’s unfortunate. KaTeX is fast, but a subset of the more robust MathJax and hence useful for professional physicists and mathematicians. I strongly urge you to include MathJax as an alternative as some apps do… One could pay the modest lag in order to have a more complete math suite.

Regarding the $ parsing: We require characters at the start and end of the math expressions because otherwise the parsing algorithm could detect false positives like: This should cost between $10 and $20. Is there any particular reason you need math expressions to end or start with a space?

Well, most of us who grew up writing in LaTeX fence off our equation environments, like align or aligned with

$$ \begin{align}

etc \end{align} $$

It makes working in the raw “code” easier. It’s also very standard in the tools that I’m aware of and use so not being able to move among them, or even start is a killer. Also I happen to be filtering actual LaTeX to markdown for further processing for the web and none of my math works.

As for escaping $… don’t some do this with \$10 ?

thanks Ray

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/careteditor/caret/issues/452#issuecomment-317963722, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AETlzVQd_i7AG59vkBrrf7V6WczwPYi4ks5sRuBzgaJpZM4Ofyco.


Raymond Brock University Distinguished Professor Department of Physics and Astronomy 3210 BPS Building Michigan State University East Lansing, MI 48824 sent from: raymond.brock@gmail.commailto:raymond.brock@gmail.com brock@pa.msu.edumailto:brock@pa.msu.edu

MSU office: (517)353-1693/884-5579 open fax: (517)355-6661 secure fax: (517)351-0688 Vidyo personal room: http://goo.gl/AgiDJ4 CERN Office: 32 2-B03 * 76-71756

Twitter: @chipbrock Home: http://www.pa.msu.edu/~brock/ ISP220: http://www.pa.msu.edu/courses/ISP220/ ISP213H: http://www.pa.msu.edu/courses/2007spring/ISP213H/ Facebook: http://msu.facebook.com/profile.php?id=2312233

astoilkov commented 7 years ago

Can you share what software products you have used so far? We could research them so we could see their approaches.

Thanks in advance.

chipbrock commented 7 years ago

Hi Sure.

Atom, macdown, Typora, and then sometimes just sublime 2 and a browser. Typora is very interesting.

Best Ray

Chip On Jul 28, 2017, at 3:14 AM, Antonio Stoilkov notifications@github.com<mailto:notifications@github.com> wrote:

Can you share what software products you have used so far? We could research them so we could see their approaches.

Thanks in advance.

- You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/careteditor/caret/issues/452#issuecomment-318590664, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AETlzQ8rWY1zgmsO4R0rdBdXZKzUO-8Qks5sSZhUgaJpZM4Ofyco.

noclew commented 7 years ago

Hello, is it not possible to make a new line in the math block, e.g., $$ a = 3 \ b =5 $$ ? Whenever there is "\" in the math block, equations do not appear as math.

astoilkov commented 7 years ago

Hi @noclew,

You could add new lines to block level math. You just have to follow the syntax for block level math:

$$$
a = 3
b = 5
$$$

Regarding "\" - What do you mean by that? I can't replicate this.

noclew commented 7 years ago
screenshot 2017-08-07 15 46 48

On my computer, I don't think I can change the line in the math block. I tried your syntax and "//", which is the latex way, but none worked. Please check the image attached. Am I doing somtehing wrong? I am using caret 3.4.1 on Mac OS 10.12.6

astoilkov commented 7 years ago

I didn't understand you correctly the first time. Sorry.

What you are currently trying to achieve is not possible. We use KaTeX which doesn't have support for new lines. However, there are being discussed and would probably get supported in the future. You could take a look at the discussion here.

chipbrock commented 7 years ago

hi I really hope you include MathJax as at least an option. These issues will go away and the added flexibility will support many of us.

On Aug 8, 2017, at 2:42 AM, Antonio Stoilkov notifications@github.com<mailto:notifications@github.com> wrote:

I didn't understand you correctly the first time. Sorry.

What you are currently trying to achieve is not possible. We use KaTeXhttps://github.com/Khan/KaTeX which doesn't have support for new lines. However, there are being discussed and would probably get supported in the future. You could take a look at the discussion herehttps://github.com/Khan/KaTeX/issues/171.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/careteditor/caret/issues/452#issuecomment-320865231, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AETlzTGjvQYs2C1eld4hxfjJWTR5ESXuks5sWANagaJpZM4Ofyco.


Raymond Brock University Distinguished Professor Department of Physics and Astronomy 3210 BPS Building Michigan State University East Lansing, MI 48824 sent from: raymond.brock@gmail.commailto:raymond.brock@gmail.com brock@pa.msu.edumailto:brock@pa.msu.edu

MSU office: (517)353-1693/884-5579 open fax: (517)355-6661 secure fax: (517)351-0688 Vidyo personal room: http://goo.gl/AgiDJ4 CERN Office: 32 2-B03 * 76-71756

Twitter: @chipbrock Home: http://www.pa.msu.edu/~brock/ ISP220: http://www.pa.msu.edu/courses/ISP220/ ISP213H: http://www.pa.msu.edu/courses/2007spring/ISP213H/ Facebook: http://msu.facebook.com/profile.php?id=2312233

noclew commented 7 years ago

Thanks for your feedback. Looking forward to seeing the function will be included soon.

chipbrock commented 6 years ago

hi again,

The writing experience in Caret is superior to almost all others and I’m really eager to use it.

But without MathJax, I simply cannot.

Are you close to adding this? Can I beta test?

thanks Ray Brock

On Aug 8, 2017, at 7:47 AM, Raymond Brock brock@pa.msu.edu<mailto:brock@pa.msu.edu> wrote:

hi I really hope you include MathJax as at least an option. These issues will go away and the added flexibility will support many of us.

On Aug 8, 2017, at 2:42 AM, Antonio Stoilkov notifications@github.com<mailto:notifications@github.com> wrote:

I didn't understand you correctly the first time. Sorry.

What you are currently trying to achieve is not possible. We use KaTeXhttps://github.com/Khan/KaTeX which doesn't have support for new lines. However, there are being discussed and would probably get supported in the future. You could take a look at the discussion herehttps://github.com/Khan/KaTeX/issues/171.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/careteditor/caret/issues/452#issuecomment-320865231, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AETlzTGjvQYs2C1eld4hxfjJWTR5ESXuks5sWANagaJpZM4Ofyco.


Raymond Brock University Distinguished Professor Department of Physics and Astronomy 3210 BPS Building Michigan State University East Lansing, MI 48824 sent from: raymond.brock@gmail.commailto:raymond.brock@gmail.com brock@pa.msu.edumailto:brock@pa.msu.edu

MSU office: (517)353-1693/884-5579 open fax: (517)355-6661 secure fax: (517)351-0688 Vidyo personal room: http://goo.gl/AgiDJ4 CERN Office: 32 2-B03 * 76-71756

Twitter: @chipbrock Home: http://www.pa.msu.edu/~brock/ ISP220: http://www.pa.msu.edu/courses/ISP220/ ISP213H: http://www.pa.msu.edu/courses/2007spring/ISP213H/ Facebook: http://msu.facebook.com/profile.php?id=2312233


Raymond Brock * University Distinguished Professor Department of Physics and Astronomy Michigan State University Biomedical Physical Sciences 567 WIlson Road, Room 3210 East Lansing, MI 48824 sent from: brock@pa.msu.edumailto:brock@pa.msu.edu

MSU office: (517)353-1693 open fax: (517)355-6661 Vidyo personal room: http://goo.gl/AgiDJ4 CERN Office: 32 2-B03 * 76-71756

Twitter: @chipbrock Home: http://www.pa.msu.edu/~brock/ Facebook: http://msu.facebook.com/profile.php?id=2312233

astoilkov commented 6 years ago

Yes. We are working on it. Expect MathJax in one of the upcoming beta releases.

noclew commented 6 years ago

Can you estimate the date for this update? I am eager to use Caret, but this new line thing is the only reason that I cannot.

waka4g commented 6 years ago

KaTex seems to have its own multi line function. The below code works fine with Caret, at least for me.

$$$ \begin{aligned} a &= 3 \\ b &= 5 \end{aligned} $$$

astoilkov commented 6 years ago

@waka4g Yes. You are correct. It works.

@noclew Can you use the solution that @waka4g suggested?

chipbrock commented 6 years ago

Any progress on MathJax implementation? It's been a couple of months since it was promised. thanks.

astoilkov commented 6 years ago

Hi @chipbrock,

We discovered it is harder to implement MathJax than we thought. This made us think once again if we should switch to MathJax and we decided to suspend the work on integrating MathJax for now. We will gather more information from other users in order to finally decide if we should move to MathJax.

Sorry for the inconvenience.

chipbrock commented 6 years ago

That’s a shame. Non starter for me without MathJax… Kramdown is non-standard Latex and so I can’t go there.

On Mar 26, 2018, at 12:11 PM, Antonio Stoilkov notifications@github.com<mailto:notifications@github.com> wrote:

Hi @chipbrockhttps://github.com/chipbrock,

We discovered it is harder to implement MathJax than we thought. This made us think once again if we should switch to MathJax and we decided to suspend the work on integrating MathJax for now. We will gather more information from other users in order to finally decide if we should move to MathJax.

Sorry for the inconvenience.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/careteditor/caret/issues/452#issuecomment-376221953, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AETlzZBa5bR3kAQ1brRxjt93jna0a8Tcks5tiRM1gaJpZM4Ofyco.


Raymond Brock * University Distinguished Professor Department of Physics and Astronomy Michigan State University Biomedical Physical Sciences 567 WIlson Road, Room 3210 East Lansing, MI 48824 sent from: brock@pa.msu.edumailto:brock@pa.msu.edu

MSU office: (517)353-1693 open fax: (517)355-6661 Vidyo personal room: http://goo.gl/AgiDJ4 CERN Office: 32 2-B03 * 76-71756

Twitter: @chipbrock Home: http://www.pa.msu.edu/~brock/ Facebook: http://msu.facebook.com/profile.php?id=2312233