latex2html is used to generate png images from the math markup, and the image is then included in the page.
The first time a particular expression is rendered, you will notice a lag as latex2html is being run on the server.
Once rendered, the image is saved as an attached file for the page, so subsequent viewings will not require re-renders.
When you remove a math expression from a page, its image is deleted.
The file twiki_l2h.init that is attached to this page is used by the plugin to determine how latex2html will render the images.
Note that this plugin is called MathModePlugin, not LaTeXPlugin, because the only piece of LaTeX implemented is rendering of images of mathematics.
\int_{-\infty}^\infty e^{-\alpha x^2} dx = \sqrt{\frac{\pi}{\alpha}}
When we enclose this string with the math delimeter, we get
If the preceding statement is not replaced by an image of the expression, your installation of the plugin is broken.
The use of %$ is very similar to LaTeX's inline math mode.
The plugin also supports equations that go on their own line, using two alternate syntaxes.
Again like in LaTeX, you can enclose math with %\[ ...
\]% to get equations that will be rendered in big mode and centered in their own line.
You get the same effect with the long form %MATHMODE{ ...
}%
%<plugin>_<setting>%, i.e. %MATHMODEPLUGIN_SHORTDESCRIPTION%
data/debug.txt)
twiki directory.
Digest::MD5 module is properly installed.
latex2html must be properly installed and in the path of the process that runs the TWiki scripts.
latex2html, you will get different results using different versions of latex2html.
For example, in some versions, you get an ugly black border on the left and bottom of your images.
Some versions pad own-line equations with whitespace on the left, screwing up the centering of the image.
Your mileage may vary, try installing a newer version of latex2html if you encounter these issues.
For information about where this plugin is going, visit MathModePluginDev?
| Plugin Author: | GraemeLufkin? |
| Plugin Version: | 05 Jun 2002: Second Release |
| Change History: | 03 Apr 2002: Initial version |
| CPAN Dependencies: | Digest::MD5 |
| Other Dependencies: | A working installation of latex2html |
| Perl Version: | 5.0 |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/MathModePlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/MathModePluginDev |
Attachment: ![]() | Action: | Size: | Date: | Who: | Comment: |
|---|---|---|---|---|---|
| | action | 66 | 04 Apr 2002 - 01:28 | GraemeLufkin? |
| Topic MathModePlugin . { Edit | Attach | Ref-By | Printable | Diffs | r1.7 | > | r1.6 | > | r1.5 | More } |
| Revision r1.7 - 05 Jun 2002 - 20:36 GMT - GraemeLufkin? |
Content copyright © 1999-2007 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. |