LinuxCommandLibrary

eqn2graph

Equation description to graphic image converter

TLDR

Convert equation to image

$ echo "x = {-b +- sqrt{b sup 2 - 4ac}} over 2a" | eqn2graph > [equation.png]
copy
Specify output format
$ echo "[equation]" | eqn2graph -format [svg]
copy
Set font size
$ echo "[equation]" | eqn2graph -s [14]
copy

SYNOPSIS

eqn2graph [options]

DESCRIPTION

eqn2graph converts eqn equation descriptions into graphic images. It's a wrapper that processes eqn input through groff and converts the output to various image formats.
The tool reads equation text from stdin using eqn syntax and produces image files suitable for embedding in documents, web pages, or presentations.
eqn2graph is useful for generating standalone equation images without full document processing.

PARAMETERS

-format FORMAT

Output format: png, svg, pdf, etc.
-s SIZE
Font point size.
-unsafe
Allow unsafe operations.
-v
Verbose mode.

CAVEATS

Requires groff and image conversion tools. Output quality depends on settings. Complex equations may need adjustment. Limited to eqn syntax.

HISTORY

eqn2graph is part of the groff suite, providing a convenient way to generate equation images from eqn's preprocessor language.

SEE ALSO

eqn(1), groff(1), pic2graph(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community