Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
add comment

3 Answers

up vote 53 down vote accepted

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:

share|improve this answer
add comment

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}}

sample picture

share|improve this answer
add comment

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.

share|improve this answer
7  
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
2  
@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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.