snippetbashTip
gladtex — A LaTeX formula preprocessor for HTML files. It converts LaTeX formulas to images. More information:
Viewed 0 times
htmlcommandformulaclilatexgladtexforpreprocessor
Problem
How to use the
gladtex command: A LaTeX formula preprocessor for HTML files. It converts LaTeX formulas to images. More information: <https://manned.org/gladtex>.Solution
gladtex — A LaTeX formula preprocessor for HTML files. It converts LaTeX formulas to images. More information: <https://manned.org/gladtex>.Convert to HTML:
gladtex {{path/to/input.htex}}Save the converted file to a specific [o]utput file:
gladtex {{path/to/input.htex}} -o {{path/to/output.html}}Save the generated images to a specific [d]irectory:
gladtex {{path/to/input.htex}} -d {{path/to/image_output_directory}}Set image [r]esolution (in dpi, default is 100):
gladtex {{path/to/input.htex}} -r {{resolution}}[k]eep LaTeX files after conversion:
gladtex {{path/to/input.htex}} -kSet [b]ackground and [f]oreground color of the images:
gladtex {{path/to/input.htex}} -b {{background_color}} -f {{foreground_color}}Convert Markdown to HTML using
pandoc and gladtex:pandoc {{[-s|--standalone]}} {{[-t|--to]}} html --gladtex {{path/to/input.md}} | gladtex -o {{path/to/output.html}}Code Snippets
Convert to HTML
gladtex {{path/to/input.htex}}Save the converted file to a specific [o]utput file
gladtex {{path/to/input.htex}} -o {{path/to/output.html}}Save the generated images to a specific [d]irectory
gladtex {{path/to/input.htex}} -d {{path/to/image_output_directory}}Set image [r]esolution (in dpi, default is 100)
gladtex {{path/to/input.htex}} -r {{resolution}}[k]eep LaTeX files after conversion
gladtex {{path/to/input.htex}} -kContext
tldr-pages: common/gladtex
Revisions (0)
No revisions yet.