Document ClassesChange footline on Madrid theme

Information and discussion about specific document classes and how to create your own document classes.
m.carrara3
Posts: 21
Joined: Mon Sep 08, 2008 7:13 pm

Change footline on Madrid theme

Post by m.carrara3 »

Here's my problem:
I'm writing a presentation in Beamer and I'm using Madrid theme. I need to change the footline so as to erase the title because I'm also using the sidebar outertheme.

Here's my code:

Code: Select all

\usetheme[]{Madrid}
\useoutertheme[hideothersubsections, left, height=0pt]{sidebar}
Does anyone know how to do such a thing?

Thanks in advance

Matteo

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Change footline on Madrid theme

Post by Stefan Kottwitz »

Hi Matteo,

try

Code: Select all

\defbeamertemplate*{footline}{mytheme}
{
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor~~(\insertshortinstitute)
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.5\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%
}
\usebeamertemplate{mytheme}
This way the footline will consist of only two party, no title is shown.

Stefan
LaTeX.org admin
m.carrara3
Posts: 21
Joined: Mon Sep 08, 2008 7:13 pm

Re: Change footline on Madrid theme

Post by m.carrara3 »

Thank a lot, it worked out,
maybe you also know how to delete frame dots in the head bar?

Thx
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: Change footline on Madrid theme

Post by Stefan Kottwitz »

Which headbar do you mean? From your two lines of code I cannot guess everything...

Stefan
LaTeX.org admin
m.carrara3
Posts: 21
Joined: Mon Sep 08, 2008 7:13 pm

Change footline on Madrid theme

Post by m.carrara3 »

Maybe with some code I can explain well... Taking advantage from your code I also wrote this:

Code: Select all

\defbeamertemplate*{headline}{mytheme2}
{
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=1.\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertsections
  \end{beamercolorbox}}%
}
\usebeamertemplate{mytheme2}
Actually I'm not sure about the command

Code: Select all

\insertsections
. I want to insert all the section titles in the headbar like Berlin theme, but without dots.

Am I missing something?

MC
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Change footline on Madrid theme

Post by Stefan Kottwitz »

\insertsections does not work with the lines mentioned until now.
Perhaps post a compilable minimal working example.

Stefan
LaTeX.org admin
m.carrara3
Posts: 21
Joined: Mon Sep 08, 2008 7:13 pm

Change footline on Madrid theme

Post by m.carrara3 »

Here's the example.
I need to erase the dots from the headline.
I hope this can help:

Code: Select all

\documentclass[aspectratio=1610,compress]{beamer}
\frenchspacing
\usepackage[italian]{babel}
\usepackage[latin1]{inputenc}
\usepackage{xspace,colortbl}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usefonttheme[onlymath]{serif}
\usetheme[]{Madrid}
\useoutertheme[footline=authortitle, subsection=false]{miniframes}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamercovered{transparent}

\newcommand\BackgroundPicture[1]{%
    \setbeamertemplate{background}{%
    \parbox[c][\paperheight]{\paperwidth}{%
        \hfill \vfill \centering
 \includegraphics[height=.9\paperheight]{#1}
         \hfill \vfill
      }}}

\title[Project]{}
\institute[Institute]{Institute Long}


\defbeamertemplate*{footline}{mytheme}
{
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.3\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}~\insertshorttitle
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.7\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
    \usebeamerfont{date in head/foot}\insertshortinstitute{}\hspace*{20em}
    \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} 
  \end{beamercolorbox}}%
  \vskip0pt%
}
\usebeamertemplate{mytheme}

\begin{document}

\section{A}

	\subsection{AA}
			\begin{frame}{}
			first
			\end{frame}
	
	\subsection{AA2}
			\begin{frame}{}
			first
			\end{frame}
	
	\subsection{AA3}
			\begin{frame}{}
			first
			\end{frame}
	
\section{B}
	\subsection{AA}
			\begin{frame}{}
			first
			\end{frame}
	
	\subsection{AA2}
			\begin{frame}{}
			first
			\end{frame}
	
	\subsection{AA3}
			\begin{frame}{}
			first
			\end{frame}

\section{C}

	\subsection{AA}
			\begin{frame}{}
			first
			\end{frame}
	
	\subsection{AA2}
			\begin{frame}{}
			first
			\end{frame}
	
	\subsection{AA3}
			\begin{frame}{}
			first
			\end{frame}


\end{document}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Change footline on Madrid theme

Post by Stefan Kottwitz »

Well, that's an example where it could be tested and modified.
Try

Code: Select all

\makeatletter
\renewcommand{\beamer@writeslidentry}{}
\makeatother
in your preamble.

Stefan
LaTeX.org admin
m.carrara3
Posts: 21
Joined: Mon Sep 08, 2008 7:13 pm

Re: Change footline on Madrid theme

Post by m.carrara3 »

Hello,
I tried and it worked out but something went wrong and now some things do not work correctly.
As example consider this:
1) some overlay are not working properly;
2) frames which do not belong to a section, with your line of code appear under that section.

Any suggestion?

Thanks,

Matteo
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: Change footline on Madrid theme

Post by Stefan Kottwitz »

Hi Matteo,

again, a minimal example showing the problem is needed. How should we guess which overlay is not working and how.

Stefan
LaTeX.org admin
Post Reply