I'm noob in TeX. Would it be possible to convert a .tex file into PNG without installing ImageMagick? Is there a standalone method that I can use?
- 1Did you mean to write, "Convert a pdf file generated by tex into PNG without installing ..." (emphasis added)?Mico– Mico2015-08-10 19:36:39 +00:00Commented Aug 10, 2015 at 19:36
- 6How can this be off topic?egreg– egreg2015-08-10 20:37:54 +00:00Commented Aug 10, 2015 at 20:37
- 1Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format.Martin Schröder– Martin Schröder2015-08-10 22:05:39 +00:00Commented Aug 10, 2015 at 22:05
- 1Could you say what you mean by 'standalone'? There is some confusion among readers about this: the question suggests you just mean 'without installing ImageMagick' but you might mean 'without installing ImageMagick, a TeX distribution or any similar software' in which case, we need to know what counts as 'similar' ;).cfr– cfr2015-08-11 02:40:18 +00:00Commented Aug 11, 2015 at 2:40
- 1@egreg no, I do not know dvipng. But I think the question was tex to png without steps between.Mensch– Mensch2015-08-11 16:04:11 +00:00Commented Aug 11, 2015 at 16:04
| Show 3 more comments
1 Answer
Yes, it's surely possible. The TeX Live distribution features the dvipng program. Here's a sample.
LaTeX file test.tex
\documentclass{article} \usepackage{kantlipsum} \pagestyle{empty} \begin{document} \kant[1] \end{document} Convert to DVI test.dvi
latex test Convert to PNG test1.png
dvipng -T tight test Output
Consult the manual for more information about command line options.
- And how will the executables
latexanddvipngbe available without installing anything?Paul Gessler– Paul Gessler2015-08-10 21:10:08 +00:00Commented Aug 10, 2015 at 21:10 - 2@PaulGessler I assume a TeX system.egreg– egreg2015-08-10 21:10:50 +00:00Commented Aug 10, 2015 at 21:10
- @egreg Why the proliferation of ImageMagick method, then? I couldn't get
convertto work. Will use this method. Thanks!Luna's Chalkboard– Luna's Chalkboard2017-05-19 04:28:29 +00:00Commented May 19, 2017 at 4:28 - 2@FruitfulApproach Unfortunately, this method has very limited usefulness when graphics, such as TikZ, is involved.egreg– egreg2017-05-19 08:09:11 +00:00Commented May 19, 2017 at 8:09
