Skip to content

Instantly share code, notes, and snippets.

@mitya57
mitya57 / mathjax-error-test.html
Created August 30, 2012 14:09
HTML after MathJax processing
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/x-mathjax-config;executed=true">
MathJax.Hub.Register.StartupHook("HTML-CSS Jax Startup",function () {
var HTMLCSS = MathJax.OutputJax["HTML-CSS"];
HTMLCSS.Font.checkWebFont = function (check,font,callback) {
if (check.time(callback)) return;
if (check.total === 0) {
HTMLCSS.Font.testFont(font);
setTimeout(check,200);
@mitya57
mitya57 / qtwebkit-test.py
Created August 28, 2012 12:31
QtWebKit + MathJax test
#!/usr/bin/env python
import sys
from PyQt4.QtCore import QFile, QFileInfo, QTextStream, QUrl
from PyQt4.QtGui import QApplication
from PyQt4.QtWebKit import QWebView
pageSource = """<html><head>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
</head><body>