MorganBauer / tufte-latex

Automatically exported from code.google.com/p/tufte-latex
0 stars 0 forks source link

Option clash when using mathspec #71

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
(Please attach an example .tex file demonstrating the problem or bug.)

A minimal example is attached.

Please describe the feature, problem, or bug:

Attempting to compile using the tufte-book class with mathspec leads to an 
option clash (see below for console output).

What is the expected output? What do you see instead?

This is XeTeX, Version 3.1415926-2.3-0.9997.5 (TeX Live 2011)
 restricted \write18 enabled.
entering extended mode
(./fred.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,
 icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,
 lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, serbianc, slovak, sloven
ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded
.
(/Users/hufnagel/Library/texmf/tex/latex/tufte/tufte-book.cls
Document Class: tufte-book 2010/03/28 v3.5.1 Tufte-book class
(/Users/hufnagel/Library/texmf/tex/latex/tufte/tufte-common.def
(/usr/local/texlive/2011/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2011/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2011/texmf-dist/tex/generic/xkeyval/keyval.tex)))
(/usr/local/texlive/2011/texmf-dist/tex/latex/xifthen/xifthen.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/etex-pkg/etex.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/tools/calc.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/ifmtarg/ifmtarg.sty))
(/usr/local/texlive/2011/texmf-dist/tex/latex/hardwrap/hardwrap.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/ifplatform/ifplatform.sty
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifpdf.sty))
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/catchfile.sty
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/etexcmds.sty))

Package ifplatform Warning: 
    shell escape is disabled, so I can only detect \ifwindows.

) (/usr/local/texlive/2011/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/book.cls
Document Class: book 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/bk10.clo))
(/usr/local/texlive/2011/texmf-dist/tex/latex/xltxtra/xltxtra.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/expl3.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3names.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3basics.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3expan.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3tl.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3int.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3quark.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3seq.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3toks.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3prg.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3clist.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3token.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3prop.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3msg.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3io.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3skip.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3box.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3keyval.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3keys.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3precom.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3xref.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3file.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3fp.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/expl3/l3luatex.sty))
(/usr/local/texlive/2011/texmf-dist/tex/latex/xpackages/xbase/xparse.sty)
(/usr/local/texlive/2011/texmf-dist/tex/generic/kastrup/binhex.tex)
(/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec-patches.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/fixltx2e.sty))
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/euenc/eu1enc.def)
(/usr/local/texlive/2011/texmf-dist/tex/latex/euenc/eu1lmr.fd))
(/usr/local/texlive/2011/texmf-dist/tex/xelatex/xunicode/xunicode.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.cfg))
(/usr/local/texlive/2011/texmf-dist/tex/latex/realscripts/realscripts.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/metalogo/metalogo.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/local/texlive/2011/texmf-dist/tex/xelatex/xetex-def/xetex.def)))))
(/usr/local/texlive/2011/texmf-dist/tex/latex/titlesec/titlesec.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/titlesec/titletoc.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2011/texmf-dist/tex/xelatex/xetexconfig/hyperref.cfg)
(/usr/local/texlive/2011/texmf-dist/tex/latex/hyperref/puenc.def)
(/usr/local/texlive/2011/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver: hxetex.

(/usr/local/texlive/2011/texmf-dist/tex/latex/hyperref/hxetex.def
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/stringenc.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/usr/local/texlive/2011/texmf-dist/tex/latex/ms/ragged2e.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/ms/everysel.sty))
(/usr/local/texlive/2011/texmf-dist/tex/latex/geometry/geometry.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/changepage/changepage.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/paralist/paralist.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/textcase/textcase.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/soul/soul.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/setspace/setspace.sty
Package: `setspace' 6.7 <2000/12/01>
) (/usr/local/texlive/2011/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/dvipsnam.def)
(/usr/local/texlive/2011/texmf-dist/tex/latex/xcolor/svgnam.def))
(/usr/local/texlive/2011/texmf-dist/tex/latex/natbib/natbib.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/natbib/bibentry.sty)
No file fred.bbl.
(/usr/local/texlive/2011/texmf-dist/tex/latex/sauerj/optparams.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/placeins/placeins.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/tools/multicol.sty)))
(/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2011/texmf-dist/tex/xelatex/mathspec/mathspec.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/etoolbox/etoolbox.sty)

! LaTeX Error: Option clash for package fontspec.

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

l.67 ...Package[\eu@zf@math]{fontspec}[2008/08/09]

? 
Process aborted

What version of Tufte-LaTeX are you using?  With which TeX distribution?

The same error occurs with both the stable distribution (3.5.0) and the latest 
source. Using MacTeX 2011. This issue may have arisen with the 2011 TeXLive 
distribution (which is part of MacTeX 2011), as I am pretty sure that the clash 
did not arise with older (2010 and earlier) distributions.

Please provide any additional information below.

Original issue reported on code.google.com by tchufna...@gmail.com on 1 Nov 2011 at 7:43

Attachments:

GoogleCodeExporter commented 9 years ago
The problem occurs because mathspec tries to load fontspec with different 
options that it was loaded with by the tufte-book class.

The tufte-book class loads the xltxtra package which in turn loads fontspec.  
This is done with the following lines:

\ifthenelse{\boolean{@tufte@xetex}}{%
  \RequirePackage{xltxtra}% xltxtra loads xunicode and fontspec; must be loaded before bidi
}{}

These lines are in tufte-common.def (around lines 288-290).

Commenting out or removing these lines from your tufte-common.def file should 
fix the problem.

You can then load xltxtra yourself if you like.

Please let me know if this resolved the problem.

Original comment by godbyk@gmail.com on 1 Nov 2011 at 8:09

GoogleCodeExporter commented 9 years ago
Thanks! That's a big help.

Original comment by tchufna...@gmail.com on 1 Nov 2011 at 9:43