# \subtitle doesn't work in article document class

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.

-

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:

-

To supplement Stefan's answer, the core LaTeX article class does not have a \subtitle macro. You can therefore either do something like

\title{Title \\ Subtitle}


or consider the titlepage environment. Other document classes, notably KOMA-Script, do have a separate \subtitle macro available.

-
Isn't in normal for the subtitle to be slightly smaller than the title. So if the title were \Large the command might be supplemented: \title{Title \\ \large Subtitle} –  Seamus Nov 25 '10 at 16:58
@Seamus: This would depend on exactly how the 'subtitle' is intended to look, but you are right that this is often the case. I'd probably go for the titlepage environment to do this. –  Joseph Wright Nov 25 '10 at 17:20

I was having a similar problem and I found this to be a good approximation to the title/subtitle look. It's basically what's already written above but with the \vspace (and I thought a picture would be helpful).

\title{The Metrization of Arbitrary Homotopy Spheres \\ \vspace{2 mm} {\large A Nonsensical Review}}


-
good enough for government work. –  Austin Pray Sep 2 at 3:42
Semantically poor, but very practical! –  CJxD Nov 24 at 16:49