How to render one TeX equation to an image using plain TeX and dvipng 

First, put this in a new TeX file. It has the equation, and does some sneaky things:

\hsize 0pt
\vsize 0pt
\overfullrule 0pt
X(\omega_k) = \sum_{n=0}^{N-1} x(t_n)e^{-j\omega_k t_n}

Then, run TeX to generate the DVI.

Run dvipng to convert the DVI file to PNG. Using the "-o" flag will set the output file to be name of your choosing.

With any luck, the resulting image should look like the one attached.

Slightly more information about this can be found on my wiki:

· · Web · 0 · 0 · 1
Sign in to participate in the conversation

Welcome to, an instance for discussions around cultural freedom, experimental, new media art, net and computational culture, and things like that.