# How to add a subtitle to a beamer document [closed]

Hey I've tried to add a subtitle in document class like this

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


But it gives me errors. please someone help me to add a subtitle to my document.

-

## migrated from stackoverflow.comFeb 18 '12 at 13:12

This question came from our site for professional and enthusiast programmers.

## closed as too localized by lockstep, Alan Munn, Paulo Cereda, Stefan Kottwitz♦Mar 4 '12 at 0:32

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

This works fine for me if you add \maketitle to your document (instead of %content). By the way, you need to typeset at least something (that is, have something the generates output) within the document environment. Does this work for you? –  Werner Feb 18 '12 at 6:48
yeah I used \maketitle but it didn't work. \title{title \\ subtitle} didn't work either.. –  Aruna Sujith Feb 18 '12 at 7:11
Could you be a little more specific about the error you encounter? What error message do you get? Do you get any output at all? –  Jake Feb 18 '12 at 13:18
\documentclass{beamer} \title{title} \subtitle{subtitle} \author{name} \date{\today} \begin{document} \maketitle \end{document} yields no error. You may check your beamer version and/or specify your question by adding the error log –  bloodworks Feb 18 '12 at 13:19
Maybe it helps if you remove the auxiliary files first and then compile with a \maketitle command. –  Marc van Dongen Feb 18 '12 at 13:57