[tex-live] IfFileExists problem? Only on Mac OS X?
Gerben Wierda
Sherlock@rna.nl
Sat, 28 Sep 2002 10:54:18 +0200
The class g-brief.sty includes certain files only if they are found:
\ifx \eurofontname\eurofontnone
\IfFileExists{marvosym.sty}
{\RequirePackage{marvosym}}
{\ClassError{g-brief}
{Can't load package marvosym.sty !!!}}
\def\Telefon#1{\def\telefon{#1}} \def\telefon{}
\fi
\ifx \eurofontname\eurofontnone
\IfFileExists{europs.sty}
{\RequirePackage{europs}}
{\ClassError{g-brief}
{Can't load package europs.sty !!!}}
\fi
\ifx \eurofontname\eurofontnone
\IfFileExists{eurosym.sty}
{\RequirePackage{eurosym}}
{\ClassError{g-brief}
{Can't load package eurosym.sty !!!}}
\fi
Now, on my system where I run a setup based on teTeX's texmf tree,
europs.sty and eurosym.sty are not available, but marvosym.sty is. When
I use g-brief in for instance this file (reported to me):
======================================== t1.tex
\documentclass[german]{g-brief}
\lochermarke
\faltmarken
\fenstermarken
\trennlinien
\klassisch
\Name {Person}
\Strasse {Muster Str. 8}
\Ort {99999 Samplestadt}
\Land {Deutschland}
\RetourAdresse{bla bla bla}
\Telefon {999999-999999}
\Telefax {fax fax}
\EMail {\texttt{person@t-online.de}}
\Adresse{ Big GmbH \& Co. KG\\
Kunden Service Center\\
Postfach 938373\
\\
\textbf{44713 Hierstadt}}
\Anrede {Sehr geehrte Damen und Herren,}
\Gruss {Mit freundlichen Gruessen}{1cm}
\Unterschrift {Person}
\Betreff {bla}
\Anlagen {}
\Verteiler {}
\begin{document}
\begin{g-brief}
bla bla bla
\end{g-brief}
\end{document}
======================================== t1.tex
and I run pdflatex or latex on it, I get:
(/usr/local/teTeX/share/texmf/tex/latex/g-brief/g-brief.cls
Document Class: g-brief 2002/02/16 v3.0 g-brief class
(/usr/local/teTeX/share/texmf/tex/latex/base/letter.cls
Document Class: letter 1999/04/29 v1.2z Standard LaTeX document class
(/usr/local/teTeX/share/texmf/tex/latex/base/size11.clo))
(/usr/local/teTeX/share/texmf/tex/generic/babel/babel.sty
(/usr/local/teTeX/share/texmf/tex/generic/babel/germanb.ldf
(/usr/local/teTeX/share/texmf/tex/generic/babel/babel.def)))
(/usr/local/teTeX/share/texmf/tex/latex/base/inputenc.sty
(/usr/local/teTeX/share/texmf/tex/latex/base/latin9.def))
(/usr/local/teTeX/share/texmf/tex/latex/misc/marvosym.sty)
! Class g-brief Error: Can't load package europs.sty !!!.
See the g-brief class documentation for explanation.
Type H <return> for immediate help.
...
l.388 \fi
?
The same happens when I remove marvosym.sty and run texhash, it will
complain about not being able to load marvosym. The file is definitely
not there, but I get an error because g-brief is trying to load it
anyway. \IfFileExists seems not to work here.
Is this a problem with Mac OS X only? Or does it show up at other sites
also? Can people test this by making sure europs.sty is temporarily
unavailable and see what happens when the file above is compiled?
Thanks,
G