On Thursday, September 29, 2016 at 12:37:16 PM UTC-5, Edward K. Ream wrote:

*To do*
>
> 1. Cache graphs so that they can be retrieved without possibly lengthy 
> recalculations.
> 2. Support MathJax <https://www.mathjax.org/> in the VR pane. This is 
> needed to render Jupyter cells correctly.
>

Actually, the VR pane handles MathJax well, with some glitches. Here are 
some notes.  All apply both to Linux and Windows:

- Leo renders MathJax significantly better when using PyQt5.
- With PyQt5, you have to *resize* the VR pane in order to see the output!  
This looks like QWebView bug.  I'll attempt a workaround later today.
- The MathJax fonts are tiny.  As a workaround, I added this setting:

    @int qweb_view_font_size = 30

Rev d46162d adds a MathJax example to test.leo. Here is another example.  
Note the </script> incantations that must be present:

<!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" async
  
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML";>
</script>
</head>
<body>
When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they 
are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
</body>
</html>

EKR

-- 
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