Created
March 20, 2011 20:40
-
-
Save lynaghk/878657 to your computer and use it in GitHub Desktop.
Pubtex JSONP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<meta charset='utf-8'> | |
</head> | |
<body> | |
<h1>Original Page content</h1> | |
<p>blah blah blah</p> | |
<div id='my_pubtex'></div> | |
</body> | |
<script src='//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js'></script> | |
<script src='http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'> | |
MathJax.Hub.Config({ | |
extensions: ['tex2jax.js', 'TeX/AMSmath.js','TeX/AMSsymbols.js'], | |
jax: ['input/TeX','output/HTML-CSS'], | |
showProcessingMessages: false, | |
messageStyle: 'none', | |
tex2jax: { | |
inlineMath: [ | |
['$','$'] | |
], | |
} | |
}); | |
</script> | |
<script type='text/javascript'> | |
function pubtex(h){ | |
$('#my_pubtex').append(h.article); | |
} | |
$('head').append("<script src='http://examples.pubtex.com/article.js'>"); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment