[XeTeX] No includegraphics?

Peter Ragosch peter.ragosch at t-online.de
Sun Nov 23 16:49:17 CET 2008


Am Sonntag, 23. November 2008 16:18:59 schrieb Hans van Maanen:
> Hi all,
>
> I'm stumped. I can't get pictures in my document... This is a simple  
> test I use, straight from Will Robertson Figures and Graphics:
>
> \documentclass[article]{memoir}
> \usepackage{graphicx}
> \begin{document}
> Figures are placed as floats.
> \begin{figure}[hbtp]
>   \centering
>   \includegraphics[width=0.9\textwidth]{kamikaze2.jpg}
>   \caption{Kamikaze!}
> \end{figure}
> See the document.
> \end{document}
>
> It produces correct output, and the following console:

\documentclass[article]{memoir}
\usepackage{graphicx}
\begin{document}
Figures are placed as floats.
\begin{figure}[hbtp]
  \centering
  \includegraphics[width=0.9\textwidth]{notebook_hundeklo.jpg}
  \caption{Kamikaze!}
\end{figure}
See the document.
\end{document}

\documentclass[article]{memoir}
\usepackage{graphicx}
\usepackage{fontspec, xunicode, xltxtra}
\setmainfont[Mapping=tex-text]{Times New Roman}
\begin{document}
Figures are placed as floats.
\begin{figure}[hbtp]
  \centering
  \includegraphics[width=0.9\textwidth]{notebook_hundeklo.jpg}
  \caption{notebook-hundeklo}
  \label{fig:pdf}
\end{figure}
See the document.
\end{document}

I'm not sure I got the problem right, but the first one must be running twice 
and in the second I have to provide the right name of the font and omit 
the '_' in caption, but as you can see as attachments --- both works fine 
with me.
Done with TL2008, yesterday updated.

Hope this helps a bit.
-- 
Peter Ragosch
Schnitterweg 8
21684 Stade
-------------- next part --------------
A non-text attachment was scrubbed...
Name: picture2.pdf
Type: application/pdf
Size: 40377 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20081123/53b520a4/attachment-0002.pdf 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: picture.pdf
Type: application/pdf
Size: 24898 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20081123/53b520a4/attachment-0003.pdf 


More information about the XeTeX mailing list