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 trying to create my own theme, but as a newbie I have encountered few problems which I wasn't able to solve...

I'm using \useoutertheme{sidebar} option and it automaticly creates TOC with sections and subsections, which is as it should be. However, in one section I have

\begin{itemize}[<+->]
\item One
\item Two
\item Three
\end{itemize}

and this shows as a multiple section entries in TOC. Frame number, however, is not affected by \pause command and multiple sections.

Any ideas?


\documentclass[compress,mathserif]{beamer}
\mode<presentation>
\usepackage[utf8x]{inputenc}
\usepackage{graphicx}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{tikz}
\useoutertheme[width=2cm,height=2cm]{sidebar}
\title[]{Long title}
\author[]{Author}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
\section{Lists}
\frametitle{Bullets and lists}
\begin{overprint}
\begin{itemize}[<+->]
\item One 
\item Two 
\item Three 
\end{itemize} 
\end{overprint} 
\end{frame} 
\end{document}
share|improve this question
2  
Your code snippet is useless since it doesn't allow us to reproduce the problem, Please add to your question a minimal working example illustrating the undesired bahaviour. –  Gonzalo Medina Apr 5 '12 at 12:29
    
Exactly as @GonzaloMedina says: until you post a short full .tex file exactly showing your problem, you cannot be helped. –  yo' Apr 6 '12 at 14:19
    
Here comes the MWE –  Jani T Apr 10 '12 at 6:07
    
@JaniT If you're still interested in the cause of the problem and its solution, please see my answer below. –  Gonzalo Medina May 21 '12 at 1:29

1 Answer 1

The problem comes from using \section inside a frame with overlay specification (in any case, using \section inside a frame doesn't make much sense). All you have to do to solve your problem is to move \section outside the frame environment:

\documentclass[compress,mathserif]{beamer}
\mode<presentation>
\usepackage[utf8x]{inputenc}
\usepackage{graphicx}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{tikz}

\useoutertheme[width=2cm,height=2cm]{sidebar}
\title[]{Long title}
\author[]{Author}

\begin{document}

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

\section{Lists}

\begin{frame}
\frametitle{Bullets and lists}
\begin{overprint}
\begin{itemize}[<+->]
\item One 
\item Two 
\item Three 
\end{itemize} 
\end{overprint} 
\end{frame} 

\end{document}

Heres the first frame of your example code showing the problem:

enter image description here

and here's the first frame of my example code, once \section was moved outside frame:

enter image description here

share|improve this answer

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.