GeneralBeamer presentation, remove parentheses / brackets in footer

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
jhapk
Posts: 81
Joined: Tue Apr 20, 2010 9:33 pm

Beamer presentation, remove parentheses / brackets in footer

Post by jhapk »

Hi,

I am making a Beamer presentation in Latex with the following code

Code: Select all

\makeatletter
\let\ifGm@compatii\relax
\makeatother
\documentclass[mathserif]{beamer}

\mode<presentation>
{
\usetheme{Madrid}
}

\usepackage[english]{babel}
\usepackage[latin1]{inputenc}

%% title of the presentation
\title[]{Title of the presentation}

%% name of the authors
\author[]{My name}

%% put the name of the institute
\institute[]{Institute name}

%% I don't want date displayed
\date[]{}

%=====================================
% Document begins
%=====================================

\begin{document}

%=====================================
%  TITLE
%=====================================

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

\begin{frame}
  \frametitle{Motivation}
  Blah blah blah  
\end{frame}

%=====================================
% Document ends
%=====================================
\end{document}
It gives me the following output
beamer.png
beamer.png (8.47 KiB) Viewed 8093 times
Why am I getting that empty bracket in the bottom left corner? I am not able to get rid of it. Any ideas?

Thanks
Last edited by jhapk on Wed Nov 10, 2010 8:25 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Beamer presentation, remove parentheses / brackets in footer

Post by Stefan Kottwitz »

Hi jhapk,

the short version of the institute name would be written in parentheses there. That's the behavior of the infolines theme. You could redefine it. Here I just removed the parentheses:

Code: Select all

\defbeamertemplate*{footline}{my infolines theme}
{
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor~~\insertshortinstitute
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
    \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
    \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} 
  \end{beamercolorbox}}%
  \vskip0pt%
}
The empty parentheses are gone. But you still may specify author and institute in short versions for being printed there:

Code: Select all

\author[name]{My name}
\institute[inst]{Institute name}
Stefan
LaTeX.org admin
jhapk
Posts: 81
Joined: Tue Apr 20, 2010 9:33 pm

Re: Beamer presentation

Post by jhapk »

Thanks, that solved the problem
Post Reply