On Wed, Nov 26, 2008 at 8:08 PM, Fredrik Johansson <[EMAIL PROTECTED]> wrote: > > On Wed, Nov 26, 2008 at 6:53 PM, Alan Bromborsky <[EMAIL PROTECTED]> wrote: >> >> As a test for math in Sphinx I added the following to a .rst file that >> worked. When I did >> make html the html file said that ..math:: was an unknown directive. What >> did I do wrong (does >> Sphinx have to be initialized in a special way to enable ..math:: ? > > Yes, you have to enable the math extension in conf.py. See for example > http://code.google.com/p/mpmath/source/browse/trunk/doc/source/conf.py > > Also if you set default_role = 'math' in conf.py, inline formulas can > be entered as `x+y` instead of :math:`x+y`.
Yep. See this patch how to enable this in sympy: http://groups.google.com/group/sympy-patches/browse_thread/thread/d9870040e0b1da04 and use it like this: $ git diff diff --git a/doc/src/index.txt b/doc/src/index.txt index 08e1342..3527965 100644 --- a/doc/src/index.txt +++ b/doc/src/index.txt @@ -29,4 +29,6 @@ Contents: If something cannot be easily accesible from this page, it's a bug (`please report it`_). +Since Pythagoras, we know that :math:`a^2 + b^2 = c^2`. + .. _please report it: http://code.google.com/p/sympy/issues/list Ondrej --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sympy?hl=en -~----------~----~----~----~------~----~------~--~---
