-
Notifications
You must be signed in to change notification settings - Fork 41
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
no mathjax result in the exported files #43
Comments
Hi So, if you got Pandoc and LaTeX on your machine you can use Markx locally to produce PDFs with math. About the "there should be a warning" - Markx is not my work, it's a hobie project. Hopefully it's useful enough so that other people contribute. You are welcome to add a warning and open a pull-request. Yoav |
OK, latex-online now works. To convert Markdown with LaTeX to PDF you need to change the converter to Pandoc (by clicking the "D" button) and then convert to PDF (by clicking the Download and Convert menu and choosing PDF). @fyears, please let me know if this works for you. |
@yoavram I select "pdf" and "word", the files are what we would expect. Cool. But one more thing, bad news: I select "html", and the file can not deal with the display mode formula properly. |
@fyears which of the converters ("D" and "P") acts up? "P"? Does the formula appears correctly on the realtime preview? Can you upload the markdown to somewhere (like http://pastebin.com/)? |
Lets' make sure we are talking about the same thing at first: I have NEVER installed markx by myself. I ALWAYS use markx at https://markx.herokuapp.com/# .So you should be able to get the same result as mine easily. Maybe you were talking about the latest code in github, and I was talking about the not-updated version in the website? Again, now I am using https://markx.herokuapp.com/# . I select "P". I convert the text in the website. The texts are below. The formula appears correctly on the realtime preview. The exported The original markdown: You can use $LaTeX$. Just write it between `$`s or `\\(` and `\\)` for inline equations and `$$`s or `\\[` and `\\]` for display mode:
- Inline mode $\frac{df(x)}{dt}=lim_{x \to 0}{\frac{f(x+h)-f(x)}{h}}$
- Display mode: $$\frac{df(x)}{dt}=lim_{x \to 0}{\frac{f(x+h)-f(x)}{h}}$$ The full rendered html code in the exported <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title></title>
</head>
<body>
<p>You can use <span class="math"><em>L</em><em>a</em><em>T</em><em>e</em><em>X</em></span>. Just write it between <code>$</code>s or <code>\\(</code> and <code>\\)</code> for inline equations and <code>$$</code>s or <code>\\[</code> and <code>\\]</code> for display mode:</p>
<ul>
<li>Inline mode <span class="math">$\frac{df(x)}{dt}=lim_{x \to 0}{\frac{f(x+h)-f(x)}{h}}$</span></li>
<li>Display mode: <br /><span class="math">$\frac{df(x)}{dt}=lim_{x \to 0}{\frac{f(x+h)-f(x)}{h}}$</span><br /></li>
</ul>
</body>
</html> Hope it helps. |
Some additional tips: I did some search, and found that |
@fyears The online version is the most updated AFAIK. And I didn't think you installed markx. So we are on the same page 👍 From what you wrote I think that the problem may be solved by inserting the I'll try it and will update - it may take some time, though, because I'm a bit busy these days. Thanks a lot for helping out debugging this! |
As we all know that math formula support by mathjax is just js effect. So if someone export a pdf or docx file from the button, we cannot see any math formula result there.
I will consider it a bug. Hope some smart developer guys can fix it.
And at least there should be some warning.
PS: I found a tricky way, in case anyone need it. Click "change display", and print the page using chrome. It's a "better than never" way to export a "right" pdf file.
The text was updated successfully, but these errors were encountered: