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 »

Hi Stefan,
I think I partially solved my problem with this lines of code:

Code: Select all

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


\defbeamertemplate*{headline}{mytheme2}
{
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,left]{section in head/foot}
  \tiny\quad \insertsectionhead
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,left]{structure}
  \tiny\quad \insertsubsectionhead
  \end{beamercolorbox}}%
  \vskip0pt%
}
\usebeamertemplate{mytheme2}
Now I have another question, (be patient plz... :) )
Right now I'm using the command \insertsectionhead (in mytheme2); what I have to do if I want ALL the sections to be displayed in that box?

Thx

MC

Recommended reading 2024:

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

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

Post Reply