[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: option clash for package graphicx



wolf python london <lyh19901223@gmail.com> wrote:

> when compiling it with xelatex, it shows** ! LaTeX Error: Option clash
> for package graphicx**.
> Obviously , graphicx has been loaded before \usepackage[dvips]{graphix}.

Yes, looks like.

> However , it compiles fine in Funtoo, which has texlive-2011-r1.
> I'm not sure whether this is a bug or anything else. Can any
> maintainer point something out for
> me? 

I tried with this document:

\documentclass[11pt]{article}
\usepackage{fontspec}
\usepackage{listings}
\usepackage{color}
\usepackage[BoldFont,SlantFont,CJKchecksingle]{xeCJK}

\usepackage{amsmath}

\usepackage[dvips]{graphicx}

\begin{document}
foo
\end{document}

and got no error and this log:

This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian) (format=xelatex 2011.3.27)  27 MAR 2012 12:04
entering extended mode
 %&-line parsing enabled.
**latex/test/optioncl.tex
(./latex/test/optioncl.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, croatian, bulgarian, ukrainian, russian, czech, slovak, danish, dut
ch, finnish, french, basque, ngerman, german, german-x-2009-06-19, ngerman-x-20
09-06-19, ibycus, monogreek, greek, ancientgreek, hungarian, sanskrit, italian,
 latin, mongolian2a, mongolian, bokmal, nynorsk, romanian, irish, coptic, serbi
an, turkish, welsh, esperanto, uppersorbian, estonian, indonesian, interlingua,
 icelandic, kurmanji, slovenian, polish, portuguese, spanish, galician, catalan
, swedish, ukenglish, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size11.clo
File: size11.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texmf-texlive/tex/xelatex/fontspec/fontspec.sty
Package: fontspec 2008/08/09 v1.18 Advanced font selection for XeLaTeX

(/usr/share/texmf-texlive/tex/generic/ifxetex/ifxetex.sty
Package: ifxetex 2009/01/23 v0.5 Provides ifxetex conditional
)
\c@zf@newff=\count88
\c@zf@index=\count89
\c@zf@script=\count90
\c@zf@language=\count91

(/usr/share/texmf-texlive/tex/latex/tools/calc.sty
Package: calc 2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
\calc@Acount=\count92
\calc@Bcount=\count93
\calc@Adimen=\dimen103
\calc@Bdimen=\dimen104
\calc@Askip=\skip43
\calc@Bskip=\skip44
LaTeX Info: Redefining \setlength on input line 76.
LaTeX Info: Redefining \addtolength on input line 77.
\calc@Ccount=\count94
\calc@Cskip=\skip45
)
(/usr/share/texmf-texlive/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2008/08/13 v2.6a package option processing (HA)

(/usr/share/texmf-texlive/tex/generic/xkeyval/xkeyval.tex
\XKV@toks=\toks14
\XKV@tempa@toks=\toks15
\XKV@depth=\count95
File: xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)

(/usr/share/texmf-texlive/tex/generic/xkeyval/keyval.tex)))
(/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 2008/03/08 v0.1d 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/eu1lmr.fd
File: eu1lmr.fd 2007/01/14 v1.3 Font defs for Latin Modern
))
LaTeX Info: Redefining \itshape on input line 1163.
LaTeX Info: Redefining \slshape on input line 1166.
LaTeX Info: Redefining \scshape on input line 1169.
LaTeX Info: Redefining \upshape on input line 1172.

fontspec.cfg loaded.
(/usr/share/texmf-texlive/tex/xelatex/fontspec/fontspec.cfg))
(/usr/share/texmf-texlive/tex/latex/listings/listings.sty
\lst@mode=\count96
\lst@gtempboxa=\box26
\lst@token=\toks16
\lst@length=\count97
\lst@currlwidth=\dimen105
\lst@column=\count98
\lst@pos=\count99
\lst@lostspace=\dimen106
\lst@width=\dimen107
\lst@newlines=\count100
\lst@lineno=\count101
\lst@maxwidth=\dimen108

(/usr/share/texmf-texlive/tex/latex/listings/lstmisc.sty
File: lstmisc.sty 2007/02/22 1.4 (Carsten Heinz)
\c@lstnumber=\count102
\lst@skipnumbers=\count103
\lst@framebox=\box27
)
(/usr/share/texmf-texlive/tex/latex/listings/listings.cfg
File: listings.cfg 2007/02/22 1.4 listings configuration
))
Package: listings 2007/02/22 1.4 (Carsten Heinz)

(/usr/share/texmf-texlive/tex/latex/graphics/color.sty
Package: color 2005/11/14 v1.0j Standard LaTeX Color (DPC)

(/etc/texmf/tex/latex/config/color.cfg
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
)
Package color Info: Driver file: xetex.def on input line 130.

(/usr/share/texmf-texlive/tex/xelatex/xetex-def/xetex.def
File: xetex.def 2009/11/22 v0.94 LaTeX color/graphics driver for XeTeX (RRM/JK)

))
(/usr/share/texmf-texlive/tex/xelatex/xecjk/xeCJK.sty
Package: xeCJK 2009/09/30 2.3.10
\xeCJK@cnta=\count104
\xeCJK@cntb=\count105
\xeCJK@cntc=\count106
\xeCJK@cntd=\count107
\xeCJK@cnte=\count108
\xeCJK@dima=\dimen109
LaTeX Info: Redefining \rmfamily on input line 762.
LaTeX Info: Redefining \sffamily on input line 766.
LaTeX Info: Redefining \ttfamily on input line 770.
\xeCJK@featureadded=\count109
)
(/usr/share/texmf-texlive/tex/latex/amsmath/amsmath.sty
Package: amsmath 2000/07/18 v2.13 AMS math features
\@mathmargin=\skip46

For additional information on amsmath, use the `?' option.
(/usr/share/texmf-texlive/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01

(/usr/share/texmf-texlive/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=\toks17
\ex@=\dimen110
))
(/usr/share/texmf-texlive/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d
\pmbraise@=\dimen111
)
(/usr/share/texmf-texlive/tex/latex/amsmath/amsopn.sty
Package: amsopn 1999/12/14 v2.01 operator names
)
\inf@bad=\count110
LaTeX Info: Redefining \frac on input line 211.
\uproot@=\count111
\leftroot@=\count112
LaTeX Info: Redefining \overline on input line 307.
\classnum@=\count113
\DOTSCASE@=\count114
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
\Mathstrutbox@=\box28
\strutbox@=\box29
\big@size=\dimen112
LaTeX Font Info:    Redeclaring font encoding OML on input line 567.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 568.
\macc@depth=\count115
\c@MaxMatrixCols=\count116
\dotsspace@=\muskip10
\c@parentequation=\count117
\dspbrk@lvl=\count118
\tag@help=\toks18
\row@=\count119
\column@=\count120
\maxfields@=\count121
\andhelp@=\toks19
\eqnshift@=\dimen113
\alignsep@=\dimen114
\tagshift@=\dimen115
\tagwidth@=\dimen116
\totwidth@=\dimen117
\lineht@=\dimen118
\@envbody=\toks20
\multlinegap=\skip47
\multlinetaggap=\skip48
\mathdisplay@stack=\toks21
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
)
(/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/graphics.sty
Package: graphics 2009/02/05 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 2009/08/28 v1.8 graphics configuration of TeX Live
)
Package graphics Info: Driver file: dvips.def on input line 91.

(/usr/share/texmf-texlive/tex/latex/graphics/dvips.def
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
))
\Gin@req@height=\dimen119
\Gin@req@width=\dimen120
)
No file optioncl.aux.
\openout1 = `optioncl.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 11.
LaTeX Font Info:    ... okay on input line 11.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 11.
LaTeX Font Info:    ... okay on input line 11.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 11.
LaTeX Font Info:    ... okay on input line 11.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 11.
LaTeX Font Info:    ... okay on input line 11.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 11.
LaTeX Font Info:    ... okay on input line 11.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 11.
LaTeX Font Info:    ... okay on input line 11.
LaTeX Font Info:    Checking defaults for EU1/lmr/m/n on input line 11.
LaTeX Font Info:    ... okay on input line 11.
Package fontspec Info: Adjusting the maths setup (use [no-math] to avoid this).
 on input line 11.
\symlegacymaths=\mathgroup4
LaTeX Font Info:    Overwriting symbol font `legacymaths' in version `bold'
(Font)                  OT1/cmr/m/n --> OT1/cmr/bx/n on input line 11.
LaTeX Font Info:    Redeclaring math accent \acute on input line 11.
LaTeX Font Info:    Redeclaring math accent \grave on input line 11.
LaTeX Font Info:    Redeclaring math accent \ddot on input line 11.
LaTeX Font Info:    Redeclaring math accent \tilde on input line 11.
LaTeX Font Info:    Redeclaring math accent \bar on input line 11.
LaTeX Font Info:    Redeclaring math accent \breve on input line 11.
LaTeX Font Info:    Redeclaring math accent \check on input line 11.
LaTeX Font Info:    Redeclaring math accent \hat on input line 11.
LaTeX Font Info:    Redeclaring math accent \dot on input line 11.
LaTeX Font Info:    Redeclaring math accent \mathring on input line 11.
LaTeX Font Info:    Redeclaring math symbol \Gamma on input line 11.
LaTeX Font Info:    Redeclaring math symbol \Delta on input line 11.
LaTeX Font Info:    Redeclaring math symbol \Theta on input line 11.
LaTeX Font Info:    Redeclaring math symbol \Lambda on input line 11.
LaTeX Font Info:    Redeclaring math symbol \Xi on input line 11.
LaTeX Font Info:    Redeclaring math symbol \Pi on input line 11.
LaTeX Font Info:    Redeclaring math symbol \Sigma on input line 11.
LaTeX Font Info:    Redeclaring math symbol \Upsilon on input line 11.
LaTeX Font Info:    Redeclaring math symbol \Phi on input line 11.
LaTeX Font Info:    Redeclaring math symbol \Psi on input line 11.
LaTeX Font Info:    Redeclaring math symbol \Omega on input line 11.
LaTeX Font Info:    Redeclaring math symbol \mathdollar on input line 11.
LaTeX Font Info:    Redeclaring symbol font `operators' on input line 11.
LaTeX Font Info:    Encoding `OT1' has changed to `EU1' for symbol font
(Font)              `operators' in the math version `normal' on input line 11.
LaTeX Font Info:    Overwriting symbol font `operators' in version `normal'
(Font)                  OT1/cmr/m/n --> EU1/lmr/m/n on input line 11.
LaTeX Font Info:    Encoding `OT1' has changed to `EU1' for symbol font
(Font)              `operators' in the math version `bold' on input line 11.
LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'
(Font)                  OT1/cmr/bx/n --> EU1/lmr/m/n on input line 11.
LaTeX Font Info:    Overwriting symbol font `operators' in version `normal'
(Font)                  EU1/lmr/m/n --> EU1/lmr/m/n on input line 11.
LaTeX Font Info:    Overwriting math alphabet `\mathrm' in version `normal'
(Font)                  EU1/lmr/m/n --> EU1/lmr/m/n on input line 11.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `normal'
(Font)                  OT1/cmr/m/it --> EU1/lmr/m/it on input line 11.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `normal'
(Font)                  OT1/cmr/bx/n --> EU1/lmr/bx/n on input line 11.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `normal'
(Font)                  OT1/cmss/m/n --> EU1/lmss/m/n on input line 11.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `normal'
(Font)                  OT1/cmtt/m/n --> EU1/lmtt/m/n on input line 11.
LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'
(Font)                  EU1/lmr/m/n --> EU1/lmr/bx/n on input line 11.
LaTeX Font Info:    Overwriting math alphabet `\mathrm' in version `bold'
(Font)                  EU1/lmr/m/n --> EU1/lmr/bx/n on input line 11.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `bold'
(Font)                  OT1/cmr/bx/it --> EU1/lmr/bx/it on input line 11.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `bold'
(Font)                  OT1/cmss/bx/n --> EU1/lmss/bx/n on input line 11.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `bold'
(Font)                  OT1/cmtt/m/n --> EU1/lmtt/bx/n on input line 11.
\c@lstlisting=\count122
[1

] (./optioncl.aux) ) 
Here is how much of TeX's memory you used:
 4528 strings out of 494695
 75993 string characters out of 1167698
 163712 words of memory out of 3000000
 7744 multiletter control sequences out of 15000+50000
 3956 words of font info for 17 fonts, out of 3000000 for 9000
 669 hyphenation exceptions out of 8191
 27i,5n,33p,466b,221s stack positions out of 5000i,500n,10000p,200000b,50000s

Output written on optioncl.pdf (1 page).
Regards, Frank

-- 
Frank Küster
Sprecher B90/Grüne OV Miltenberg und Umgebung
VCD Miltenberg, ADFC Aschaffenburg-Miltenberg
Debian Developer (TeXLive)

Reply to: