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.

The code below gives nice slides with a navigation bar on top that leads to the different sections (I have no subsections) in the presentation. However, below the navigation bar there is a second bar (grey) without any content that I would like to get rid off because it just takes up space. Does anyone know how to do that? Removing that bar would result in the "perfect" presentation for me.

\documentclass{beamer}

\usepackage[T1]{fontenc}
\usepackage{lmodern}
%\usepackage[latin1]{inputenc} 
\usepackage[ansinew]{inputenc} 
\usepackage[ngerman]{babel}
\usepackage[babel,german=quotes]{csquotes}
\usetheme{Szeged}
\usecolortheme{seagull}
\usepackage{graphicx}
\usepackage{color}
\usepackage{multirow}

\title[Short title]{\textsc{{Long title 1}}}   
\author{Aut Hor} 
\institute[Short Ins]{Ins}
\date{\today} 

%***********************************
\begin{document}
\frame{\titlepage} 
\frame{\frametitle{Outline}{\tableofcontents}}


\section{FIRST SECTION}
\frame{\frametitle{FIRST FRAME} 
\begin{itemize}
    \item item 1 
    \item item 2
\end{itemize}
}

\section{SECOND SECTION}
\frame{\frametitle{SECOND FRAME} 
\begin{itemize}
    \item item 4
    \item item 5
\end{itemize}
}

\end{document}
share|improve this question
    
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). –  Seamus Jan 31 '12 at 10:55
add comment

2 Answers 2

The Szeged theme uses the miniframes outer theme which declares the beamer@theme@subsection conditional and sets it to true. This in turn adds color boxes to display the \subsections. You may remove the boxes by adding the following after \usetheme{Szeged}:

\makeatletter
\beamer@theme@subsectionfalse
\makeatother
share|improve this answer
add comment

As lockstep explained, the Szeged theme does:

  1. applies compress option
  2. loads miniframes outer theme with theme options footline=instituteline and subsection=true
  3. sets a separation line color which is suppressed with \usecolortheme{Seagull}.

Knowing that you can just apply compress option and change options for miniframes with next preamble:

\documentclass[compress]{beamer}
...
\useoutertheme[subsection=false, footline=institutetitle]{miniframes}
\usecolortheme{Seagull}

Stefan Kottwitz provides a better solution: Szeged theme loads miniframes outer theme with subsection=true which clashes with a later call to \useoutertheme[subsection=false]{miniframes}. This clash is avoided if subsection=false option is set before loading themes:

\PassOptionsToPackage{subsection=false}{beamerouterthememiniframes}
\documentclass{beamer}
\usetheme{Szeged} % implicitely loads miniframes
\begin{document}
\section{A section}
\subsection{A subsection}
\frame{Hello} 
\end{document}
share|improve this answer
    
This is a superior method. Sadly, beamer doesn't seem to allow first loading a "complete" theme like Szeged and only then disabling some of its underlying options. –  lockstep Jan 31 '12 at 17:36
    
@lockstep: Yes, it seems so. In any case, Stefan Kottwitz provides a better solution in my following question. –  Ignasi Jan 31 '12 at 17:53
    
I tried all of those solutions and they all work. Thank you very much! One final question. Is it possible to get rid of the thin white line (probably it is only white in seagull color scheme) that separates the navigation bar from the top border of the slide? –  Paul Feb 1 '12 at 10:01
    
If this white line first appears on second frame, it's a compatibility problem between older versions of pgf and beamer. Update both packages and the line will disappear. –  Ignasi Feb 1 '12 at 10:20
    
Thank you Ignasi. I discovered that the white line only appears in Sumatrapdf not in Adobe reader.. so problem solved.. –  Paul Feb 1 '12 at 18:22
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.