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 editing a theme beamer, but I have a trouble I would like to remove the header without remove neither footer or the lateral navigation bar. I've tried with the follow option:

\defbeamertemplate*{headline}{split theme}
{

 %nothing  

} 

but when I try to compile I receive the follow error:

! LaTeX Error: Command \beamer@@tmpop@headline@split theme already defined.

I use theme PaloAlto. I hope that somebody can help me.

EDIT by Marco Daniel:

Here the solution presented as a minimal working example:

\documentclass{beamer}
\usetheme{PaloAlto}
\setbeamertemplate{headline}{}

\begin{document}
\section{foo}
\begin{frame}
\frametitle{bar}
Text
\end{frame}
\end{document}
share|improve this question
1  
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it) or CTRL+K. The syntax highlighter already defaults to (La)TeX. It is also not necessary to use a LaTeX tag on this site, especially not tex-core which is about the lower level of TeX. –  Martin Scharrer Oct 30 '11 at 19:45
1  
Use: \setbeamertemplate{headline}{} –  Marco Daniel Oct 30 '11 at 19:48
    
According to the beamer documentation (p 172, section 16.3.3 Setting Beamer's Templates) regarding \defbeamertemplate: "This command installs a predefined option for the template <element name>. Once this command has been used, users can access the predefined template using the \setbeamertemplate command." Does using \setbeamertemplate work? –  Werner Oct 30 '11 at 19:50
    
No, it doesn't work, the header is there still. –  Fernando Martinez Oct 30 '11 at 19:55
1  
Please then add a full but minimal working example (MWE) that illustrates your problem. –  Martin Scharrer Oct 30 '11 at 20:04

1 Answer 1

up vote 11 down vote accepted

The solution is to use \setbeamertemplate{headline}{}. This clears the "template" for the headline, ensuring that when the headline is typeset then nothing is done. It is important to ensure that this is not overridden by other styles so should be placed in the preamble after any themes have been loaded.

Example:

\documentclass{beamer}
\usetheme{PaloAlto}
\setbeamertemplate{headline}{}

\begin{document}
\section{foo}
\begin{frame}
\frametitle{bar}
Text
\end{frame}
\end{document}

This produces:

beamer with no header

With the \setbeamertemplate command commented out then it produces:

enter image description here


(This was answered in the comments; I'm posting this to remove it from the "unanswered" queue. As the real problem was due to a theme overriding the template, I considered having it closed as "too localised", but I also thought that this might be a common question and having the question closed with the answer in the comments is not the most helpful way to present this question and answer. I've marked it CW partly as it's not my answer and partly so that others can easily improve it and know that they are encouraged to do so.)

share|improve this answer
    
Yes I't was the solution. Thank you to everyone. –  Fernando Martinez Nov 1 '11 at 19:28

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.