Slide number?

751 views
Skip to first unread message

Shaker

unread,
Nov 11, 2008, 9:49:55 PM11/11/08
to LaTeX Users Group
Hi all,

i am using beamer with these settings

\documentclass{beamer}
\setbeamertemplate{navigation symbols}{}
\usepackage{beamerthemeshadow}
\useoutertheme{default}

but i am not able to add the slide number
and the only solution is use "infolines" in the "useoutertheme"
instead of "default" as follows

\useoutertheme{infolines}
\setbeamertemplate{\insertframenumber}

but this makes my lose the navigation stuff at the top of my slide ,
so how can i merge add the slide number to the slides which has a
navigation on the top?

Regards

C Hanck

unread,
Nov 12, 2008, 3:43:36 AM11/12/08
to LaTeX Users Group
does this achieve what you want?

best wishes

christoph

ps: in the future it would be nice if you could post similar minimal
working examples that can be run directly!

\documentclass{beamer}
\setbeamertemplate{navigation symbols}{}
\usepackage{beamerthemeshadow}
\useoutertheme{default}
\setbeamertemplate{footline}{\insertframenumber}

\begin{document}
\section{start}
\begin{frame}
the first
\end{frame}
\section{middle}
\begin{frame}
the second
\end{frame}
\section{end}
\begin{frame}
the third
\end{frame}
\end{document}

Ammar Shaker

unread,
Nov 12, 2008, 12:41:32 PM11/12/08
to latexus...@googlegroups.com
thanks christoph,

but with this change i have the slide number in the footer , but i lost the default behaviour which is
(the auther and the title in the footer with it's background)

Regards

2008/11/12 C Hanck <chrh...@aol.com>

C Hanck

unread,
Nov 13, 2008, 3:37:08 AM11/13/08
to LaTeX Users Group
it is difficult to guess which behavior, up to the slide number, you
want and get if you do not post a full example to that effect.

- christoph

On Nov 12, 6:41 pm, "Ammar Shaker" <shake...@gmail.com> wrote:
> thanks christoph,
>
> but with this change i have the slide number in the footer , but i lost the
> default behaviour which is
> (the auther and the title in the footer with it's background)
>
> Regards
>
> 2008/11/12 C Hanck <chrha...@aol.com>

Ammar Shaker

unread,
Nov 13, 2008, 2:02:05 PM11/13/08
to latexus...@googlegroups.com
Ok, please notice the difference between the  first file and the second one { the header where you have Titles navigation, and the footer where you have the auther name and the presentation title)
and when adding         
\setbeamertemplate{footline}{\insertframenumber}

you will have only the slide number and you will lose the header and the footer

i had to enclude an example with two slides just to show the difference in the behaviour

Regards


First File
/////////////////////////////////////////////////////////////////////////////////////

\documentclass{beamer}
\setbeamertemplate{navigation symbols}{}
\usepackage{beamerthemeshadow}
\useoutertheme{default}


\begin{document}
\title{Beamer Class ganz nett} 
\author{Sascha Frank}
\date{\today}

\frame{\titlepage}

\frame{\frametitle{Inhaltsverzeichnis}\tableofcontents}


\section{Abschnitt Nr.1}
\frame{\frametitle{Titel}
Die einzelnen Frames sollte einen Titel haben
}
\subsection{Unterabschnitt Nr.1.1  }
\frame{
Denn ohne Titel fehlt ihnen was
}

\section{Abschnitt Nr. 2}
\subsection{Listen I}
\frame{\frametitle{Aufz\"ahlung}
\begin{itemize}
\item Einf\"uhrungskurs in \LaTeX 
\item Kurs 2 
\item Seminararbeiten und Pr\"asentationen mit \LaTeX
\item Die Beamerclass
\end{itemize}
}
\end{document}



the second File
////////////////////////////////////////////////////////////////////////////////


\documentclass{beamer}
\setbeamertemplate{navigation symbols}{}
\usepackage{beamerthemeshadow}
\useoutertheme{default}
\setbeamertemplate{footline}{\insertframenumber}


\begin{document}
\title{Beamer Class ganz nett} 
\author{Sascha Frank}
\date{\today}

\frame{\titlepage}

\frame{\frametitle{Inhaltsverzeichnis}\tableofcontents}


\section{Abschnitt Nr.1}
\frame{\frametitle{Titel}
Die einzelnen Frames sollte einen Titel haben
}
\subsection{Unterabschnitt Nr.1.1  }
\frame{
Denn ohne Titel fehlt ihnen was
}


\section{Abschnitt Nr. 2}
\subsection{Listen I}
\frame{\frametitle{Aufz\"ahlung}
\begin{itemize}
\item Einf\"uhrungskurs in \LaTeX 
\item Kurs 2 
\item Seminararbeiten und Pr\"asentationen mit \LaTeX
\item Die Beamerclass
\end{itemize}
}
\end{document}








2008/11/13 C Hanck <chrh...@aol.com>

C Hanck

unread,
Nov 14, 2008, 4:24:30 AM11/14/08
to LaTeX Users Group
OK, you can of course insert something like

\setbeamertemplate{footline}{\hspace*{.5cm}\scriptsize{\insertauthor
\hspace*{100pt}\inserttitle\hspace*{80pt}\insertframenumber}}

in the first file, you then get the same headline, but pages and
author and header in the footline. the colours are then still
different, but I do not know about that, I prefer straight black and
white. I am sure something can be done with \setbeamercolor{footline}

best wishes

christoph
> 2008/11/13 C Hanck <chrha...@aol.com>
Reply all
Reply to author
Forward
0 new messages