[Tex/LaTex] \subtitle doesn’t work in article document class

articledocument-classestitles

I'm relatively new to TeX but until now I used mostly the beamer class. There I did this:

\documentclass{beamer}
  \title{title}
  \subtitle{subtitle}
  \author{name}
  \date{\today}
\begin{document}
    %content
\end{document}

And it worked as I would expect but when I use the article class the subtitle does not work.

So it seems that a) I got something wrong or b) it's not the right document class. So I ask you guys:

How do I use a subtitle in the article class?

or

Which document class should I use for my document? I'm attempting to write a document with 50 to 100 pages. It will be a documentation for a programming project so it will contain code snippets and diagrams.

Best Answer

If you used scrartcl instead of article, the command \subtitle would immediately work as expected. scrartcl belongs to the KOMA-Script classes which are extended replacements of the LaTeX standard classes. I strongly recommend KOMA-Script. For reasons have a look at:

Your document is considerably large. An article-like class may be ok (scrartcl), but if you need a chapter-like sectioning you could consider to use report (or scrreprt, which is a KOMA class).

You might be interested in the answers to this question: