[tex-live] Re: IfFileExists problem? Only on Mac OS X?

Robin Fairbairns Robin.Fairbairns@cl.cam.ac.uk
Sat, 28 Sep 2002 10:31:13 +0100


> \ifx \eurofontname\eurofontnone
> \IfFileExists{europs.sty}
>    {\RequirePackage{europs}}
>    {\ClassError{g-brief}
>      {Can't load package europs.sty !!!}}
> \fi

and

> ! 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.

it's a latex error if it's actually tried to load the file.  a g-brief
error arises only if the file isn't there (as detected by
\iffileexists)

so \if...ts _is_ working.  mind you, i don't see how one could claim
that the code is ... surely loading marvosym (which defines a euro
symbol) ought to change \eurofontname?  and it plainly isn't (or you
wouldn't have seen the europs error, would you?).