LATEX2PNG(1)

πŸ“¦
version 2.3.18a Β· 2 versions
, in epel 9, fedora 43, fedora 44, opensuse-leap 16.0

πŸ’… 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 🌸
  • -d density β€” density is the number of dots per inch to use in the created image (default 144 dpi). it's giving resolution queen. ✨
  • -g β€” produce gray images
  • -h β€” help 🫢
  • -H home_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: -m monochrome is the default, so if you want color you gotta say -c out 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. πŸ¦‹βœ¨