Commit e9ead9b0 authored by Felix Lammermann's avatar Felix Lammermann
Browse files

added fonts and lualatex support

parent 1d405fb3
This diff is collapsed.
This diff is collapsed.
......@@ -8,7 +8,7 @@
\RequirePackage[faculty = \beamercolorthemefau@faculty]{faucolors}%
%DEFINE MORE COLORS%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\definecolor{nicered} {HTML}{A3061E}
\definecolor{nicered} {HTML}{A3061E}
\colorlet{nicelred} {nicered!10}
\definecolor{niceyellow} {HTML}{FFBC42}
\colorlet{nicelyellow} {niceyellow!10}
......
......@@ -3,16 +3,42 @@
\mode<presentation>
%PACKAGES FOR PROPER INPUT AND OUTPUT ENCODING%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
\ifluatex\else
\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
\fi
%PACKAGES FOR MORE FONTSIZE OPTIONS%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{anyfontsize}
\RequirePackage{relsize}
%LOAD FONTS AND MODIFICATIONS%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{lmodern}
\RequirePackage{helvet}
\RequirePackage{arev}
\ifluatex
\RequirePackage[no-math]{fontspec}
\setmainfont{HelveticaNeueLTCom}[
Path = ./fonts/,
Extension = .ttf,
UprightFont = *-Roman,
BoldFont = *-Bd,
ItalicFont = *-It,
BoldItalicFont = *-BdIt,
]
\setsansfont{HelveticaNeueLTCom}[
Path = ./fonts/,
Extension = .ttf,
UprightFont = *-Lt,
BoldFont = *-Bd,
ItalicFont = *-It,
BoldItalicFont = *-BdIt,
]
\renewcommand{\familydefault}{\sfdefault}
\else
\RequirePackage{helvet}
\fi
\RequirePackage[italic]{mathastext}
\RequirePackage{microtype}
%SET DEFAULT FONT SIZES%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
......
......@@ -387,6 +387,31 @@
\end{tikzpicture}%
\addtocounter{framenumber}{-1}%
}%
\def\extrasectionpage#1{\frame[plain,t]{%
\senderspace%
\logospace%
\vspace{-5.666pt}%
\begin{tcolorbox}[%
code = {\pgfkeysalsofrom{\senderboxoptions}} ,
before skip = \fau@inner@senderheight + \fau@inner@fauline ,
colback = sectionpagebg ,
fontupper = \color{sectionpagefg}\usebeamerfont{section page} ,
]%
{#1\par}%
\vfill%
\end{tcolorbox}%
\begin{tikzpicture}[remember picture, overlay]%
\fill [sectionpagebg]%
([xshift = \fau@inner@senderwidth + \fau@inner@fauline, yshift = -2\fau@inner@senderheight -2\fau@inner@fauline]current page.north west)%
rectangle ++(\paperwidth - \fau@inner@senderwidth - \fau@inner@fauline, -3\fau@inner@senderheight -2\fau@inner@fauline);%
\iffau@userlogo%
\userlogospace%
\else%
\siegelspace%
\fi%
\end{tikzpicture}%
\addtocounter{framenumber}{-1}%
}}%
%NORMAL FRAME ELEMENTS%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{headline}{%
\logosmallspace%
......@@ -590,6 +615,7 @@
width=\linewidth,
fonttitle=\usebeamerfont{block title}\color{blocktitlefg}, %
fontupper=\usebeamerfont{block body}\color{blockbodyfg}, %
fontlower=\usebeamerfont{block body}\color{blockbodyfg}, %
before title={\killHeightAndDepth}, % Sorgt dafür, dass alle depths des Titels bei der Höhenbestimmung der Titelbox ignoriert werden.
before upper={ % Setzt die Farben für itemize bullets passend zur blockfarbe
\setbeamercolor{itemize item}{fg=tcbcol@backtitle}
......@@ -599,6 +625,17 @@
\setbeamercolor{enumerate subitem}{fg=tcbcol@backtitle}
\setbeamercolor{enumerate subsubitem}{fg=tcbcol@backtitle}
\setbeamercolor{description item}{fg=tcbcol@backtitle}
\setbeamercolor{alerted text}{fg=tcbcol@backtitle}
},
before lower={ % Setzt die Farben für itemize bullets passend zur blockfarbe
\setbeamercolor{itemize item}{fg=tcbcol@backtitle}
\setbeamercolor{itemize subitem}{fg=tcbcol@backtitle}
\setbeamercolor{itemize subsubitem}{fg=tcbcol@backtitle}
\setbeamercolor{enumerate item}{fg=tcbcol@backtitle}
\setbeamercolor{enumerate subitem}{fg=tcbcol@backtitle}
\setbeamercolor{enumerate subsubitem}{fg=tcbcol@backtitle}
\setbeamercolor{description item}{fg=tcbcol@backtitle}
\setbeamercolor{alerted text}{fg=tcbcol@backtitle}
},
}
% normal block
......@@ -606,6 +643,7 @@
colframe=blockbodybg, % Farbe des Rahmens inklusive Mittellinie
colback=blockbodybg, % Farbe des Hintergrunds
colbacktitle=blocktitlebg, % Farbe des Hintergrunds des Titels
segmentation style={dashed, blocktitlebg},
title={#2},
#1
}
......@@ -614,6 +652,7 @@
colframe=blockbodyalertedbg, % Farbe des Rahmens inklusive Mittellinie
colback=blockbodyalertedbg, % Farbe des Hintergrunds
colbacktitle=blocktitlealertedbg, % Farbe des Hintergrunds des Titels
segmentation style={dashed, blocktitlealertedbg},
title={#2},
#1
}
......@@ -622,6 +661,7 @@
colframe=blockbodyexamplebg, % Farbe des Rahmens inklusive Mittellinie
colback=blockbodyexamplebg, % Farbe des Hintergrunds
colbacktitle=blocktitleexamplebg, % Farbe des Hintergrunds des Titels
segmentation style={dashed, blocktitleexamplebg},
title={#2},
#1
}
......@@ -631,6 +671,7 @@
colback=faullblue, % Farbe des Hintergrunds
colbacktitle=faublue, % Farbe des Hintergrunds des Titels
coltext=black!90, % Farbe des Textes
segmentation style={dashed, faublue},
title={#2},
#1
}
......@@ -640,6 +681,7 @@
colback=faullphil, % Farbe des Hintergrunds
colbacktitle=fauphil, % Farbe des Hintergrunds des Titels
coltext=black!90, % Farbe des Textes
segmentation style={dashed, fauphil},
title={#2},
#1
}
......@@ -649,6 +691,7 @@
colback=faullrewi, % Farbe des Hintergrunds
colbacktitle=faurewi, % Farbe des Hintergrunds des Titels
coltext=black!90, % Farbe des Textes
segmentation style={dashed, faurewi},
title={#2},
#1
}
......@@ -658,6 +701,7 @@
colback=faullmed, % Farbe des Hintergrunds
colbacktitle=faumed, % Farbe des Hintergrunds des Titels
coltext=black!90, % Farbe des Textes
segmentation style={dashed, faumed},
title={#2},
#1
}
......@@ -667,6 +711,7 @@
colback=faullnat, % Farbe des Hintergrunds
colbacktitle=faunat, % Farbe des Hintergrunds des Titels
coltext=black!90, % Farbe des Textes
segmentation style={dashed, faunat},
title={#2},
#1
}
......@@ -676,6 +721,7 @@
colback=faulltech, % Farbe des Hintergrunds
colbacktitle=fautech, % Farbe des Hintergrunds des Titels
coltext=black!90, % Farbe des Textes
segmentation style={dashed, fautech},
title={#2},
#1
}
......@@ -685,6 +731,7 @@
colback=stuvellred, % Farbe des Hintergrunds
colbacktitle=stuvered, % Farbe des Hintergrunds des Titels
coltext=stuveblack, % Farbe des Textes
segmentation style={dashed, stuvered},
title={#2},
#1
}
......@@ -694,6 +741,7 @@
colback=llfaculty, % Farbe des Hintergrunds
colbacktitle=faculty, % Farbe des Hintergrunds des Titels
coltext=black!90, % Farbe des Textes
segmentation style={dashed, faculty},
title={#2},
#1
}
......
\ProvidesPackage{beamerthemefau}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{ifthen}
\RequirePackage{ifluatex}
\RequirePackage{geometry}
\RequirePackage{calc}
\RequirePackage{kvoptions}
......
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