I recently updated MikTex and it seems Xelatex is not able to place figures correctly anymore. Before updating all figures were shown correctly. I work with Texworks and Miktex 2.9
Here it is the code that I run:
\documentclass[10pt,a4paper]{report}
\usepackage{graphicx}
\graphicspath{{method1/}{method2/}{dpfig/}}
\begin{document}
\begin{figure}[!htbp]
\centering
\begin{tabular}{cc}
\includegraphics[trim=6cm 2.5cm 6cm 2.5cm,clip=true,width=0.33\textwidth]{figure1.eps}&
\includegraphics[trim=6cm 2.5cm 6cm 2.5cm,clip=true,width=0.33\textwidth]{figure2.eps}\\
\end{tabular}
\caption{Two figures}
\end{figure}
\end{document}
\end{figure}
With this code, figures are correctly trimmed and the relative position between figure 1 and figure 2 is maintained. However, the position in the document is wrong: figure are placed upper and more right than expected (as the bottom-left corner of the table was placed in the middle of the page). The unusual thing is that this does not happen in draft mode and picture are shown centered as it would be.
I usually compile with Xelatex, Makeindex and Bibtex.
I hope to have been clear.. bye!
EDIT: Sorry, I forgot to add the images I prepared from the file that run that script:
\end{figure}
) in order to make your example compilable. Incidentally, what are the natural sizes of the images infigure1.eps
andfigure2.eps
? If they're the same, then your example code does not create the problem issue you're looking to fix.