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=33b66f5f27768b525c2ca3b88316ac2717f3e268024b0dffe8243c70d74c1936
view more