General ⇒ Inserting PNG graphics
- tripwire45
- Posts: 129
- Joined: Thu Apr 10, 2008 4:35 am
Inserting PNG graphics
As usual, my Googling hasn't always been successful (not that I'll stop looking for the answer) and I can't figure out how to get the document to compile. I've been reading the following tutorial without success:
http://en.wikibooks.org/wiki/LaTeX/Importing_Graphics
It seems to indicate that this should be a relatively simple task, but I'm not getting it. I'm creating the document in Kile, if that makes a difference. According to the tutorial, the PNG format is supported if the document is compiled using PDFLaTeX. In Kile, I have done this by selecting Build -> Compile -> PDFLaTeX. The result is a bunch of errors stating that the names of the graphics are not found.
The names are the same as the PS formatted graphics. I moved the .tex file to a folder containing the PNG files to test the process, so the "path" should be correct. I have \usepackage{color,graphicx} in the preamble. What am I missing.
Thanks.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Inserting PNG graphics
could you please post your .log file? It could be easier to find the problem by reading that.
Stefan
- tripwire45
- Posts: 129
- Joined: Thu Apr 10, 2008 4:35 am
Re: Inserting PNG graphics
The first is that I didn't realize that I would need to include the PNG extension and the second was that I didn't realize it was case-sensitive. The graphics were saved as "PNG" while I was using "png" in the actual document.
Ok, now I can generate a PDF with the PNG graphics imported. Is there a way to get this doc from PDF to other formats such as HTML? Seems I read something about that, but I got hung up on this last issue that I didn't focus on those details.
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Inserting PNG graphics
from tex to html might be easier than from tex over pdf to html.
Here you can find a list to tools for conversion of tex to html. I did not need it until now, so I cannot recommend one of them.
Stefan