I would like to know what do I have to do if I want to convert the my Tex document into an image. I'm new to Latex World, sorry if it is a dumb question for somebody
- 1Hi and welcome to TeX.SX. To clarify, do you mean an image or do you mean compile the document to a the final output?Johannes_B– Johannes_B2014-09-15 18:08:56 +00:00Commented Sep 15, 2014 at 18:08
- if you mean "image" such that it can be embedded into another document, is the document you want to convert just one page, or multiple pages?barbara beeton– barbara beeton2014-09-15 18:10:12 +00:00Commented Sep 15, 2014 at 18:10
- I mean an image. Right know when I compile the code I get some files inluding a pdf document. My intention is to transform the text document into an image in order to copy it to Word.Jordi Bosch– Jordi Bosch2014-09-15 18:10:52 +00:00Commented Sep 15, 2014 at 18:10
- I mean just one page.Jordi Bosch– Jordi Bosch2014-09-15 18:13:08 +00:00Commented Sep 15, 2014 at 18:13
- Perhaps tex.stackexchange.com/q/11866/17423 helps?Sean Allred– Sean Allred2014-09-15 18:17:51 +00:00Commented Sep 15, 2014 at 18:17
Add a comment |
2 Answers
I don't have enough points to comment but what exactly you are talking about? You want to convert a 1 page Tex document to image? Simply you can build as pdf and then convert pdf to images with many free tools.
- Okey but I heard there is an easier method using directly the latex compiler to transform it into an imageJordi Bosch– Jordi Bosch2014-09-15 18:12:06 +00:00Commented Sep 15, 2014 at 18:12
- 1
- If it's one page
.pdfdocument, you can include it anyway as image or usingpdfpagespackage anyway. There is no need to convert to another image format againuser31729– user317292014-09-15 19:14:46 +00:00Commented Sep 15, 2014 at 19:14
You must have ImageMagick installed. The following simulates everything you need to generated images from your TeX input file.
% filename.tex % compile it with % pdflatex -shell-escape filename.tex \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{main.tex} \documentclass[12pt]{article} \usepackage{blindtext} \begin{document} \Blinddocument \end{document} \end{filecontents*} \immediate\write18{pdflatex main.tex} \makeatletter \immediate\write18{convert -density 100 main.pdf main-\@percentchar d.png } \makeatother \usepackage{animate} \begin{document} \animategraphics[autoplay,loop,scale=0.5,controls]{5}{main-}{0}{19} \end{document}