diff --git a/ppexample.tex b/ppexample.tex new file mode 100644 index 0000000..69c52d1 --- /dev/null +++ b/ppexample.tex @@ -0,0 +1,97 @@ +\documentclass[]{psipresentation} + +\usepackage{ragged2e} +\usepackage{blindtext} + + +\author{Author} +\function{Function} +\institute{Paul Scherrer Institut} +\title{Insert the title of your presentation here} +\date{Insert the occasion and date of your presentation here} + + +\begin{document} + +\maketitle + +\begin{frame}[t]{Design Requirements for Your Presentation} +\justifying + +The PSI has a new layout for PowerPoint presentations. Please use this template for new presentations. The PSI has a new layout for PowerPoint presentations. Please use this template for new presentations. The PSI has a new layout for PowerPoint presentations. Please use this template for new presentations. The PSI has a new layout for PowerPoint presentations. Please use this template for new presentations. + +~\\ + +\blindmathtrue +\blindtext + +\end{frame} + +\newcommand{\colortest}[1]{\textcolor{#1}{$\blacksquare$ #1}\\} + +\begin{frame}{PSI Colors} +\colortest{light} +\colortest{dark} +\colortest{grey} +\colortest{yellow} +\colortest{orange} +\colortest{darkorange} +\colortest{red} +\colortest{brown} +\colortest{vbrown} +\colortest{vgreen} +\colortest{green} +\colortest{darkgreen} +\colortest{violet} +\colortest{blue} +\colortest{cold1} +\colortest{cold2} +\colortest{cold3} +\end{frame} + +\begin{frame}{lists} +\begin{columns}[onlytextwidth] +\begin{column}{0.5\textwidth} +\begin{itemize} +\item test +\begin{itemize} +\item test +\begin{itemize} +\item test +\item test +\end{itemize} +\item test +\end{itemize} +\item test +\end{itemize} +\end{column} + +\begin{column}{0.5\textwidth} +\begin{enumerate} +\item test +\begin{enumerate} +\item test +\begin{enumerate} +\item test +\item test +\end{enumerate} +\item test +\end{enumerate} +\item test +\end{enumerate} +\end{column} +\end{columns} +\end{frame} + + +\begin{frame}{test} +\begin{block}{Some bla bla} +bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla +\end{block} +\begin{alertblock}{Some important bla bla} +bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla +\end{alertblock} +\end{frame} +\end{document} + + diff --git a/psipresentation.cls b/psipresentation.cls new file mode 100644 index 0000000..9d81ee5 --- /dev/null +++ b/psipresentation.cls @@ -0,0 +1,238 @@ +%% psipresentation.cls +\ProvidesClass{psipresentation}[2020/05/21 Unofficial PSI Presentation Class by Sven Augustin] +\NeedsTeXFormat{LaTeX2e} + +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{beamer}} +\ProcessOptions\relax + +\LoadClass[final, 9pt]{beamer} % t: align columns to top +\beamertemplatenavigationsymbolsempty + + +\setbeamersize{ + text margin left=0.111\paperwidth, + text margin right=0.05\paperwidth +} + + +\RequirePackage{polyglossia} +\setmainlanguage{english} + +\RequirePackage{microtype} +\RequirePackage{fontspec} +%\RequirePackage{unicode-math} + + +\setmainfont[Path = psipresentation/fonts/Georgia/, +BoldFont = Georgia Bold.ttf, +ItalicFont = Georgia Italic.ttf, +BoldItalicFont = Georgia Bold Italic.ttf +]{Georgia.ttf} + +\setsansfont[Path = psipresentation/fonts/Meta/, +BoldFont = MetaPro-Bold.otf, +ItalicFont = MetaPro-NormalItalic.otf, +BoldItalicFont = MetaPro-BoldItalic.otf +]{MetaPro-Normal.otf} + + +\RequirePackage{tikz} + +\input{psipresentation/psicolors} + + +\colorlet{boxlightgrey}{light} +\colorlet{boxdarkgrey}{dark} + +\definecolor{overlayfontgrey}{cmyk}{0, 0, 0, 0.9} +\definecolor{authorfontgrey}{cmyk}{0, 0, 0, 0.4} +\definecolor{titlefontgrey}{cmyk}{0, 0, 0, 0.7} +\definecolor{datefontgrey}{cmyk}{0, 0, 0, 0.4} + + +\definecolor{blocktitlefontgrey}{cmyk}{0, 0, 0, 0.4} +\definecolor{blockbodyfontgrey}{cmyk}{0, 0, 0, 0.7} + + +% set colors for blocks +\setbeamercolor{block title}{fg=blocktitlefontgrey, bg=white} +\setbeamercolor{block body}{fg=blockbodyfontgrey, bg=white} + +% set the fonts +\setbeamerfont{block title}{series=\bfseries} + +\setbeamercolor{block alerted title}{fg=blocktitlefontgrey, bg=green!75} +\setbeamercolor{block alerted body}{fg=blockbodyfontgrey, bg=white} + + +\setbeamercolor{itemize item}{fg=green} +\setbeamercolor{itemize subitem}{fg=green!80} +\setbeamercolor{itemize subsubitem}{fg=green!60} + +\setbeamercolor{enumerate item}{fg=green!80!black} +\setbeamercolor{enumerate subitem}{fg=green!80!black!80} +\setbeamercolor{enumerate subsubitem}{fg=green!80!black!60} + + +\newlength{\inboxwd} +\newlength{\iinboxwd} +\newlength{\inboxrule} + + +\setlength{\iinboxwd}{\inboxwd} +\setlength{\inboxrule}{\inboxwd} +\addtolength{\iinboxwd}{-0.5cm} +\addtolength{\inboxrule}{0.5cm} + + +% Alert block definition (with frame) +\setbeamertemplate{block alerted begin} +{ + \par\vskip\medskipamount + \begin{beamercolorbox}[sep=0ex,rounded=true,center,dp={2ex}]{block alerted title} + \vskip0.01cm + \usebeamerfont{block title}\large\insertblocktitle + \end{beamercolorbox} + {\parskip0pt\par} + \usebeamerfont{block body} + \vskip-0.8cm + \begin{beamercolorbox}[sep=0.5cm, rounded=true,center]{block alerted title} + \setlength{\inboxwd}{\linewidth} + \addtolength{\inboxwd}{-1cm} + \begin{beamercolorbox}[rounded=true,wd={\inboxwd},center]{block alerted body} + \setlength{\iinboxwd}{\inboxwd} + \setlength{\inboxrule}{\inboxwd} + \addtolength{\iinboxwd}{-0.5cm} + \addtolength{\inboxrule}{0.5cm} + \begin{center} + \begin{minipage}{\iinboxwd} +% \justifying +} + +\setbeamertemplate{block alerted end} +{ + \end{minipage} + \end{center} + \end{beamercolorbox} + \end{beamercolorbox} + \vskip\smallskipamount +} + + + +% title page + +\newcommand\function[1]{\def\insertfunction{#1}} +\function{} + + +\defbeamertemplate*{title page}{customized}[1][] +{ + \newcommand{\titlewhitemargin}{0.043} + \newcommand{\titleboxheight}{0.49} + \newcommand{\titleleftboxwidth}{0.279} + \newcommand{\titlerightboxwidth}{0.078} + \newcommand{\titlephotocenterpos}{0.6005}% 0.279 + (1-0.279-0.078)/2 = 0.6005 + \newcommand{\titletextleftedge}{0.092} + + \newcommand{\titlelogowidth}{0.133} + \newcommand{\titlelogoupperedge}{0.855} + \newcommand{\titletextspace}{0.85} + + \newcommand{\titlesmallboxsidelength}{0.078} + + \begin{tikzpicture}[overlay, remember picture, shift={(current page.south west)}] % use the whole page +% \draw (0, 0) -- (\paperwidth, \paperheight); +% \draw (0, \paperheight) -- (\paperwidth, 0); + + \begin{scope}[shift={(0, -\titlewhitemargin\paperheight)}] % upper white margin + + \fill[boxlightgrey] (0, \paperheight) rectangle ++(\titleleftboxwidth\paperwidth, -\titleboxheight\paperheight); % left grey box + + \node[inner sep=0pt, anchor=north] (psi-photo) at (\titlephotocenterpos\paperwidth, \paperheight) { + \includegraphics[height=\titleboxheight\paperheight]{psipresentation/imgs/psi-photo-large-cropped.jpg} + }; + + \fill[boxlightgrey] (\paperwidth, \paperheight) rectangle ++(-\titlerightboxwidth\paperwidth, -\titleboxheight\paperheight); % right grey box + \end{scope} + + + \node[fill=white, fill opacity=0.75, inner sep=2.25pt, anchor=south east] (overlay) at ([xshift=0.1pt,yshift=-0.1pt]psi-photo.south east) { % tiny shifts to make sure corner is covered + \textcolor{overlayfontgrey}{\textbf{\fontsize{5.75}{0}\selectfont + \,WIR SCHAFFEN WISSEN – HEUTE FÜR MORGEN\, + }}}; % overlay box + + + \node[inner sep=0pt, anchor=south west] (psi-logo) at (\titletextleftedge\paperwidth, \titlelogoupperedge\paperheight) { + \includegraphics[width=\titlelogowidth\paperwidth]{psipresentation/imgs/psilogo} + }; + + + \node[inner sep=0pt] (titletext1) at (\titletextleftedge\paperwidth, 3.5) { + \rlap{\footnotesize\textbf{\textcolor{authorfontgrey}{% + \parbox[t]{\titletextspace\paperwidth}{% + \insertauthor{}~~::~~\insertfunction{}~~::~~\insertinstitute{}% + } + }}}}; + + \node[inner sep=0pt] (titletext2) at (\titletextleftedge\paperwidth, 2.5) { + \rlap{\Large\textrm{\textcolor{titlefontgrey}{% + \parbox[t]{\titletextspace\paperwidth}{% + \inserttitle% + } + }}}}; + + \node[inner sep=0pt] (titletext3) at (\titletextleftedge\paperwidth, 1.5) { + \rlap{\footnotesize\textbf{\textcolor{datefontgrey}{ + \parbox[t]{\titletextspace\paperwidth}{% + \insertdate + } + }}}}; + + + \fill[boxdarkgrey] (\titletextleftedge\paperwidth, 0) rectangle ++(\titlesmallboxsidelength\paperwidth, \titlesmallboxsidelength\paperwidth); % small bottom box + + \end{tikzpicture} +} + + + +% frame + +\setbeamertemplate{frametitle} +{ + \newcommand{\titlelogowidth}{0.111} + \newcommand{\titlelogoupperedge}{0.96} % 1 - 0.04 + \newcommand{\titlelogoleftedge}{0.092} + + \newcommand{\titleframetitleupperedge}{0.95} % 1 - 0.05 + \newcommand{\titleframetitleleftedge}{0.23} + + \newcommand{\titleframetitlespace}{0.73} + + \newcommand{\titlesmallboxsidelength}{0.078} + + \begin{tikzpicture}[overlay, remember picture, shift={(current page.south west)}] % use the whole page +% \draw (0, 0) -- (\paperwidth, \paperheight); +% \draw (0, \paperheight) -- (\paperwidth, 0); + + \node[inner sep=0pt, anchor=north west] (psi-logo) at (\titlelogoleftedge\paperwidth, \titlelogoupperedge\paperheight) { + \includegraphics[width=\titlelogowidth\paperwidth]{psipresentation/imgs/psilogo} + }; + + \node[inner sep=0pt, anchor=north west] (frame-title) at (\titleframetitleleftedge\paperwidth, \titleframetitleupperedge\paperheight) { + \parbox[t]{\titleframetitlespace\paperwidth}{% + \textrm{\textcolor{titlefontgrey}{\LARGE\insertframetitle}} + } + }; + + \fill[boxdarkgrey] (0, 0.79\paperheight) rectangle ++(\titlesmallboxsidelength\paperwidth, -\titlesmallboxsidelength\paperwidth); % small bottom box + + \end{tikzpicture} + + % since the above is all overlay, simply add enough space to cover the head + \vskip0.118\paperheight % 0.21 - 0.092 +} + + + diff --git a/psipresentation/fonts/Georgia/Georgia Bold Italic.ttf b/psipresentation/fonts/Georgia/Georgia Bold Italic.ttf new file mode 100644 index 0000000..e027d68 Binary files /dev/null and b/psipresentation/fonts/Georgia/Georgia Bold Italic.ttf differ diff --git a/psipresentation/fonts/Georgia/Georgia Bold.ttf b/psipresentation/fonts/Georgia/Georgia Bold.ttf new file mode 100644 index 0000000..f586263 Binary files /dev/null and b/psipresentation/fonts/Georgia/Georgia Bold.ttf differ diff --git a/psipresentation/fonts/Georgia/Georgia Italic.ttf b/psipresentation/fonts/Georgia/Georgia Italic.ttf new file mode 100644 index 0000000..9f49b83 Binary files /dev/null and b/psipresentation/fonts/Georgia/Georgia Italic.ttf differ diff --git a/psipresentation/fonts/Georgia/Georgia.ttf b/psipresentation/fonts/Georgia/Georgia.ttf new file mode 100644 index 0000000..d157006 Binary files /dev/null and b/psipresentation/fonts/Georgia/Georgia.ttf differ diff --git a/psipresentation/fonts/Meta/MetaPro-Bold.otf b/psipresentation/fonts/Meta/MetaPro-Bold.otf new file mode 100755 index 0000000..5c0e247 Binary files /dev/null and b/psipresentation/fonts/Meta/MetaPro-Bold.otf differ diff --git a/psipresentation/fonts/Meta/MetaPro-BoldItalic.otf b/psipresentation/fonts/Meta/MetaPro-BoldItalic.otf new file mode 100755 index 0000000..bf2388d Binary files /dev/null and b/psipresentation/fonts/Meta/MetaPro-BoldItalic.otf differ diff --git a/psipresentation/fonts/Meta/MetaPro-Normal.otf b/psipresentation/fonts/Meta/MetaPro-Normal.otf new file mode 100755 index 0000000..417bc01 Binary files /dev/null and b/psipresentation/fonts/Meta/MetaPro-Normal.otf differ diff --git a/psipresentation/fonts/Meta/MetaPro-NormalItalic.otf b/psipresentation/fonts/Meta/MetaPro-NormalItalic.otf new file mode 100755 index 0000000..530dce7 Binary files /dev/null and b/psipresentation/fonts/Meta/MetaPro-NormalItalic.otf differ diff --git a/psipresentation/imgs/psi-photo-large-cropped.jpg b/psipresentation/imgs/psi-photo-large-cropped.jpg new file mode 100644 index 0000000..69ffe5f Binary files /dev/null and b/psipresentation/imgs/psi-photo-large-cropped.jpg differ diff --git a/psipresentation/imgs/psilogo.pdf b/psipresentation/imgs/psilogo.pdf new file mode 100644 index 0000000..35dd1f8 Binary files /dev/null and b/psipresentation/imgs/psilogo.pdf differ diff --git a/psipresentation/psicolors.tex b/psipresentation/psicolors.tex new file mode 100644 index 0000000..eeca15d --- /dev/null +++ b/psipresentation/psicolors.tex @@ -0,0 +1,26 @@ + +%load via \input{psicolors.tex} + +%Grund +\definecolor{light}{cmyk}{0, 0, 0, 0.15} +\definecolor{dark}{cmyk}{0, 0, 0, 0.35} + +%1. Wahl +\definecolor{grey}{cmyk}{0, 0, 0, 0.8} +\definecolor{yellow}{cmyk}{0, 0.2, 1, 0} +\definecolor{orange}{cmyk}{0, 0.4, 1, 0} +\definecolor{darkorange}{cmyk}{0, 0.75, 1, 0} +\definecolor{red}{cmyk}{0, 1, 1, 0.2} +\definecolor{brown}{cmyk}{0.4, 0.6, 0.7, 0.3} +\definecolor{vbrown}{cmyk}{0.5, 0.5, 1, 0.1} +\definecolor{vgreen}{cmyk}{0.6, 0.3, 1, 0} +\definecolor{green}{cmyk}{0.4, 0, 1, 0} +\definecolor{darkgreen}{cmyk}{0.8, 0, 1, 0.4} +\definecolor{violet}{cmyk}{0.65, 1, 0.55, 0} +\definecolor{blue}{cmyk}{1, 0.7, 0.2, 0.3} + +%2.Wahl +\definecolor{cold1}{cmyk}{1, 0, 0.4, 0.05} +\definecolor{cold2}{cmyk}{1, 0, 0.2, 0.05} +\definecolor{cold3}{cmyk}{1, 0.4, 0.2, 0} +