small fixes in docu

This commit is contained in:
Meik Hellmund 2021-09-15 15:26:51 +02:00
parent 2480618b0c
commit a0b89c43e7
5 changed files with 26 additions and 235 deletions

View File

@ -3,3 +3,21 @@ A beamer theme that conforms to the corporate design of the University of Leipzi
Originally created by Lukas Gienapp at https://github.com/lgienapp/leipzig-theme
## Documentation
* read `example.pdf` and its source `example.tex`
## Installation
* sorry, no install script
* download the repository (small downward arrow in the upper right corner of the file table above)
* quick&dirty: copy the files `beamerthemeleipzig.sty`, `logo.pdf` and `ul-wordmark.pdf` into your working directory
## Changes
* forked from Lukas
* font and font handling changed for `pdflatex` compatibility
* `ul-wordmark` added
* small changes in documentatio/example tex file

Binary file not shown.

View File

@ -1,14 +1,15 @@
\documentclass[serifmath,aspectratio=169]{beamer}
\documentclass[aspectratio=169]{beamer}
%\documentclass[aspectratio=169,serifmath]{beamer}
\usetheme{leipzig}
\usepackage{booktabs}
\newcommand{\themename}{\textbf{leipzig}~}
\title[Leipzig]{Leipzig}
\subtitle[Beamer Theme]{Beamer theme}
\author{Author}
\author{Author A}
\institute{Institute of Mathematics}
\date{\today}
\titlegraphic{}
@ -31,7 +32,7 @@
\section{Introduction}
\begin{frame}[fragile]{Leipzig}
The \themename theme is a Beamer theme that complies with the corporate design of the Leipzig University.
The \textbf{Leipzig} theme is a Beamer theme that complies with the corporate design of the Leipzig University.
Enable the theme by loading
\begin{verbatim}
@ -199,7 +200,7 @@ You can \emph{emphasize} text, \alert{accent} parts or show \textbf{bold} result
\begin{frame}{Math}
\begin{equation*}
\frac{1}{\sigma\sqrt{2\pi}}\exp\biggl(\frac{-x^2}{2\sigma^2}\biggr)
f(x) = \frac{1}{\sigma\sqrt{2\pi}}\exp\biggl(-\frac{x^2}{2\sigma^2}\biggr)
\end{equation*}
\end{frame}
@ -212,6 +213,7 @@ To split your bibliography into multiple frames, use the \verb+[allowframebreaks
\section{References}
\begin{frame}[allowframebreaks]
\small
\bibliographystyle{plain}
\bibliography{bibliography.bib}
\end{frame}
@ -220,7 +222,7 @@ To split your bibliography into multiple frames, use the \verb+[allowframebreaks
\begin{frame}{Appendix}
Things that differ in the \LaTeX~ version compared to the original \texttt{.pptx} style:
\begin{itemize}
\item the footer does not include the university wordmark, as a vector-based graphic file of such is not obtainable from the university
\item we use the free FiraSans font as a nice, modern, screen optimized, sans~serif~font
\item the frame titles are not converted to uppercase, as this introduces a bug with the \texttt{[allowframebreaks]} option
\end{itemize}
\end{frame}

Binary file not shown.

229
main.tex
View File

@ -1,229 +0,0 @@
\documentclass[noserifmath,aspectratio=169]{beamer}
\usetheme{leipzig}
\usepackage{booktabs}
\newcommand{\themename}{\textbf{leipzig}~}
\title[Leipzig]{Leipzig}
\subtitle[Beamer Theme]{Beamer theme}
\author{Author}
\institute{Institute}
\date{\today}
\titlegraphic{}
\location{Leipzig}
\thankstitle{Thank You!}
\address{Beethovenstraße 15, 04107 Leipzig}
\email{example@uni-leipzig.de}
\phone{+49 1234 5678910}
%\website{}
\begin{document}
\maketitle
\begin{frame}{Table of contents}
\setbeamertemplate{section in toc}[sections numbered]
\tableofcontents[hideallsubsections]
\end{frame}
\section{Introduction}
\begin{frame}[fragile]{Leipzig}
The \themename theme is a Beamer theme that complies with the corporate design of the Leipzig University.
Enable the theme by loading
\begin{verbatim}
\documentclass{beamer}
\usetheme{leipzig}
\end{verbatim}
Note that this package only works with XeTeX/XeLaTeX, as it depends on \texttt{fontspec}.
\end{frame}
\section{Elements}
\begin{frame}[fragile]{Package Options}
\begin{description}
\item[\texttt{noserifmath}] displays math using Arial
\item[\texttt{nosectionpages}] hides section pages.
\item[\texttt{aspectratio=169}] to enable 16:9 aspect ratio (default is 4:3)
\end{description}
\end{frame}
\begin{frame}[fragile]{Title Page Macros}
The usual title page macros such as author, date, title and subtitle are supported.
Additional options include:
\begin{itemize}
\item short title for use in the header: \verb+\title[short title]{long title}+ (analogous for subtitle)
\item institution for use in the footer: \\ \verb+\institute{institution}+
\item additional graphics on the title page: \\ \verb+\titlegraphic{filename}+
\item location of the talk: \verb+\location{location}+
\end{itemize}
\end{frame}
\begin{frame}[fragile]{Thanks Page Macros}
A ``Thank You!''-Page can be displayed using \verb+\makethanks+. The displayed information can be specified using:
\begin{itemize}
\item \verb+\thankstitle{}+ for a customized thank-you text, default is ``Vielen Dank''
\item \verb+\address{}+
\item \verb+\email{}+
\item \verb+\phone{}+
\item \verb+\website{}+ - default is \texttt{www.uni-leipzig.de}, leave empty to disable
\end{itemize}
\end{frame}
\begin{frame}[fragile]{Typography}
\begin{verbatim}
You can \emph{emphasize} text, \alert{accent}
parts or show \textbf{bold} results.
\end{verbatim}
\begin{center}becomes\end{center}
You can \emph{emphasize} text, \alert{accent} parts or show \textbf{bold} results.\footnote{Footnotes work as well.}
\end{frame}
\begin{frame}{Font features}
\begin{itemize}
\item Regular
\item \textit{Italic}
\item \textbf{Bold}
\item \textbf{\textit{Bold Italic}}
\item \texttt{Monospace}
\item \texttt{\textit{Monospace Italic}}
\item \texttt{\textbf{Monospace Bold}}
\item \texttt{\textbf{\textit{Monospace Bold Italic}}}
\end{itemize}
\end{frame}
\begin{frame}{Lists}
\begin{columns}[T,onlytextwidth]
\column{0.33\textwidth}
Items
\begin{itemize}
\item Item \item Item \item Item
\end{itemize}
\column{0.33\textwidth}
Enumerations
\begin{enumerate}
\item First \item Second \item Last
\end{enumerate}
\column{0.33\textwidth}
Descriptions
\begin{description}
\item[Caption] Text
\item[Caption] Text
\item[Caption] Text
\end{description}
\end{columns}
\end{frame}
\begin{frame}{Figures}
\begin{figure}
\begin{tikzpicture}[scale=1]
\colorlet{col1}{alerted text.fg!80}
\colorlet{col2}{alerted text.fg!60}
\colorlet{col3}{alerted text.fg!40}
\colorlet{col4}{alerted text.fg!20}
\draw [help lines] (-4.25,-1.25) grid (4.25,1.5);
\draw [help lines,step=0.25cm] (-2.99,0) grid (2.99,0.99);
\begin{scope}[smooth,draw=gray!20,y=0.3989422804cm]
\filldraw [fill=col3] plot[id=f1,domain=-3:-2] function {exp(-x*x/2)}
-- (-2,0) -- (-3,0) -- cycle;
\filldraw [fill=col2] plot[id=f2,domain=-2:-1] function {exp(-x*x/2)}
-- (-1,0) -- (-2,0) -- cycle;
\filldraw [fill=col1] plot[id=f3,domain=-1:0] function {exp(-x*x/2)}
-- (0,0) -- (-1,0) -- cycle;
\filldraw [fill=col1] plot[id=f4,domain=0:1] function {exp(-x*x/2)}
-- (1,0) -- (0,0) -- cycle;
\filldraw [fill=col2] plot[id=f5,domain=1:2] function {exp(-x*x/2)}
-- (2,0) -- (1,0) -- cycle;
\filldraw [fill=col3] plot[id=f6,domain=2:3] function {exp(-x*x/2)}
-- (3,0) -- (2,0) -- cycle;
\draw[black] plot[id=f7,domain=-4.25:4.25,samples=100]
function {exp(-x*x/2)};
\end{scope}
\draw[->] (-4.25,0) -- (4.25,0) node [right] {$x$};
\foreach \pos/\label in {-3/$-3\sigma$,-2/$-2\sigma$,-1/$-\sigma$,
1/$\sigma$,2/$2\sigma$,3/$3\sigma$}
\draw (\pos,0) -- (\pos,-0.1) (\pos cm,-3ex) node
[anchor=base,fill=white,inner sep=1pt] {\label};
\draw (-0.1,1) -- (.1,1) node [right,fill=white,inner sep=1pt] {$\sigma$};
\foreach \pos/\percent/\height in {1/34/0.5,2/14/0.25,3/2/0.125,4/0.1/0.1}
{
\node[text=col\pos,anchor=base,yshift=2pt,xshift=-0.625cm,
inner sep=1pt] at (\pos,\height) {$\percent\%$};
\node[text=col\pos,anchor=base,yshift=2pt,xshift=.625cm,
inner sep=1pt] at (-\pos,\height) {$\percent\%$};
}
\end{tikzpicture}
\caption{Standard deviation from \href{http://texample.net/tikz/examples/standard-deviation/}{texample.net}.}
\end{figure}
\end{frame}
\begin{frame}{Tables}
\begin{table}
\caption{Largest cities in the world (source: Wikipedia)}
\begin{tabular}{@{} lr @{}}
\toprule
City & Population\\
\midrule
Mexico City & 20,116,842\\
Shanghai & 19,210,000\\
Peking & 15,796,450\\
Istanbul & 14,160,467\\
\bottomrule
\end{tabular}
\end{table}
\end{frame}
\begin{frame}{Blocks}
Three different block environments are pre-defined.
\begin{block}{Default}
Block content.
\end{block}
\begin{alertblock}{Alert}
Block content.
\end{alertblock}
\begin{exampleblock}{Example}
Block content.
\end{exampleblock}
\end{frame}
\begin{frame}{Math}
\begin{equation*}
\frac{1}{\sigma\sqrt{2\pi}}\exp\biggl(\frac{-x^2}{2\sigma^2}\biggr)
\end{equation*}
\end{frame}
\begin{frame}[fragile]{Citations}
For a general introduction to creating slides with Beamer, refer to the Beamer manual.\cite{BeamerManual}
To split your bibliography into multiple frames, use the \verb+[allowframebreaks]+ option.
\end{frame}
\makethanks
\section{References}
\begin{frame}[allowframebreaks]
\bibliographystyle{plain}
\bibliography{bibliography.bib}
\end{frame}
\section{Appendix}
\begin{frame}{Appendix}
Things that differ in the \LaTeX~ version compared to the original \texttt{.pptx} style:
\begin{itemize}
\item the footer does not include the university wordmark, as a vector-based graphic file of such is not obtainable from the university
\item the frame titles are not converted to uppercase, as this introduces a bug with the \texttt{[allowframebreaks]} option
\end{itemize}
\end{frame}
\end{document}