LATEX2PNG(1)
π
LATEX2PNG(1) β like, the latex2png manual page, bestie
okay so bestie, gather round, because we're about to talk about latex2png β it's a User command manual, section 1, and honestly? it's giving "tiny utility, huge main character energy." let's get into it π
β¨ NAME β¨
latex2png β literally the manual page for latex2png 1.1. that's it, that's the name section. slay. π
πΈ DESCRIPTION πΈ
so what does it do? okay:
latex2png -- Convert a LaTeX file to a PNG image
and here's the usage, verbatim, no cap:
latex2png [-d density] [-h] [-k] [-c] [-g] [-m] [-H home dir]
file[.tex|.eps]
the latex2png command converts a LaTeX file into a PNG image. only the first page gets translated into an image, at whatever resolution you specified. and bestie, plot twist: latex2png can also be used to convert encapsulated postscript (EPS) files to PNG images. versatile icon. π
π¦ OPTIONS: π¦
one bullet per flag, exactly like the original, because we do not skip details in this house:
-cβ produce a color image πΈ-ddensityβ density is the number of dots per inch to use in the created image (default144dpi). it's giving resolution queen. β¨-gβ produce gray images-hβ help π«Ά-Hhome_dirβ home_dir is a directory to be included in the search path (default is the directory that contains the LaTeX file). this exists so you can create PNG images in another directory (e.g.,/tmp) and still let LaTeX find the files it needs to include. very "have your cake and eat it" of it. π-kβ keep intermediate files (for debugging) π-mβ produce a monochrome (black and white) image β and yes, this is the default π-vβ version
π EXAMPLES: π
real ones, copied exactly, comments and all:
latex2png -d 144 /tmp/file
#create /tmp/file.png at 144 dpi
latex2png file.eps
#create file.png
latex2png file.tex
#create file.png via latex
latex2png -H . /tmp/file
#search the cwd for image files
see how -H . makes it search the cwd for image files? that's the whole vibe check right there. π₯
π SEE ALSO π
okay so latex2png is a part of latex2rtf and has a special mode to assist in finding the baseline of a latex equation (iykyk). documentation for latex2rtf may be found in:
latex2rtf.info- the PDF file
latex2rtf.pdf - or the HTML file
latex2rtf.html
β¦which are all made from the TeXInfo source file latex2rtf.texi. literally the whole family tree. π³
heads up bestie:-mmonochrome is the default, so if you want color you gotta say-cout loud. no assumptions. π
and that's the page! π this was latex2png version 1.90, dated October 2012, and it's a LATEX2PNG(1) situation through and through. go convert something iconic, bestie. π¦β¨
π¦ where this page comes from
- epel 9: latex2rtf 2.3.18-5.el9 Β· GPLv2+
- fedora 43: latex2rtf 2.3.18-16.fc43 Β· GPL-2.0-or-later
- fedora 44: latex2rtf 2.3.18-17.fc44 Β· GPL-2.0-or-later
- opensuse-leap 16.0: latex2rtf 2.3.18a-bp160.1.11 Β· GPL-2.0-or-later
- opensuse-leap 16.0: latex2rtf 2.3.18a-bp160.1.11 Β· GPL-2.0-or-later
- opensuse-leap 16.0: latex2rtf 2.3.18a-bp160.1.11 Β· GPL-2.0-or-later
- opensuse-leap 16.0: latex2rtf 2.3.18a-bp160.1.11 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms