Skip to content
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

Mathematics - display should be allowed within paragraphs #3

Closed
ErnWong opened this issue Aug 25, 2014 · 4 comments
Closed

Mathematics - display should be allowed within paragraphs #3

ErnWong opened this issue Aug 25, 2014 · 4 comments

Comments

@ErnWong
Copy link

ErnWong commented Aug 25, 2014

Yup. That sounds contradictory, but due to the fact that it is accepted to treat mathematics as part of sentences, it totally makes sense for mathematical equations, even display/block mathematics, to be inside a paragraph.

Have a look at the image in this page to get the idea:
http://superuser.com/questions/601042/how-to-insert-display-equations-in-a-word-document-without-breaking-a-paragraph

Here's a small discussion about it in MathJax google groups:
https://groups.google.com/forum/#!topic/mathjax-users/hnNmdpAm_4Q

From what I saw in kramed.js, it looks like you can only use double dollar signs $$ for maths delimiters: both display and inline, determined by whether it is separated from the paragraph or not. This could possibly be solved with/along with GitbookIO/plugin-mathjax#5.

Thanks!

@jamesplease
Copy link

👍

I can help make a PR for this if it's something y'all are interested in, GistbookIO team.

@dunhamsteve
Copy link

In my experience (MS in Math, interest in typography), almost all display math occurs within a paragraph. For a concrete example from a physics book, see The Feynman Lectures. (I link to a specific example of five displays in one paragraph, but you can look at any display equation in that document.)

Within the gitbook editor, kramed seems to do what I want (accepting both inline equations and display equations in a paragraph), if I tweak the inline math regular expression to expect a single $ (matching pandoc's markdown).

@AaronO
Copy link
Contributor

AaronO commented Jan 29, 2015

@ErnWong kramed already accepts both inline and block math. I'm not sure what exactly isn't working as expected for you. Could you elaborate ?

@AaronO AaronO closed this as completed Apr 29, 2015
@AaronO
Copy link
Contributor

AaronO commented Apr 29, 2015

@ErnWong Closing this, to keep things clean. We switched to $$ to disambiguate with single dollar signs $, so inline math should work with $$.

Let me know if this is not the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants