[Tex/LaTex] How to add a document class to TexStudio

document-classestexstudio

I want to add a new document class to TexStudio. The document class is named "AEA" and is available in this link (the first .zip file below "Please note:")

The code will look like this

\documentclass[AER]{AEA}
\draftSpacing{1.5}
\begin{document}
Hello World!
\end{document}

Best Answer

TXS uses an internal scanner to detect packages and classes. It currently only searches the standard tex folders not the local folder.

If the internal parser cannot locate the file (maybe because it's in the local folder), the package or class name are highlighted in the editor and the toolitp says "package not found". This is merely a hint. It does not reflect a result from a latex call.

So if your compilation works fine, you can ignore that message (or swith off the package scanner at Options -> Editor -> Inline Checking -> Package.)