Skip to content

Instantly share code, notes, and snippets.

/matrix.html

Created Oct 3, 2017
Embed
What would you like to do?
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
You can’t perform that action at this time.