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 would like to change the title page in beamer. Thus I tried to change it with defbeamertemplate as you can see above :

\documentclass{beamer}
\title{A title}
\date{\today}
\institute{home}
\author{me}
\defbeamertemplate*{title page}{default}[1][]
{
}

\begin{document}

\begin{frame}
    \titlepage
\end{frame}

\begin{frame}
    \frametitle{plop}
    plop

    plop
\end{frame}
\end{document}

My problem is that even with a simple example such as above, I got the following error message :

! LaTeX Error: Command \beamer@@tmpop@title page@default already defined.
               Or name \end... illegal, see p.192 of the manual.

actually the page 192 of the manual does not help me so much ...

share|improve this question
    
Try \setbeamertemplate. –  percusse Oct 29 '12 at 15:32
    
Ok it works, but why it leads to an error with title page and not with headline, footline or other template ? –  Ger Oct 29 '12 at 15:46
add comment

1 Answer 1

up vote 7 down vote accepted

With

\defbeamertemplate{<element>}{<option>} 

you install an <option> for the template called <element>; once this has been done, the defined template can be used with

\setbeamertemplate{<element>}[<option>]

In your case you get an error message since the default option for the title page template is already defined. You can use

\defbeamertemplate{title page}{<name>}
{
<some actions>
}

(the syntax for \defbeamertemplate is more complex, but this is not relevant here), if the option has not been previously defined for the template, and then use

\setbeamertemplate{title page}[<name>]

but since this is a local modification (intended to be used in a document and not, for example, in the design of a new theme), it's simpler to just use

\setbeamertemplate{title page}
{
<some actions>
}
share|improve this answer
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.