jsMath and docbuild typo?

0 views
Skip to first unread message

Pat LeSmithe

unread,
Apr 3, 2009, 4:53:22 AM4/3/09
to sage-...@googlegroups.com

I think there's a typo in SAGE_ROOT/devel/sage/doc/common/conf.py. The line

jsmath_path = '/javascript_local/jsMath/easy/load.js'

should be

jsmath_path = '/javascript_local/jsmath/easy/load.js'

After rebuilding (with the "--jsmath" option), jsMath should work in the
fast static documentation. For example, visit

http://localhost:8000/doc/static/tutorial/tour_algebra.html .

The live help is already typeset, because a worksheet also loads jsMath,
albeit in a slightly different way:

http://trac.sagemath.org/sage_trac/ticket/4714 .

I suggest adding the following to
SAGE_ROOT/devel/sage/doc/common/templates/layout.html so direct access,
via file://, access also works:

{% block extrahead %}
<script type="text/javascript"
src="../../../../../../../local/notebook/javascript/jsmath/easy/load.js"></script>
{% endblock %}


Also, "sage --advanced" doesn't list the docbuild options, including
"--jsmath".

Sorry, if I'm wrong or these are already known.

William Stein

unread,
Apr 3, 2009, 10:17:56 AM4/3/09
to sage-...@googlegroups.com
Can you create a trac ticket? Many thanks for tracking down these bugs!!

William
--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org
Reply all
Reply to author
Forward
0 new messages