<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>The Optional usage of the Packages</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>
<P><FONT SIZE=2 FACE="Verdana">Hello Folks,</FONT>
</P>
<P><FONT SIZE=2 FACE="Verdana">I really apologize to contact you directly</FONT>
<BR><FONT SIZE=2 FACE="Verdana">but I realy went over everything I found on the web about my issue...</FONT>
</P>
<P><FONT SIZE=2 FACE="Verdana">The aim:</FONT>
<BR><FONT SIZE=2 FACE="Verdana">Depending on the options passed to my class, I'd like</FONT>
<BR><FONT SIZE=2 FACE="Verdana">a various packages to be used or not used - checkout what I tried...</FONT>
</P>
<P><FONT COLOR="#008080" SIZE=2 FACE="Courier New">\NeedsTeXFormat{LaTeX2e}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New">\ProvidesClass{sciencearticle}[2007/08/15 The Science Article Class]</FONT>
</P>
<P><FONT COLOR="#008080" SIZE=2 FACE="Courier New">\DeclareOption{chem}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> {</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> \typeout{Providing packages for the Chemistry}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> \RequirePackage[version=3]{mhchem}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> }</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New">\DeclareOption{chemext}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> {</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> \typeout{Providing packages for the Chemistry - Extended}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> \RequirePackage[version=3]{mhchem}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> \RequirePackage{epic}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> \RequirePackage{chemstr}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> \RequirePackage{carom}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> \RequirePackage{hetarom}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> \RequirePackage{hetaromh}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> \RequirePackage{lowcycle}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> \RequirePackage{ccycle}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> \RequirePackage{hcycle}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> \RequirePackage{aliphat}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> \RequirePackage{locant}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> \RequirePackage{polymers}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> \RequirePackage{methylen}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> \RequirePackage{fusering}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> \RequirePackage{sizeredc}</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New"> }</FONT>
</P>
<P><FONT COLOR="#008080" SIZE=2 FACE="Courier New">\ProcessOptions\relax</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New">\LoadClass[a4paper, twoside, 11pt]{article}</FONT>
</P>
<P><FONT COLOR="#000000" SIZE=2 FACE="Verdana">This is not working and the message is:</FONT>
<BR><FONT COLOR="#008080" SIZE=2 FACE="Courier New">! LaTeX Error: \RequirePackage or \LoadClass in Options Section.</FONT>
</P>
<P><FONT COLOR="#000000" SIZE=2 FACE="Verdana">Could somebody please help me on how to bind the packages</FONT>
<BR><FONT COLOR="#000000" SIZE=2 FACE="Verdana">optionally.</FONT>
</P>
<P><FONT COLOR="#000000" SIZE=2 FACE="Verdana">Many thanks in advance</FONT>
</P>
<P><FONT COLOR="#000000" SIZE=2 FACE="Verdana">Zoran Nikolic</FONT>
</P>
</BODY>
</HTML>