More about groff.

Here's a math equation:

.EQ e = mc sup 2 .EN

# prepocess math equation and convert to pdf $ eqn my.ms -Tpdf | groff -ms -Tpdf > my.pdf # or just use groffer $ groffer -e example.ms -ms

Quick conversion of an equation in eqn format to a bitmap:

$ echo "e = mc sup 2" | eqn2graph -format jpg -density 300 > my.jpg

Chemistry:

.cstart R1: ring pointing right R2: ring pointing right put C8 at 4 put H10 at 5 with .V6 at R1.V4 .cend

$ chem example.chem | groffer -p

shasum -a256=964f3266bd0c341dc3e66902eb1d14d13cf75deaa2e52c10158e5fa014939c7e