<br>Hello Reinhard,<br><br><div><span class="gmail_quote">On 10/4/06, <b class="gmail_sendername">Reinhard Kotucha</b> <<a href="mailto:reinhard.kotucha@web.de">reinhard.kotucha@web.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
>>>>> "Yuri" == Yuri Robbers <<a href="mailto:yuri.robbers@gmail.com">yuri.robbers@gmail.com</a>> writes:<br><br> > It might be even easier to use<br><br> > \InputIfFileExists{filename}{then part}{else part}
<br><br>It looks easier but it doesn't exactly the same as<br><br> \IfFileExists{pack.sty}<br> {\usepackage{pack}}<br> {\typeout{Package pack.sty was not found.}}<br><br>Using \usepackage instead of \input is the preferred way to load .sty
<br>files. The LaTeX macros \usepackage and \RequirePackage make sure<br>that a package is not loaded twice.</blockquote><div><br>That's not something I had thought about at all... Thanks for pointing it out!<br><br>Perhaps it might be helpful to beginning package authors to define \UseIfPackageExists{filename}{the-part}{else-part} or something like it, and then mention that in the clsguide, rather than InputIfFileExists{}{}{}?
<br></div><div><br>Best regards,<br>Yuri.<br><br></div></div>