Version 5 (modified by 12 years ago) (diff)  ,

Render Latex formula to image
Notice: This plugin is unmaintained and available for adoption.
Description
Render a latex formula to an image using Latex, dvips, and ImageMagick.
The images are named based on a sha1 hash of the formula and parameters, so that images don't have to be regenerated every time they are viewed.
In order to create the image from the formula text, the following is performed:
 create .tex file in temporary directory
 run latex on .tex file to produce .dvi file
 run dvips on .dvi file to produce .eps file
 run convert on .eps file to produce .jpg file
Bugs/Feature Requests
Existing bugs and feature requests for LatexFormulaMacro are here.
If you have any issues, create a new ticket.
Download
Source
You can check out the source for LatexFormulaMacro from Subversion at http://trachacks.org/svn/latexformulamacro.
Example
By default, the latex code is rendered in math mode. This allows for quick math expressions. There is also a builtin macro called "mat" which is used for formatting matricies, like this:
[[formula(\mat{R'\\G'\\B'} = \mathbf{A} \mat{R\\G\\B} + \mathbf{x})]]
For more complicated usage, use the {{{ ... }}} format and the "nomode" command to disable the displaymath mode:
{{{ #!formula #nomode A more complicated equation should be typeset in {\em displayed math\/} mode, like this: \[ z \left( 1 \ +\ \sqrt{\omega_{i+1} + \zeta \frac{x+1}{\Theta +1} y + 1} \ \right) \ \ \ =\ \ \ 1 \] }}}
Author/Contributors
Author: vgough
Contributors:
Attachments (1)

matrixequation.png (727 bytes)  added by 20 months ago.
Matrix equation
Download all attachments as: .zip