<br>Hello Reinhard,<br><br><div><span class="gmail_quote">On 10/4/06, <b class="gmail_sendername">Reinhard Kotucha</b> &lt;<a href="mailto:reinhard.kotucha@web.de">reinhard.kotucha@web.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt;&gt;&gt;&gt;&gt; &quot;Yuri&quot; == Yuri Robbers &lt;<a href="mailto:yuri.robbers@gmail.com">yuri.robbers@gmail.com</a>&gt; writes:<br><br>&nbsp;&nbsp;&gt; It might be even easier to use<br><br>&nbsp;&nbsp;&gt;&nbsp;&nbsp;\InputIfFileExists{filename}{then part}{else part}
<br><br>It looks easier but it doesn't exactly the same as<br><br>&nbsp;&nbsp; \IfFileExists{pack.sty}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{\usepackage{pack}}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{\typeout{Package pack.sty was not found.}}<br><br>Using \usepackage instead of \input is the preferred way to load .sty
<br>files.&nbsp;&nbsp;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>