Skip to content

Instantly share code, notes, and snippets.

Created October 3, 2017 06:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5eee7b48ea86f6ef8edc24c276df9d1a to your computer and use it in GitHub Desktop.
Save anonymous/5eee7b48ea86f6ef8edc24c276df9d1a to your computer and use it in GitHub Desktop.
matrix.html
<!DOCTYPE html>
<html>
<head>
<title>MathJax TeX Test Page</title>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
</head>
<body>
<font size=20>
$$\begin{pmatrix}a & b\\\ c & d\end{pmatrix}$$
</font>
</body>
</html>
import ui
import os
file_path = os.path.abspath('matrix.html')
v = ui.WebView(frame=(0,0,400,400))
v.load_url('File://'+file_path)
v.present('sheet')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment