[pstricks] \RequirePackage and cie

Jean-Côme Charpentier Jean-Come.Charpentier at wanadoo.fr
Sat Oct 29 18:52:50 CEST 2005


   Hello everybody,

I ask myself a question about .sty files of the Pstricks world.

Probably *all* the sty file pst-* are like that:

\ProvidesPackage{pst-foo}[<date> <info>]
\input pst-foo.tex
\endinput

and the matching pst-foo.tex begins like that:

\message{<version> <date>}

\csname PSTfoo\endcsname
\let\PSTfoo\endinput

\ifx\PSTricksLoaded\endinput\else
   <load pstricks>
\fi

\ifx\PSTbarLoaded\endinput\else
   <load pst-bar>
\fi
...



IMHO, it would be much better if the .sty file says:

\ProvidesPackage{pst-foo}[<date> <description>]
\RequirePackage{pstricks}[<date>]
\RequirePackage{pst-bar}[<date>]
...

For the Plain TeX user, that changes nothing. For the LaTeX user, he 
will read a very clear warning message when some components are out of date.

It's just a question:  what is your opinion?

   Jean-Côme Charpentier




More information about the PSTricks mailing list