[XeTeX] Including encapsulated Postscript files using xelatex

joe tex joetex1 at gmail.com
Mon Dec 15 17:45:43 CET 2008


The following code for including .eps graphics doesn't work for me for some
reason.
-----------< cut here>------------------------------------

\documentclass{article}
\usepackage{fontspec}
\usepackage{xunicode,xltxtra}
\usepackage[dvips]{graphics}
\begin{document}
\begin{figure}[htb!]
*\includegraphics{sample.eps}*
\end{figure}
\end{document}

------------------< cut here >-------------------------

I get an output :

-----------------< cut here > ------------------------------------------
("C:\MiKTeX 2.7\tex\latex\misc\etex.sty")
("C:\MiKTeX 2.7\tex\latex\base\fixltx2e.sty"))

! LaTeX Error: Option clash for package graphics.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.7 \begin
          {document}
(incl_eps_xetex.aux) <sample.eps> [1] (incl_eps_xetex.aux) )
(see the transcript file for additional information)
** WARNING ** No image converter available for converting file "sample.eps"
to PDF format.
** WARNING ** >> Please check if you have 'D' option in config file.
** WARNING ** pdf: image inclusion failed for "sample.eps".
** WARNING ** Failed to read image file: sample.eps
** WARNING ** Interpreting special command PSfile (ps:) failed.
** WARNING ** >> at page="1" position="(133.768, 473.198)" (in PDF)
** WARNING ** >> xxx "PSfile="sample.eps" llx=201 lly=324 urx=395 ury=518
rwi=1940 "

Output written on incl_eps_xetex.pdf (1 page).
Transcript written on incl_eps_xetex.log.

------------------------< cut here
>--------------------------------------------------

I use the following command line to make the pdf
"C:\MiKTeX 2.7\miktex\bin\xelatex" -interaction=nonstopmode
incl_eps_xetex.tex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20081215/10a2dc0e/attachment.html 


More information about the XeTeX mailing list