## LaTeX forum ⇒ Articles, Essays, and Journal Templates ⇒ can't use \usepackage with this class

IEEE, Elsevier, ACM, ACE, Science, AGU, PNAS, PLOS, RSoC, Springer, Stylish articles and Essays
moebius1927
Posts: 2
Joined: Sat Aug 12, 2017 1:39 am

### can't use \usepackage with this class

Hi All,
when I use aiaa.cls class, i can't use \usepackage{XXXX} since the compiler says:

! LaTeX Error: \RequirePackage or \LoadClass in Options Section. See the LaTeX manual or LaTeX Companion for explanation.Type  H <return>  for immediate help. ...                                               l.3 \begin{document} ?

Do you have any idea how to solve it?
Attachments
AIAA_HARTII.tex
AIAA.cls

Tags:

thomasb
Posts: 54
Joined: Thu Aug 03, 2017 10:54 am
Location: france
Make a short example, with as little lines as you can... And you can post it :
\documentclass{AIAA}\usepackage{graphicx}\usepackage{bm}\begin{document}\section{General Guidelines}\subsection{Publication}\end{document}

Does this works for you, or is there the same problem ?

Johannes_B
Site Moderator
Posts: 3454
Joined: Thu Nov 01, 2012 4:08 pm
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Stefan Kottwitz
Posts: 8293
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:
Welcome to the forum!

It seems to be caused by the \DeclareOption commands after %%%%%%%%%%%% From APS4-1.rtx:

\DeclareOption{pra}{\change@journal{pra}}%\DeclareOption{prb}{\change@journal{prb}}%\DeclareOption{prc}{\change@journal{prc}}%\DeclareOption{prd}{\change@journal{prd}}%\DeclareOption{pre}{\change@journal{pre}}%\DeclareOption{prl}{\change@journal{prl}}%\DeclareOption{prstab}{\change@journal{prstab}}%\DeclareOption{prstper}{\change@journal{prstper}}%\DeclareOption{rmp}{\change@journal{rmp}}%

I removed those lines from AIAA.cls and then your document works. Class files should never be modified, but in this case it's broken anyway... And those options don't seem to be used anyway.

Stefan

Johannes_B
Site Moderator
Posts: 3454
Joined: Thu Nov 01, 2012 4:08 pm
I think it would be much more productive to ping the journal editors and ask them to fix the template. A proper copyright notice should also be added.

That way, improvements will be seen by all users of the template.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

moebius1927
Posts: 2
Joined: Sat Aug 12, 2017 1:39 am
thank you, I'll try to send email to the editor!