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
Post
by m.carrara3 » Tue Jul 06, 2010 8:56 am
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
NEW: TikZ book now 40% off at Amazon.com for a short time.
Stefan Kottwitz
Site Admin
Posts: 10324 Joined: Mon Mar 10, 2008 9:44 pm
Post
by Stefan Kottwitz » Tue Jul 06, 2010 12:24 pm
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
Post
by m.carrara3 » Tue Jul 06, 2010 1:24 pm
Thank a lot, it worked out,
maybe you also know how to delete frame dots in the head bar?
Thx
Stefan Kottwitz
Site Admin
Posts: 10324 Joined: Mon Mar 10, 2008 9:44 pm
Post
by Stefan Kottwitz » Tue Jul 06, 2010 1:30 pm
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
Post
by m.carrara3 » Tue Jul 06, 2010 1:38 pm
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
. I want to insert all the section titles in the headbar like Berlin theme, but without dots.
Am I missing something?
MC
m.carrara3
Posts: 21 Joined: Mon Sep 08, 2008 7:13 pm
Post
by m.carrara3 » Tue Jul 06, 2010 1:55 pm
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}
Stefan Kottwitz
Site Admin
Posts: 10324 Joined: Mon Mar 10, 2008 9:44 pm
Post
by Stefan Kottwitz » Tue Jul 06, 2010 2:30 pm
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
Post
by m.carrara3 » Tue Jul 06, 2010 3:02 pm
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
Stefan Kottwitz
Site Admin
Posts: 10324 Joined: Mon Mar 10, 2008 9:44 pm
Post
by Stefan Kottwitz » Tue Jul 06, 2010 3:18 pm
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