LaTeX-Beamer

Im folgenden Codeblock ist eine Theme Vorlage für LaTeX-Beamer. Falls man die Vorlage nicht direkt aus dem Codeblock kopieren kann (Inyoka "frisst" evtl. ein paar Zeichen), den Code aus dem Rohformat holen (oben den Reiter "Versionen" auswählen, dann das Notizbuch-Symbol).

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
% Copyright 2008 by Adrian Böhmichen
%
% This file is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% This file is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this file.  If not, see <http://www.gnu.org/licenses/>.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%     Ubuntuusers Vorlage für ein LaTeX-Beamer Theme            %
%                                                               %
% Für das Korrekte funktionieren benötigt man einen header.png  %
% und ein logo.png Datei!                                       %
% Zusätzlich muss man folgende Pakete benutzten:                %
%   \usepackage{graphicx}                                       %
%   \usepackage[percent]{overpic}                               %
%                                                               %
% Danach muss nur noch am Anfang die Datei                      %
% mit \input{} eingebunden werden.                              %
%                                                               %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%weitere Farbe spezifizieren:
%Farben von dem Humantheme
\definecolor{Orange}{RGB}{240,165,19}
\definecolor{Human-Base}{RGB}{129,102,71}
%Farben aus dem Inyokatheme
\definecolor{uuheader1}{RGB}{164,143,101}
\definecolor{uuheader2}{RGB}{129,106,59}


%Theme festlegen für alle Templates die nicht selbstständig definiert werden:
\usepackage{beamerthemedefault}


%Definieren des Innertheme, zuständig für die Symbole bei Listen
\setbeamertemplate{sections/subsections in toc}[square]
\setbeamertemplate{items}[circle]

\setbeamercolor{item}{fg=Human-Base}

%entfernen der Navigationsleiste
\beamertemplatenavigationsymbolsempty

%Logo definieren, man kann die Lage nicht verändern
\logo{\includegraphics[scale=0.1]{logo.png}}


%Kopf- und Fußzeile definieren
\setbeamertemplate{headline}
{%
\begin{overpic}[width=\paperwidth
% nächste Zeile dient zum anzeigen eines Rasters, für das paltzieren des ToC hilfreich
%,grid,tics=10
]
{header.png}%
  \put(0,11){\insertsectionnavigationhorizontal{\paperwidth}{~}{~}}%
\end{overpic}
}

\setbeamertemplate{footline}[text line]
{%
\begin{minipage}[b]{116mm}
\insertauthor \hfill%
%neue Navigationsleiste
\insertsectionnavigationsymbol  \insertslidenavigationsymbol \quad \insertframenumber ~/ \inserttotalframenumber\\[1ex]
\end{minipage}
}

% Farben festlegen ausserhalb des innertheme

%Allgemeine Angaben und Verbesserung vom default Theme
\setbeamercolor{structure}{fg=uuheader1}
\setbeamercolor{section in toc}{fg=Human-Base}
\setbeamercolor{subsection in toc}{parent=section in toc}
\setbeamercolor{framesubtitle}{fg=uuheader2}


%Farbe und Form der Blöcke definieren
\setbeamertemplate{blocks}[rounded]
\setbeamercolor{block title}{fg=uuheader1,bg=Orange}
\setbeamercolor{block title alerted}{use=alerted text,fg=black,bg=alerted text.fg!75!bg}
\setbeamercolor{block title example}{use=example text,fg=black,bg=example text.fg!75!bg}

\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!25!bg}
\setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.bg!25!bg}
\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg!25!bg}

%Für den Titleframe
\setbeamertemplate{title page}[default][rounded=true]
\setbeamercolor{title}{fg=uuheader2,bg=Orange}

Diese Vorlage dient in erster Line für Vorträge vom ubuntuusers Team und zum anderen zeigt sie wie man am besten ein eigenes Theme für die Beamerklasse kreieren kann.

Eine .tex Datei kann z.B. wiefolgt aussehen:

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
\documentclass[12pt,utf8]{beamer}

% Gute Einführung zu LaTeX-Beamer: http://www2.informatik.hu-berlin.de/~mischulz/beamer.html

% Dummy Text
\usepackage{lipsum}

%Wichtige Standard Pakete!
\usepackage[ngerman]{babel}
\usepackage{xcolor}
\usepackage{graphicx}

%Für den Header notwendig!
\usepackage[percent]{overpic}


%Einbinden des Themes
\input{Theme/ubuntuuserstheme.tex}

%Standard Angaben
\author{Max Mustermann}
\title{Foobar}
\date{\today}

\begin{document}

\begin{frame}

\titlepage
\end{frame}

\begin{frame}
	\frametitle{Inhaltsverzeichnis}
	\tableofcontents
\end{frame}

\section{foo1}
\subsection{foo11}

\begin{frame}[allowframebreaks,allowdisplaybreaks]{Lorem ipsum}
\centering{\lipsum}
\end{frame}

\section{foo2}
\begin{frame}{Listen}
\framesubtitle{Listentest1}
\begin{itemize}
\item foo
\item foo
\begin{itemize}
\item foo
\item foo
\end{itemize}
\item foo
\end{itemize}
\end{frame}

\section{foo3}
\begin{frame}{Listen}
\framesubtitle{Listentest2}
\begin{enumerate}
\item foo
\item foo
\item foo
\begin{enumerate}
\item foo
\item foo
\end{enumerate}
\item foo
\end{enumerate}
\end{frame}

\section{foo4}
\begin{frame}[allowframebreaks,allowdisplaybreaks]{Blöcke}
\begin{block}{Blocktitel}
        \lipsum[23]
\end{block}

\begin{exampleblock}{Beispielblocktitel}
        \lipsum[23]
\end{exampleblock}

\begin{alertblock}{Warnungsblocktitel}
        \lipsum[23]
\end{alertblock}

\end{frame}
\section{foo5}
\begin{frame}[allowframebreaks,allowdisplaybreaks]{Theoreme, Lemmata und Beweise}
\begin{proof}
        Beweis
\end{proof}

\begin{definition}
        Definition
\end{definition}

\begin{lemma}[Hilfssatz]
        Lemma
\end{lemma}

\begin{theorem}[Lehrsatz]
        Theorem
\end{theorem}

\end{frame}


\section{foo6}
\begin{frame}
\vfill
\begin{center}\begin{Huge}Vielen Dank \\[10pt]
für ihre Aufmerksamkeit.\end{Huge}\vfill
\end{center}
\vfill
\end{frame}

\end{document}

Diese Revision wurde am 19. November 2011 um 01:49 Uhr von aasche erstellt.
Dieser Seite wurden folgende Begriffe zugeordnet: ubuntuusers, latex

Passwort vergessen?