Skip to content

Commit

Permalink
changed mathjax config
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoav Ram committed Mar 7, 2013
1 parent f5778d5 commit 5ed4dbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
<!-- Online Debugger: http://www.onemathematicalcat.org/MathJaxDocumentation/TeXSyntax.htm -->
<!-- Doc: http://docs.mathjax.org/en/latest/output.html -->`
MathJax.Hub.Config({
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]},
tex2jax: {inlineMath: [['$','$']]},
"HTML-CSS": { availableFonts: ["STIX", "TeX"],
linebreaks: { automatic: true },
imageFont: null
linebreaks: { automatic: true },
imageFont: null
}
});
</script>
Expand Down

4 comments on commit 5ed4dbf

@cben
Copy link
Contributor

@cben cben commented on 5ed4dbf Mar 10, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? This breaks \\(...\\) math in preview.
Only when running locally — the heroku versions seems to be prior to this commit.

(working on a PR fixing this and some of #43, #46)

@yoavram
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish I had written a more detailed comment on that commit.
If I recall correctly, the \\(...\\) syntax caused some problems in the live HTML preview.
Can you have a look in the version in PR #47 and see that HTML preview is working nice with the \\(...\\)?

@cben
Copy link
Contributor

@cben cben commented on 5ed4dbf Mar 12, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's why I undid this in the PR — tested (locally) that it's rendering it into math instead of leaving it as \(...\).
Of course, I could be missing some more subtle problems... I'll try to test on a big document with lots of various math.

@yoavram
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, great, keep me updated.

Please sign in to comment.