[XeTeX] Conflict between fontspec and termcal

Alan Munn amunn at msu.edu
Wed Aug 20 23:25:30 CEST 2008


The following minimal document using the termcal package (available 
at CTAN) fails if fontspec is loaded.  I'm running the MacTeX 
distribution (which I realise has a relatively old xetex).   I'm 
gradually trying to shift my workflow to xelatex, but not everything 
works.   Can anyone confirm that updating xetex and/or fontspec will 
solve my problem?

Thanks

-Alan


%!TEX TS-program =  xelatex-xdvipdfmx
\documentclass{article}
\listfiles
\usepackage{termcal}
\usepackage{fontspec} % works fine if fontspec isn't loaded
\begin{document}
\begin{calendar}{8/26/2008}{1}
\skipday
\calday[Tuesday]{\classday}
\skipday
\calday[Thursday]{\classday}
\skipday
\skipday\skipday
\caltexton{1}{Introduction}
\caltextnext{Review}
\end{calendar}
\end{document}

When fontspec is loaded, processing stops with the first calc error 
in the log: `\relax' invalid at this point

If I let processing continue, it does in fits and starts and produces 
pretty bad output:

<http://www.msu.edu/~amunn/latex/termcal-xetex.pdf>

The relevant portions (I think) of the log file are appended below:

This is XeTeXk, Version 3.141592-2.2-0.996 (Web2C 7.5.6) 
(format=xelatex 2007.5.18)  19 AUG 2008 21:23

Overfull \hbox (4.44pt too wide) in paragraph at lines 18--18
[]|  []
  []


! Package calc Error: `\relax ' invalid at this point.

See the calc package documentation for explanation.
Type  H <return>  for immediate help.
  ...

l.18 \end{calendar}

?
! Undefined control sequence.
\@calc at post@scan ...fi \fi \fi \fi \fi \calc at next

l.18 \end{calendar}

?

! Package calc Error: `\relax ' invalid at this point.

See the calc package documentation for explanation.
Type  H <return>  for immediate help.
  ...

l.18 \end{calendar}

?
! Undefined control sequence.
\@calc at post@scan ...fi \fi \fi \fi \fi \calc at next

l.18 \end{calendar}

?
! Extra }, or forgotten \endgroup.
<recently read> \egroup

l.18 \end{calendar}

?
! Missing \endgroup inserted.
<inserted text>
                 \endgroup
l.18 \end{calendar}

?
! Missing \endgroup inserted.
<inserted text>
                 \endgroup
l.18 \end{calendar}

?
! Missing } inserted.
<inserted text>
                 }
l.18 \end{calendar}

?

Underfull \vbox (badness 10000) detected at line 18
  []

[1

] (./termcal-xetex.aux)

  *File List*
  article.cls    2005/09/16 v1.4f Standard LaTeX document class
   size10.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
  termcal.sty    1997/01/11 1.8 Latex2e package to print a Term calendar
longtable.sty    2004/02/01 v4.11 Multi-page Table package (DPC)
   ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
fontspec.sty    2006/12/24 v1.13 Advanced font selection for XeLaTeX
  ifxetex.sty    2006/08/21 v0.3 Provides ifxetex conditional
     calc.sty    2005/08/06 v4.2 Infix arithmetic (KKT,FJ)
  xkeyval.sty    2006/11/18 v2.5f package option processing (HA)
  xkeyval.tex    2006/11/18 v2.5f key=value parser (HA)
  lmodern.sty    2007/01/14 v1.3 Latin Modern Fonts
  fontenc.sty
   eu1enc.def    2006/08/13 v0.1a Experimental unicode font encoding
   eu1lmr.fd    2007/01/14 v1.3 Font defs for Latin Modern
fontspec.cfg
  ***********


More information about the XeTeX mailing list