From 9d741c3b5c66067220e37193d7e23de4d305b0f4 Mon Sep 17 00:00:00 2001 From: Sadeed Date: Tue, 10 Oct 2023 10:06:05 +0500 Subject: [PATCH] gladtex: add page (#10892) * gladtex: add page * gladtex: update command description Co-authored-by: Reinhart Previano Koentjoro * gladtex: update placeholder Co-authored-by: Reinhart Previano Koentjoro * gladtex: update placeholders Co-authored-by: Reinhart Previano Koentjoro * gladtex: update placeholder Co-authored-by: Reinhart Previano Koentjoro * gladtex: update placeholder Co-authored-by: Reinhart Previano Koentjoro * gladtex: update command description Co-authored-by: Reinhart Previano Koentjoro * gladtex: update command description Co-authored-by: Reinhart Previano Koentjoro * gladtex: update command description Co-authored-by: Reinhart Previano Koentjoro * gladtex: update placeholder Co-authored-by: Reinhart Previano Koentjoro * gladtex: update placeholder Co-authored-by: Reinhart Previano Koentjoro * Apply suggestions from code review Co-authored-by: Reinhart Previano Koentjoro * Update pages/common/gladtex.md --------- Co-authored-by: Reinhart Previano Koentjoro Co-authored-by: K.B.Dharun Krishna --- pages/common/gladtex.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pages/common/gladtex.md diff --git a/pages/common/gladtex.md b/pages/common/gladtex.md new file mode 100644 index 000000000..1900117bc --- /dev/null +++ b/pages/common/gladtex.md @@ -0,0 +1,33 @@ +# gladtex + +> A LaTeX formula preprocessor for HTML files. +> It converts LaTeX formulas to images. +> More information: . + +- 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}}`