LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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.

INSTALL

sudo apt install groff
copy
sudo dnf install groff
copy
sudo pacman -S groff
copy
sudo apk add groff
copy
sudo zypper install groff
copy
brew install groff
copy
nix profile install nixpkgs#groff
copy

CAVEATS

Requires groff and an image conversion tool (typically GraphicsMagick or ImageMagick). The default output format is PNG. Uses eqn syntax, not LaTeX math notation.

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid