PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Nummerierung der Kapitel bei \tableofcontents mit der Beamer-Klasse



gentlesea
28-01-2009, 09:49
Guten Morgen allerseits,

ich habe eine Präsentation mit der Beamer-Klasse erstellt, die jetzt den Feinschliff bekommen soll. Dabei ist folgendes aufgefallen. \tableofcontents macht mir das Inhaltsverzeichnis anhand der section und subsection Einträge. Das ist gut. Leider nummeriert es dabei falsch. Bei jeder section wird ab 1 gezählt, d.h. alle sections haben eine 1 und die subsections gar keine Nummerierung. Ich habe schon mehrere Themes ausprobiert. Ohne Erfolg. Weiss jemand Rat?

gentlesea
28-01-2009, 10:19
Ein Workaround ist die Verwendung eines anderen Themes. \usetheme{Marburg} bietet sich z.B. dafür an. Eine Lösung ist dies aber sicherlich nicht.

Hobbes
28-01-2009, 10:24
Mach mal ein Minimalbeispiel, das dein Problem darstellt.

mechanicus
28-01-2009, 10:33
Hallo,

was hast du denn genau angegeben. Eigentlich gibt es gar keine Nummerierung.


\documentclass[ngerman,envcountsect]{beamer}
\mode<presentation>
\usepackage{babel}
\usepackage[latin1]{inputenc}
%\usetheme{Marburg}
\usetheme{Dresden}

\begin{document}
\begin{frame}
\tableofcontents
\end{frame}

\section{eins}
\subsection{eins foo}
\begin{frame}
Test
\end{frame}

\section{zwei}
\subsection{zwei foo}
\begin{frame}
Test
\end{frame}

\section{drei}
\subsection{drei foo}
\begin{frame}
Test
\end{frame}
\end{document}

Du musst also thesection irgendwie mit einbauen. Oder wird sonst bei dir irgendwo die Nummer angezeigt.

Gruß
Marco

gentlesea
28-01-2009, 11:52
\documentclass{beamer}
\def\newblock{\hskip .11em plus .33em minus .07em}

\usepackage[ansinew]{inputenc} % sorgt für die richtige Darstellung des ß
\usepackage[ngerman]{babel}
\usepackage{float}
\usepackage[T1]{fontenc}
\usepackage{subfigure}
\usepackage{natbib}

\usetheme{Berkeley} % macht die Probleme mit der Nummerierung
% \usetheme{Marburg} % versteckt die Nummerierung

\title{Minimalbeispiel}

\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Titelblatt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\frame{\titlepage}

\frame{\tableofcontents}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Mein erstes Kapitel
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{section}{Mein erstes Kapitel}

\begin{subsection}{Mein erstes Unterkapitel}

\frame
{
\frametitle{Ein Frametitel}
\framesubtitle{Ein Frameuntertitel}
}

\end{subsection}

\begin{subsection}{Mein zweites Unterkapitel}
\frame
{
\frametitle{Ein Frametitel}
\framesubtitle{Ein Frameuntertitel}
}
\end{subsection}

\end{section}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Mein zweites Kapitel
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{section}{Mein zweites Kapitel}

\begin{subsection}{Mein erstes Unterkapitel}

\frame
{
\frametitle{Ein Frametitel}
\framesubtitle{Ein Frameuntertitel}
}

\end{subsection}

\begin{subsection}{Mein zweites Unterkapitel}
\frame
{
\frametitle{Ein Frametitel}
\framesubtitle{Ein Frameuntertitel}
}
\end{subsection}

\end{section}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Literatur
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\frame
{
\frametitle{Literaturverzeichnis}
\bibliographystyle{natdin}
\bibliography{presentation}
}

\end{document}

ergibt mir folgendes PDF nach zweimaligem Kompilieren:

mechanicus
28-01-2009, 12:10
Hallo,

\begin{section} wird nicht mehr genutzt.


\documentclass[sectionstyle=show]{beamer}
\def\newblock{\hskip .11em plus .33em minus .07em}

\usepackage[ansinew]{inputenc} % sorgt für die richtige Darstellung des ß
\usepackage[ngerman]{babel}
\usepackage{float}
\usepackage[T1]{fontenc}
\usepackage{subfigure}
\usepackage{natbib}

%\usetheme{Berkeley} % macht die Probleme mit der Nummerierung
\usetheme{Marburg} % versteckt die Nummerierung
\setbeamertemplate{sections/subsections in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]
\title{Minimalbeispiel}

\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Titelblatt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\frame{\titlepage}

\frame{\tableofcontents}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Mein erstes Kapitel
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{Mein erstes Kapitel}

\begin{subsection}{Mein erstes Unterkapitel}

\frame
{
\frametitle{Ein Frametitel}
\framesubtitle{Ein Frameuntertitel}
}

\end{subsection}

\begin{subsection}{Mein zweites Unterkapitel}
\frame
{
\frametitle{Ein Frametitel}
\framesubtitle{Ein Frameuntertitel}
}
\end{subsection}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Mein zweites Kapitel
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{Mein zweites Kapitel}

\begin{subsection}{Mein erstes Unterkapitel}

\frame
{
\frametitle{Ein Frametitel}
\framesubtitle{Ein Frameuntertitel}
}

\end{subsection}

\begin{subsection}{Mein zweites Unterkapitel}
\frame
{
\frametitle{Ein Frametitel}
\framesubtitle{Ein Frameuntertitel}
}
\end{subsection}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Literatur
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\frame
{
\frametitle{Literaturverzeichnis}
\bibliographystyle{natdin}
\bibliography{presentation}
}

\end{document}

Gruß
Marco

gentlesea
28-01-2009, 13:39
Das war die Lösung. Vielen Dank. Unverständlich, diese nicht vorhandene Abwärtskompatibilität.