On Wed, Nov 10, 2010 at 11:32, Kevin Dunn <kgd...@gmail.com> wrote:
> On Wed, Nov 10, 2010 at 10:35, jelkner <jeff.elk...@gmail.com> wrote:
>> I'm a high school teacher with a strong interest in creating a web
>> version of the textbooks at http://www.fhsst.org.  I'm also coauthor
>> of http://openbookproject.net/thinkcs/python/english2e/, which uses
>> sphinx.
>>
>> I've been reading the discussion on this list regarding mathjax and
>> sphinx, but the discussion seems to have died down since August, and I
>> notice there is no sign of sphinx.ext.mathjax on:
>>
>> http://sphinx.pocoo.org/ext/math.html#directive-math
>>
>> Is it possible that MathJax support will be included in sphinx in the
>> not too distant future?  Producing the on-line version of the math
>> text will be a large project, and I can't do it without math support.
>
> Hi Jeff,
>
> Here's a way to include MathJax with Sphinx:
>
> http://bitbucket.org/kevindunn/sphinx-extension-mathjax
>
> The code is BSD-licensed (same as Sphinx), and I, for one, would be
> happy if the Sphinx maintainers could include it with the base Sphinx
> (it would save me from having to add this extension manually to nearly
> every document I work on).
>
> Best of luck with your book project,
> Kevin

Hi everyone,

Just to continue this thread, using MathJax in Sphinx is now even easier:

1. Download the MathJax extension, mathjax.py, and add it to your
Sphinx document
    http://bitbucket.org/kevindunn/sphinx-extension-mathjax/src/tip/mathjax.py

2. At a minimum, ensure these lines appear in your Sphinx conf.py
file, after the extensions list:

    sys.path.append(os.path.abspath('.'))
    extensions = ['other.extensions.are.here.already', 'mathjax']  #
or point to the ``mathjax.py`` file
    mathjax_path = 'http://mathjax.connectmv.com/MathJax.js'

The last line is new: it points to a public installation of MathJax
that's free to use, both for production and development uses (see more
info here: http://mathjax.connectmv.com).  Previously you had to
install your own copy of MathJax - now you just need a web connection
for it to work.

Of course you can replace mathjax_path with your own local or remote
copy of the MathJax files for the times you don't have internet
access.

Regards,
Kevin


>> Thanks!
>>
>> jeff elkner
>> open book project
>> http://openbookproject.net

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to