Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #11908 (closed defect: wontfix)

Opened 19 months ago

Last modified 3 months ago

BUG: XeTeX-0.995 problems with graphicx, fontspec

Reported by: com-macosforge@… Owned by: pguyot@…
Priority: High Milestone: Port Bugs
Component: ports Version:
Keywords: XeTeX Cc:
Port:

Description

The XeTeX port doesn't work for me (the same file works with a non-MacPorts installation of XeTeX) if I try to use the fontspec or graphicx packages.

For example, the following simple file:

%!TEX TS-program = xelatex

\documentclass{article}
\usepackage[xetex]{graphicx}

\begin{document}

\end{document}

gives:

This is XeTeX, Version 3.141592-2.2-0.995 (Web2C 7.5.5)
entering extended mode
(./sample.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, slovak, slovene, spanish, swedish, turkish, noh
yphenation, loaded.
(/local/MacPorts-ppc/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/local/MacPorts-ppc/share/texmf-dist/tex/latex/base/size10.clo))
(/local/MacPorts-ppc/share/texmf-dist/tex/latex/graphics/graphicx.sty
(/local/MacPorts-ppc/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/local/MacPorts-ppc/share/texmf-dist/tex/latex/graphics/graphics.sty
(/local/MacPorts-ppc/share/texmf-dist/tex/latex/graphics/trig.sty)
(/local/MacPorts-ppc/share/texmf-dist/tex/latex/graphics/graphics.cfg)

! LaTeX Error: Unknown option `xetex' for package `graphics'.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.72 \if
        !\Gin@driver!
? 

If I try to use the fontspec package instead (\usepackage{fontspec}):

This is XeTeX, Version 3.141592-2.2-0.995 (Web2C 7.5.5)
entering extended mode
(./sample.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, slovak, slovene, spanish, swedish, turkish, noh
yphenation, loaded.
(/local/MacPorts-ppc/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/local/MacPorts-ppc/share/texmf-dist/tex/latex/base/size10.clo))
(/local/MacPorts-ppc/share/texmf-dist/tex/xelatex/fontspec/fontspec.sty
(/local/MacPorts-ppc/share/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/local/MacPorts-ppc/share/texmf-dist/tex/latex/tools/calc.sty)
(/local/MacPorts-ppc/share/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/local/MacPorts-ppc/share/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/local/MacPorts-ppc/share/texmf-dist/tex/generic/xkeyval/keyval.tex)))

LaTeX Warning: You have requested, on input line 39, version
               `2005/05/07' of package xkeyval,
               but only version
               `2005/01/30 v2.0 package option processing (HA)'
               is available.

! Undefined control sequence.
l.503 \define@choicekey
                       [zf]{preparse}{Renderer}{AAT,ICU}{%
? 

Change History

Changed 19 months ago by wlynch@…

I'm getting a pile of errors with that as well (and I have a working installation from texlive)... Here's a header that I've been using that works pretty well for me. Might work for you as well.

\documentclass[cm-default]{article}

\usepackage{euler, amssymb, amsmath, amsthm}
\usepackage{fontspec, xunicode, xltxtra}

\defaultfontfeatures{Mapping=tex-text}
\setmainfont{Avenir LT Std}
\setsansfont{Lucida Sans}
\setmonofont{Lucida Sans Typewriter}

Changed 18 months ago by markd@…

  • summary changed from XeTeX problems with graphicx, fontspec to BUG: XeTeX-0.995 problems with graphicx, fontspec

Changed 18 months ago by edward.og@…

This problem has been documented here: http://tug.org/mailman/htdig/xetex/2005-March/001946.html

The fix is to change /opt/local/share/texmf/web2c/texmf.cnf (found by running $kpsewhich texmf.cnf) so that the % XeTeX section looks like this:

% XeTeX TEXINPUTS.xelatex = .;$TEXMF/{xetex,tex}/{xelatex,latex,generic,}// TEXINPUTS.xetex = .;$TEXMF/{xetex,tex}/{xetex,plain,generic,}//

Changed 18 months ago by edward.og@…

Sorry, that should be

> % XeTeX 
> TEXINPUTS.xelatex = .;$TEXMF/{xetex,tex}/{xelatex,latex,generic,}// 
> TEXINPUTS.xetex = .;$TEXMF/{xetex,tex}/{xetex,plain,generic,}//

Changed 16 months ago by nox@…

  • priority changed from Important to High
  • milestone set to Port Bugs

Changed 3 months ago by pguyot@…

  • status changed from new to closed
  • resolution set to wontfix

XeTeX is now included in texlive.

Note: See TracTickets for help on using tickets.