runemadsen / Magic-Book-Project

DEPRECATED: We are reviving the Magic Book project as a node package: https://github.com/magicbookproject/magicbook
http://itp.nyu.edu
621 stars 59 forks source link

Finalizing MathML #115

Closed shiffman closed 12 years ago

shiffman commented 12 years ago

These three commits acd34b57d7 7402db30c1 51a379afd2 include the latest MathML work. It's working great, but there are 3 todos:

1) Can the PDF rendering look nicer? (i.e. can MathJax styling be applied?)

2) Some of the characters in HTML are light grey?

3) Run MathJax locally instead of hitting server

This is picking up off of Issue #20 which I'll close.

shiffman commented 12 years ago

Looking at this some more, it appears that MathJax autogenerates a lot of CSS that gets added to the header. Maybe we could just include this manually?

shiffman commented 12 years ago

Ok, so MathML is working great. But it seems to be using Proxima Nova in the PDF which causes some weirdness.

Example in PDF: mathml

vs. how it looks in HTML:

mathml

Also, vector notation causes a very high line height which is not so desirable:

mathml

Perhaps this is just a matter of fonts / styling?

shiffman commented 12 years ago

Closing this issue, it's more of a CSS "Nature of Code" problem at this point until prince supports for javascript stuff.