LinuxCommandLibrary

gladtex

Convert LaTeX formulas in HTML to images

TLDR

Convert HTML with LaTeX

$ gladtex [input.htex]
copy
Specify output file
$ gladtex -o [output.html] [input.htex]
copy
Set image directory
$ gladtex -d [images/] [input.htex]
copy
Set resolution
$ gladtex -r [150] [input.htex]
copy

SYNOPSIS

gladtex [options] file

DESCRIPTION

gladtex converts LaTeX formulas embedded in HTML documents to images. It processes `.htex` files containing LaTeX math markup and produces standard HTML with rendered formula images.
The tool enables embedding mathematical notation in web pages by rendering formulas through LaTeX and converting them to images that display in any browser.

PARAMETERS

FILE

Input .htex file.
-o FILE
Output file.
-d DIR
Image directory.
-r DPI
Image resolution.
-b COLOR
Background color.
--help
Display help information.

CAVEATS

Requires LaTeX installation. Output is images, not MathML. Consider MathJax for modern sites.

HISTORY

gladtex was created to enable mathematical formulas in HTML before widespread browser support for MathML and JavaScript math rendering.

SEE ALSO

latex(1), dvipng(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community