MathTran

Description

This macro allows you to use the MathTran webservice to insert images of rendered LaTeX equations into your wiki pages.

Download & Release Notes

Download

Release Version

Moin Version

Release Notes

MathTran.py

1.5

I have only used this with MoinMoin 1.5.7

Usage

You will need to add the following line inside your page's <head> tags:

<script type="text/javascript" src="http://www.mathtran.org/js/mathtran.js"></script>

This is something you will need to do in the your-theme.py file. Modify or add the html_head() function as follows:

   1 def html_head(self, d):
   2         return ThemeBase.html_head(self, d) + '\n<script type="text/javascript" src="http://www.mathtran.org/js/mathtran_img.js"></script>\n'

If you modify your your-theme.py file you should put it into the data/plugin/theme directory of your wiki so that it survives updates of MoinMoin.

Example

To display Euler's identity add

[[MathTran(e^{i\pi} = -1)]]

to your wiki page. There are more examples on Tim's MathTran page.

Timothy Head

License

This macro is released under the terms of the GNU GPL version 2.

Bugs

Discussion

MoinMoin: MacroMarket/MathTran (last edited 2008-02-10 11:10:57 by 87-194-21-153)