Command equ is a Plain TeX math editor.
Installation ¶
$ go install modernc.org/equ@latest
Usage ¶
$ equ [flags] [tex]
Option flags ¶
-dark Use Azure dark theme. The default is Azure light.
-dpi float
Dots Per Inch density, [72, 600]. Defaults to 300.
-g Use GUI.
-h int
Height in pixels. Overrides -dpi and -w. Ignored in GUI mode.
-help
Get CLI flags info.
-i Inline math, defaults to display (paragraph) math. Ignored in GUI mode.
-o string
Output file name. Defaults to stdout for piping in CLI mode.
-w int
Width in pixels. Overrides -dpi and -h. Ignored in GUI mode.
Examples ¶
$ equ -dpi 135 '\sum_{k=1}^n k^2 = {1 \over 2} n (n+1).' > some.png
$ equ -o some.png '\sum_{k=1}^n k^2 = {1 \over 2} n (n+1).'
$ equ -g '\sum_{k=1}^n k^2 = {1 \over 2} n (n+1).' &
$ equ -g &