1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/gladtex.md
Sadeed 9d741c3b5c
gladtex: add page (#10892)
* gladtex: add page

* gladtex: update command description

Co-authored-by: Reinhart Previano Koentjoro <reinhart_previano@yahoo.com>

* gladtex: update placeholder

Co-authored-by: Reinhart Previano Koentjoro <reinhart_previano@yahoo.com>

* gladtex: update placeholders

Co-authored-by: Reinhart Previano Koentjoro <reinhart_previano@yahoo.com>

* gladtex: update placeholder

Co-authored-by: Reinhart Previano Koentjoro <reinhart_previano@yahoo.com>

* gladtex: update placeholder

Co-authored-by: Reinhart Previano Koentjoro <reinhart_previano@yahoo.com>

* gladtex: update command description

Co-authored-by: Reinhart Previano Koentjoro <reinhart_previano@yahoo.com>

* gladtex: update command description

Co-authored-by: Reinhart Previano Koentjoro <reinhart_previano@yahoo.com>

* gladtex: update command description

Co-authored-by: Reinhart Previano Koentjoro <reinhart_previano@yahoo.com>

* gladtex: update placeholder

Co-authored-by: Reinhart Previano Koentjoro <reinhart_previano@yahoo.com>

* gladtex: update placeholder

Co-authored-by: Reinhart Previano Koentjoro <reinhart_previano@yahoo.com>

* Apply suggestions from code review

Co-authored-by: Reinhart Previano Koentjoro <reinhart_previano@yahoo.com>

* Update pages/common/gladtex.md

---------

Co-authored-by: Reinhart Previano Koentjoro <reinhart_previano@yahoo.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-10-10 12:06:05 +07:00

931 B

gladtex

A LaTeX formula preprocessor for HTML files. It converts LaTeX formulas to images. More information: https://humenda.github.io/GladTeX/manpage.html/.

  • Convert to html:

gladtex {{path/to/input.htex}}

  • Save the converted file to a specific location:

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}} -k

  • Set [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 -t html --gladtex {{path/to/input.md}} | gladtex -o {{path/to/output.html}}