Commit 4ecc7694 authored by Adrian C. Hinrichs's avatar Adrian C. Hinrichs

Merge branch 'dev-projektion' into 'master'

[poly] Remove Listings-incompatibility

See merge request !26
parents 61486798 06119a48
\mode<presentation>
\definecolor{polynom-blue}{RGB}{41 98 255}
\definecolor{polynom-red}{RGB} {255 62 25}
\definecolor{polynom-green}{RGB} {143 204 20}
\definecolor{polynom-space-grey}{RGB}{21 21 21}
\definecolor{polynom-white}{RGB}{255 255 255}
\definecolor{polynom-blue-dark}{RGB}{0 39 148}
......
......@@ -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}}%
}
......
......@@ -2,7 +2,7 @@
% Based uppon a PowerPoint-Template by Alexander Bartolomey
%
% Author: Adrian C. Hinrichs & Alexander Bartolomey
% Version: 2018-11-06
% Version: 2019-05-01
\mode<presentation>
......
No preview for this file type
\documentclass[fragile=singleslide]{beamer}
\documentclass[fragile]{beamer}
\usetheme{polynom}
\usefonttheme[onlymath]{serif}
\boldmath{}
\usepackage{listings}
\usepackage[scaled=0.85]{FiraMono}
\lstset{basicstyle=\color{fg}\ttfamily,
keywordstyle=\color{polynom-blue}\bfseries,
commentstyle=\color{polynom-green},
stringstyle=\color{polynom-red}
}
\usepackage{tgadventor}
\title{Polynom}
......@@ -18,7 +27,7 @@
\titlepage
\end{frame}
\begin{frame}{Table of Contents}
\begin{frame}[fragile]{Table of Contents}
\tableofcontents
\end{frame}
......@@ -42,13 +51,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 +218,22 @@
\bannerpageinvert{inverted banner page!}
\section{Sourcecode-Listings}
\begin{frame}[fragile]{Example Listing}
\begin{lstlisting}[language=Python]
# This method Answers an important question
def speed(swallow):
if swallow == "african":
return 42
if swalllow == "european":
return 24
\end{lstlisting}
\end{frame}
\setbeamertemplate{empty page inver}[polynom]{}
\begin{frame}{How?}
Make the frame \lstinline{fragile}!
\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}
\begin{document}
\begin{frame}[fragile]{Listing}
\texttt{Test}
\begin{lstlisting}
There is some Text,
inside of a lstlisting
\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