LinuxCommandLibrary

gladtex

A LaTeX formula preprocessor for HTML files.

TLDR

Convert to html

$ gladtex [path/to/input.htex]
copy


Save the converted file to a specific location
$ gladtex [path/to/input.htex] -o [path/to/output.html]
copy


Save the generated images to a specific [d]irectory
$ gladtex [path/to/input.htex] -d [path/to/image_output_directory]
copy


Set image [r]esolution (in dpi, default is 100)
$ gladtex [path/to/input.htex] -r [resolution]
copy


[k]eep LaTeX files after conversion
$ gladtex [path/to/input.htex] -k
copy


Set [b]ackground and [f]oreground color of the images
$ gladtex [path/to/input.htex] -b [background_color] -f [foreground_color]
copy


Convert Markdown to HTML using pandoc and gladtex
$ pandoc -s -t html --gladtex [path/to/input.md] | gladtex -o [path/to/output.html]
copy

Copied to clipboard