<span class="gmail_quote"><br></span>It might be even easier to use <br><br> \InputIfFileExists{filename}{then part}{else part}<br><br>If filename exists, this commands loads it and executes the {then part} (which you coul probably even leave empty), if it doesn't exists it executes the {else part} (which again you can probably leave empty). See Appendix
A.4 of the LaTeX Companion by Mittelback et al. (which is where I got my info).<br><br>Cheers,<br><span class="sg">Yuri.</span><div><span class="e" id="q_10e0ab622b9ac673_2"><br><br><br><br><div><span class="gmail_quote">
On 10/2/06, <b class="gmail_sendername">Martin Heller</b> <<a href="mailto:mr_heller@yahoo.dk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mr_heller@yahoo.dk</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;">HREsquivelO skrev:<br><br>> If the Package "
pack.sty" exists, then include it in the main document<br>> .tex "\include{pack.sty }".<br>> Else, ignore it.<br><br>\IfFileExists{pack.sty}<br> {\usepackage{pack}}<br> {\message{Package pack.sty
was not found.}}
<br><br><br>_______________________________________________<br>TeX FAQ: <a href="http://www.tex.ac.uk/faq" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.tex.ac.uk/faq</a><br>Mailing list archives:
<a href="http://tug.org/pipermail/texhax/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://tug.org/pipermail/texhax/
</a><br>More links: <a href="http://tug.org/begin.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://tug.org/begin.html</a><br><br>Automated subscription management: <a href="http://tug.org/mailman/listinfo/texhax" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://tug.org/mailman/listinfo/texhax</a><br>
Human mailing list managers: <a href="mailto:postmaster@tug.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">postmaster@tug.org</a><br></blockquote></div><br>
</span></div>