Commit 0bebacd0 authored by Adrian C. Hinrichs's avatar Adrian C. Hinrichs

Fix listing-incompatibility, I think

parent a9da0124
......@@ -2,6 +2,7 @@
\RequirePackage{calc}
\RequirePackage{graphicx}
\RequirePackage{ifthen}
%%% TODO implement footer
\defbeamertemplate*{footertext}{polynom}{}
......@@ -36,14 +37,18 @@
%%%
% Frame title
%%%
\newlength\vertlinebase%
\newlength{\polyVertlinebase}
\defbeamertemplate*{frametitle}{polynom}
{%
\if\insertframesubtitle\empty\setlength{\vertlinebase}{0.75ex}\else\empty\setlength{\vertlinebase}{0pt}\fi%
\usebeamercolor{palette primary}%
\ifthenelse{\equal{\insertframesubtitle}{}}{
\setlength{\polyVertlinebase}{.75ex}
}{
\setlength{\polyVertlinebase}{.0ex}
}
%\if\insertframesubtitle\empty\def\polyVertlinebase{1ex}\else\def\polyVertlinebase{0pt}\fi%
\usebeamercolor{palette primary}%
\vskip1.5\titleheight%
\hspace{-1em}\tikz[baseline=\vertlinebase]{\draw[line width=2pt,color=bg] (0,0)--(0,1.75\titleheight);}%
\hspace{-1em}\tikz[baseline=\polyVertlinebase]{\draw[line width=2pt,color=bg] (0,0)--(0,1.75\titleheight);}%
\hbox{\hspace{24pt}\vbox{\fontsize{36pt}{0pt}\selectfont\if\insertframesubtitle\empty\empty\else\insertframesubtitle\\\fi
\fontsize{50pt}{40pt}\selectfont\insertframetitle}}%
}
......
No preview for this file type
\documentclass[fragile=singleslide]{beamer}
\documentclass[fragile]{beamer}
\usetheme{polynom}
\usefonttheme[onlymath]{serif}
\boldmath{}
\usepackage{listings}
\lstset{basicstyle=\ttfamily}
\usepackage{tgadventor}
\title{Polynom}
......@@ -18,7 +21,7 @@
\titlepage
\end{frame}
\begin{frame}{Table of Contents}
\begin{frame}[fragile]{Table of Contents}
\tableofcontents
\end{frame}
......@@ -42,13 +45,14 @@
\end{frame}
\section{Features}
\begin{frame}[fragile=singleslide]
\begin{frame}[fragile]
\framesubtitle{Clean and pleasing:}
\frametitle{Framedesign}
To use stacked headlines, you have to specify
\begin{itemize}
\item the upper line with \verb|\framesubtitle{...}|
\item the lowe (main) line with \verb|\frametitle{...}|
\item a
\item the upper line with \lstinline|\framesubtitle{...}|
\item the lowe (main) line with \lstinline|\frametitle{...}|
\end{itemize}
\end{frame}
......@@ -208,6 +212,16 @@
\bannerpageinvert{inverted banner page!}
\section{Sourcecode-Listings}
\begin{frame}[fragile]{Lisitngs}
\begin{lstlisting}[language=Python]
def speed(swallow):
if swallow is african:
return 42
if swalllow is european:
return 24
\end{lstlisting}
\end{frame}
\section{Postamble}
\begin{frame}{Development}
......
\documentclass[fragile=singleslide]{beamer}
\usepackage{fontspec}
\setromanfont{Latin Modern Roman}
%\setmainfont{Product Sans}
%\setsansfont{Product Sans}
\setsansfont{TeX Gyre Adventor}
\setmonofont{Fira Mono}
\usetheme{polynom}
\usecolortheme{polynomsecondgrade}
\usefonttheme[onlymath]{serif}
\boldmath{}
\usepackage{listings}
\lstset{basicstyle=\ttfamily}
\usepackage{tgadventor}
\title{Polynom}
\subtitle{A modern, clean 16:9 beamer template}
\author{Alexander Bartolomey, Adrian C. Hinrichs}
\date{\today}
\begin{document}
\begin{frame}[fragile]
\texttt{Test}
\begin{lstlisting}
Test
\end{lstlisting}
\end{frame}
\end{document}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment