Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

After using \usepackage{graphicx} and \usepackage{epstopdf} because \includegraphics[width=6]{myGraph.eps} doesn't seem to work on its own without the graph being a pdf. (If anyone can tell me why this doesn't work then I would be grateful.) My graph having been converted to a PDF file and imported using the same method seems to now contain inverted ? and I really cannot work out why.

Also if anyone else can help with the above, I also cannot work out why putting a caption under the graph has shifted it two paragraphs downward rather than the place it should be within the document.

Any help with the above would be appreciated.

share|improve this question
1  
On the placement of floating objects see: Keeping tables/figures close to where they are mentioned. On why eps files don't work: Why can't pdflatex process EPS figures. – Alan Munn Mar 11 '12 at 20:17
Also, if there's a way to generate your EPS files as PDF directly, then that's probably the best route. See Which figure type to use: pdf or eps. – Alan Munn Mar 11 '12 at 20:25
I've looked at your sources yet nothing seems to work, I've even tried a side caption instead. The major issue is the inverted question mark by the graph. I don't know why these are being placed when i include the graph regardless of what format it is in. – Ben Euden Mar 11 '12 at 20:50
1  
I understand your main problem; the other links were mainly aimed at answering your other questions. The inverted question marks are usually a sign of an incorrect font encoding. Can you create a tiny document that reproduces the problem, with a link to the EPS file? (Or a dummy EPS file that shows the same effect). Without some code to see what you're doing, it's hard to tell, otherwise. – Alan Munn Mar 11 '12 at 21:06
If you are on a Linux/Unix-like machine, you can try a command line conversion of your EPS file with epstopdf my.eps and take a look at the generated PDF in Adobe Reader. If it looks okay, try including the PDF into the LaTeX document to see whether this breaks the question marks. – ilpssun Mar 14 '12 at 15:00
show 2 more comments

closed as too localized by Marco Daniel, Joseph Wright Apr 15 '12 at 8:43

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

two things: 1) your width=6 probably needs units, (e.g. width=6in). 2) if you're using pdflatex, you most likely need to use the --shell-escape option, which uses an external application (gv, I think?) to convert the eps to pdf before adding it to the document. So, the shell command to generate a pdf would be,

pdflatex --shell-escape document.tex

also, does the log file give you any hints as to why the eps files aren't working, or why the figures are being moved (perhaps 6in is too large to keep the figure on the same page)?

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.