Im folgenden Codeblock findet sich eine Vorlage für [:LaTeX#Beamer: LaTeX-Beamer], die zwei externe Grafiken benötigt: [http://static.cdn.ubuntu-de.org/img/head.jpg header.jpg] und [http://static.cdn.ubuntu-de.org/img/logo.png logo.png]. Diese Vorlage dient in erster Linie für Vorträge des ubuntuusers-Teams. Daneben zeigt sie, wie man ein eigenes Thema für die Beamerklasse kreieren kann. {{{#!code tex % 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 . %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Ubuntuusers Vorlage für ein LaTeX-Beamer Theme % % % % Für das Korrekte funktionieren benötigt man einen header.jpg % % 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.jpg}% \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} }}} Eine '''.tex'''-Datei könnte z.B. wie folgt aussehen: {{{#!code tex \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} }}} # tag: ubuntuusers, latex