[XeTeX] graphics inclusion

Guy camatkara at gmail.com
Sun Dec 9 02:34:15 CET 2007


Hi and thanks again for the assistance.  I tried your suggestions,
Jonathan, re trying another pdf and specifying [xetex] as an option
for graphicx, but got the same result.  I'll check on the ubuntu
forums to see whether anyone else has had similar problems.  Here's
the .log for my test file:

This is XeTeXk, Version 3.141592-2.2-0.996 (Web2C 7.5.6)
(format=xelatex 2007.12.1)  8 DEC 2007 20:26
entering extended mode
 %&-line parsing enabled.
**testpractice.tex
(./testpractice.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo
File: size10.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
)
\c at part=\count79
\c at section=\count80
\c at subsection=\count81
\c at subsubsection=\count82
\c at paragraph=\count83
\c at subparagraph=\count84
\c at figure=\count85
\c at table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV at toks@=\toks14
)
(/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
Package: graphics 2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)

(/usr/share/texmf-texlive/tex/latex/graphics/trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
(/etc/texmf/tex/latex/config/graphics.cfg
File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
)
Package graphics Info: Driver file: xetex.def on input line 90.

(/usr/share/texmf-texlive/tex/xelatex/graphics/xetex.def
File: xetex.def 2006/08/10 v0.92 LaTeX color/graphics driver for XeTeX (RRM, mo
d. JK)
))
\Gin at req@height=\dimen103
\Gin at req@width=\dimen104
)
(/usr/share/texmf-texlive/tex/xelatex/fontspec/fontspec.sty
Package: fontspec 2006/12/24 v1.13 Advanced font selection for XeLaTeX

(/usr/share/texmf-texlive/tex/generic/ifxetex/ifxetex.sty
Package: ifxetex 2006/08/21 v0.3 Provides ifxetex conditional
)
\c at zf@newff=\count87
\c at zf@index=\count88
\c at zf@script=\count89
\c at zf@language=\count90

(/usr/share/texmf-texlive/tex/latex/tools/calc.sty
Package: calc 2005/08/06 v4.2 Infix arithmetic (KKT,FJ)
\calc at Acount=\count91
\calc at Bcount=\count92
\calc at Adimen=\dimen105
\calc at Bdimen=\dimen106
\calc at Askip=\skip43
\calc at Bskip=\skip44
LaTeX Info: Redefining \setlength on input line 75.
LaTeX Info: Redefining \addtolength on input line 76.
\calc at Ccount=\count93
\calc at Cskip=\skip45
)
(/usr/share/texmf-texlive/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2006/11/18 v2.5f package option processing (HA)

(/usr/share/texmf-texlive/tex/latex/xkeyval/xkeyval.tex
\XKV at toks=\toks15
\XKV at depth=\count94
File: xkeyval.tex 2006/11/18 v2.5f key=value parser (HA)
))
(/usr/share/texmf/tex/latex/lm/lmodern.sty
Package: lmodern 2007/01/14 v1.3 Latin Modern Fonts
LaTeX Font Info:    Overwriting symbol font `operators' in version `normal'
(Font)                  OT1/cmr/m/n --> OT1/lmr/m/n on input line 13.
LaTeX Font Info:    Overwriting symbol font `letters' in version `normal'
(Font)                  OML/cmm/m/it --> OML/lmm/m/it on input line 14.
LaTeX Font Info:    Overwriting symbol font `symbols' in version `normal'
(Font)                  OMS/cmsy/m/n --> OMS/lmsy/m/n on input line 15.
LaTeX Font Info:    Overwriting symbol font `largesymbols' in version `normal'
(Font)                  OMX/cmex/m/n --> OMX/lmex/m/n on input line 16.
LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'
(Font)                  OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 17.
LaTeX Font Info:    Overwriting symbol font `letters' in version `bold'
(Font)                  OML/cmm/b/it --> OML/lmm/b/it on input line 18.
LaTeX Font Info:    Overwriting symbol font `symbols' in version `bold'
(Font)                  OMS/cmsy/b/n --> OMS/lmsy/b/n on input line 19.
LaTeX Font Info:    Overwriting symbol font `largesymbols' in version `bold'
(Font)                  OMX/cmex/m/n --> OMX/lmex/m/n on input line 20.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `normal'
(Font)                  OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 22.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `normal'
(Font)                  OT1/cmss/m/n --> OT1/lmss/m/n on input line 23.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `normal'
(Font)                  OT1/cmr/m/it --> OT1/lmr/m/it on input line 24.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `normal'
(Font)                  OT1/cmtt/m/n --> OT1/lmtt/m/n on input line 25.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `bold'
(Font)                  OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 26.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `bold'
(Font)                  OT1/cmss/bx/n --> OT1/lmss/bx/n on input line 27.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `bold'
(Font)                  OT1/cmr/bx/it --> OT1/lmr/bx/it on input line 28.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `bold'
(Font)                  OT1/cmtt/m/n --> OT1/lmtt/m/n on input line 29.
)
(/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package

(/usr/share/texmf-texlive/tex/xelatex/euenc/eu1enc.def
File: eu1enc.def 2006/08/13 v0.1a Experimental unicode font encoding
)
LaTeX Font Info:    Try loading font information for EU1+lmr on input line 100.


(/usr/share/texmf-texlive/tex/xelatex/euenc/lm/eu1lmr.fd
File: eu1lmr.fd 2007/01/14 v1.3 Font defs for Latin Modern
))
LaTeX Info: Redefining \itshape on input line 1050.
LaTeX Info: Redefining \slshape on input line 1053.
LaTeX Info: Redefining \scshape on input line 1056.
LaTeX Info: Redefining \upshape on input line 1059.

fontspec.cfg loaded.
(/usr/share/texmf-texlive/tex/xelatex/fontspec/fontspec.cfg))
(/usr/share/texmf-texlive/tex/xelatex/xltxtra/xltxtra.sty
Package: xltxtra 2006/06/13 v0.2 Improvements for the XeTeX/LaTeX format

(/usr/share/texmf-texlive/tex/xelatex/xunicode/xunicode.sty
File: xunicode.sty 2005/02/26 v0.5 provides access to latin accents and many ot
her characters in Unicode lower plane
)
\xxt at kern@Te=\skip46
\xxt at kern@eX=\skip47
\xxt at lower@e=\skip48
\xxt at kern@La=\skip49
\xxt at kern@aT=\skip50
\xxt at kern@eL=\skip51
LaTeX Info: Redefining \TeX on input line 36.
LaTeX Info: Redefining \LaTeX on input line 42.

(/usr/share/texmf-texlive/tex/latex/etex/etex.sty
Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB)
\et at xins=\count95
)
(/usr/share/texmf-texlive/tex/latex/base/fixltx2e.sty
Package: fixltx2e 2006/03/24 v1.1n fixes to LaTeX
LaTeX Info: Redefining \em on input line 420.
)
LaTeX Info: Redefining \em on input line 101.
LaTeX Info: Redefining \emph on input line 110.
LaTeX Info: Redefining \- on input line 115.
LaTeX Info: Redefining \textsubscript on input line 125.
LaTeX Info: Redefining \textsuperscript on input line 154.
)
\c at zf@famc at Gentium=\count96
Package fontspec Info: Defining font family for "Gentium" with options [Mapping
=tex-text,Mapping=tex-text] on input line 8.
Package fontspec Info: Could not resolve font Gentium/B (it might not exist) on
 input line 8.
 (./testpractice.aux)
\openout1 = `testpractice.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 12.
LaTeX Font Info:    ... okay on input line 12.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 12.
LaTeX Font Info:    ... okay on input line 12.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 12.
LaTeX Font Info:    ... okay on input line 12.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 12.
LaTeX Font Info:    ... okay on input line 12.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 12.
LaTeX Font Info:    ... okay on input line 12.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 12.
LaTeX Font Info:    ... okay on input line 12.
LaTeX Font Info:    Checking defaults for EU1/lmr/m/n on input line 12.
LaTeX Font Info:    ... okay on input line 12.
\symlegacymaths=\mathgroup4
LaTeX Font Info:    Overwriting symbol font `legacymaths' in version `bold'
(Font)                  OT1/cmr/m/n --> OT1/cmr/bx/n on input line 12.
LaTeX Font Info:    Redeclaring math accent \acute on input line 12.
LaTeX Font Info:    Redeclaring math accent \grave on input line 12.
LaTeX Font Info:    Redeclaring math accent \ddot on input line 12.
LaTeX Font Info:    Redeclaring math accent \tilde on input line 12.
LaTeX Font Info:    Redeclaring math accent \bar on input line 12.
LaTeX Font Info:    Redeclaring math accent \breve on input line 12.
LaTeX Font Info:    Redeclaring math accent \check on input line 12.
LaTeX Font Info:    Redeclaring math accent \hat on input line 12.
LaTeX Font Info:    Redeclaring math accent \dot on input line 12.
LaTeX Font Info:    Redeclaring math accent \mathring on input line 12.
LaTeX Font Info:    Redeclaring math symbol \colon on input line 12.
LaTeX Font Info:    Redeclaring math symbol \Gamma on input line 12.
LaTeX Font Info:    Redeclaring math symbol \Delta on input line 12.
LaTeX Font Info:    Redeclaring math symbol \Theta on input line 12.
LaTeX Font Info:    Redeclaring math symbol \Lambda on input line 12.
LaTeX Font Info:    Redeclaring math symbol \Xi on input line 12.
LaTeX Font Info:    Redeclaring math symbol \Pi on input line 12.
LaTeX Font Info:    Redeclaring math symbol \Sigma on input line 12.
LaTeX Font Info:    Redeclaring math symbol \Upsilon on input line 12.
LaTeX Font Info:    Redeclaring math symbol \Phi on input line 12.
LaTeX Font Info:    Redeclaring math symbol \Psi on input line 12.
LaTeX Font Info:    Redeclaring math symbol \Omega on input line 12.
LaTeX Font Info:    Redeclaring math symbol \mathdollar on input line 12.
LaTeX Font Info:    Redeclaring symbol font `operators' on input line 12.
LaTeX Font Info:    Encoding `OT1' has changed to `EU1' for symbol font
(Font)              `operators' in the math version `normal' on input line 12.
LaTeX Font Info:    Overwriting symbol font `operators' in version `normal'
(Font)                  OT1/lmr/m/n --> EU1/Gentium(0)/m/n on input line 12.
LaTeX Font Info:    Encoding `OT1' has changed to `EU1' for symbol font
(Font)              `operators' in the math version `bold' on input line 12.
LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'
(Font)                  OT1/lmr/bx/n --> EU1/Gentium(0)/m/n on input line 12.
LaTeX Font Info:    Overwriting symbol font `operators' in version `normal'
(Font)                  EU1/Gentium(0)/m/n --> EU1/Gentium(0)/m/n on input line
 12.
LaTeX Font Info:    Overwriting math alphabet `\mathrm' in version `normal'
(Font)                  EU1/Gentium(0)/m/n --> EU1/Gentium(0)/m/n on input line
 12.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `normal'
(Font)                  OT1/lmr/m/it --> EU1/Gentium(0)/m/it on input line 12.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `normal'
(Font)                  OT1/lmr/bx/n --> EU1/Gentium(0)/bx/n on input line 12.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `normal'
(Font)                  OT1/lmss/m/n --> EU1/lmss/m/n on input line 12.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `normal'
(Font)                  OT1/lmtt/m/n --> EU1/lmtt/m/n on input line 12.
LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'
(Font)                  EU1/Gentium(0)/m/n --> EU1/Gentium(0)/bx/n on input lin
e 12.
LaTeX Font Info:    Overwriting math alphabet `\mathrm' in version `bold'
(Font)                  EU1/Gentium(0)/m/n --> EU1/Gentium(0)/bx/n on input lin
e 12.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `bold'
(Font)                  OT1/lmr/bx/it --> EU1/Gentium(0)/bx/it on input line 12
.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `bold'
(Font)                  OT1/lmss/bx/n --> EU1/lmss/bx/n on input line 12.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `bold'
(Font)                  OT1/lmtt/m/n --> EU1/lmtt/bx/n on input line 12.
File: srikanthacrop.pdf Graphic file (type QTm)

<use  "srikanthacrop.pdf" > [1

] (./testpractice.aux) )
Here is how much of TeX's memory you used:
 4794 strings out of 95792
 78036 string characters out of 1190515
 146352 words of memory out of 1500000
 7892 multiletter control sequences out of 10000+50000
 3680 words of font info for 19 fonts, out of 1200000 for 2000
 28 hyphenation exceptions out of 8191
 28i,6n,43p,340b,255s stack positions out of 5000i,500n,6000p,200000b,5000s

Output written on testpractice.pdf (1 page).

On Dec 8, 2007 4:40 PM, Jonathan Kew <jonathan_kew at sil.org> wrote:
>
> On 8 Dec 2007, at 10:59 am, Guy wrote:
>
> > Hi and thanks for the help.  I think it must be a basic configuration
> > problem.  The same minimal file will compile perfectly as a pdf with
> > pdflatex but just show an empty box where the figure should be with
> > latex in a dvi file, and just an empty space in place of the figure
> > with xelatex.  The error with xelatex is:
> >
> >> ! Unable to load picture or PDF file '``srikanthacrop.pdf'.
> >> <to be read again>
> >>                    \unhbox
> >
> > Here is the minimal file (1st 2 lines removed for latex and pdflatex):
> >
> > %&program=xelatex
> > %&encoding=UTF-8 Unicode
> > \documentclass[10pt]{article}
> > \usepackage{graphicx}
> > \usepackage{fontspec,xltxtra,xunicode}
> > \defaultfontfeatures{Mapping=tex-text}
> > \setromanfont[Mapping=tex-text]{Gentium}
> > \begin{figure}[htp]
> > \includegraphics[scale=0.8]{srikanthacrop}
> > \caption{srikanthacrop}
> > \end{figure}
> > \end{document}
> >
> > (I have both an .eps and a .pdf file of my graphic in the local
> > directory.) Do I need to specify a particular output driver for latex
> > / xetex?  I'm using the TeXLive implementation from the Ubuntu
> > repositories.  Thanks again for the assistance.
>
> That certainly looks like it should work. Could you show us the
> complete .log file output of the run?
>
> Have you tried different PDF files, especially files created by a
> different program? Maybe there's something about your file (new PDF
> version?) that prevents xetex from reading it successfully.
>
> The other possibility is that the Ubuntu package you're using has a
> configuration error and isn't loading the right driver for the
> graphicx package. You could try
>    \usepackage[xetex]{graphicx}
> and see if that helps; if so, I think it's a packaging error that
> should be reported to whoever maintains the Ubuntu packages.
>
>
> JK
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
>


More information about the XeTeX mailing list