It renders LaTeX <https://www.latex-project.org/>using mathjax 
<https://www.mathjax.org/>in a QtWebKitWidgets.QWebView. 

This is *experimental code*, and *only works with Python 2*. On my Windows 
10 machine, it hangs when using Python 3. I have no idea why.

Even on a fast machine, it takes several seconds to render Maxwell's 
equations:

\begin{align}
  \nabla \times \vec{\mathbf{B}} -\, \frac1c\, 
\frac{\partial\vec{\mathbf{E}}}{\partial t} & = 
\frac{4\pi}{c}\vec{\mathbf{j}} \\
  \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
  \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, 
\frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
  \nabla \cdot \vec{\mathbf{B}} & = 0
\end{align}
yielding the attached image. I'll be testing on Ubuntu next.
Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to