|
| 1 | +% A pure minimalistic LaTeX-Beamer theme for everyone to use. |
| 2 | +% Copyright (C) 2020 Kai Norman Clasen |
| 3 | + |
| 4 | +% This program is free software: you can redistribute it and/or modify |
| 5 | +% it under the terms of the GNU General Public License as published by |
| 6 | +% the Free Software Foundation, either version 3 of the License, or |
| 7 | +% (at your option) any later version. |
| 8 | + |
| 9 | +% This program is distributed in the hope that it will be useful, |
| 10 | +% but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | +% GNU General Public License for more details. |
| 13 | + |
| 14 | +% You should have received a copy of the GNU General Public License |
| 15 | +% along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 16 | + |
| 17 | +% This file is part of beamerthemepureminimalistic. |
| 18 | + |
| 19 | +% If problems/bugs are found or enhancements are desired, please contact |
| 20 | +% me over: https://github.com/kai-tub/latex-beamer-pure-minimalistic |
| 21 | + |
| 22 | +\ProvidesPackage{beamerfontthemepureminimalistic}[v1.3.0] |
| 23 | +\RequirePackage{ifthen} |
| 24 | +\mode<presentation> |
| 25 | + |
| 26 | +\newboolean{nofirafonts} |
| 27 | +\setboolean{nofirafonts}{false} |
| 28 | +\newboolean{helvetica} |
| 29 | +\setboolean{helvetica}{false} |
| 30 | + |
| 31 | +\DeclareOptionBeamer{nofirafonts}{\setboolean{nofirafonts}{true}} |
| 32 | +\DeclareOptionBeamer{helvetica}{\setboolean{helvetica}{true}} |
| 33 | +\ProcessOptionsBeamer |
| 34 | + |
| 35 | +\RequirePackage{silence} |
| 36 | +% I have no clue how I can fix this warning |
| 37 | +\WarningFilter{latex}{Font shape declaration has incorrect series value} |
| 38 | +% TODO: #52 Maybe use different font for math mode; Doesn't look clean |
| 39 | +\ifthenelse{\boolean{helvetica}}{% |
| 40 | + % If Helvetica overwrites the fira fonts settings |
| 41 | + \RequirePackage[T1]{fontenc} |
| 42 | + \RequirePackage[scaled]{helvet} |
| 43 | +}{% |
| 44 | + \ifthenelse{\boolean{nofirafonts}}{% |
| 45 | + % Load default fonts |
| 46 | + }{% |
| 47 | + % By default load Fira |
| 48 | + \RequirePackage[T1]{fontenc} |
| 49 | + \RequirePackage[sfdefault]{FiraSans} |
| 50 | + \RequirePackage{FiraMono} |
| 51 | + } |
| 52 | +} |
| 53 | + |
| 54 | +\renewcommand\normalsize{\fontsize{12pt}{14pt}\selectfont} |
| 55 | +\renewcommand\small{\fontsize{10pt}{12pt}\selectfont} |
| 56 | +\renewcommand\large{\fontsize{14pt}{16pt}\selectfont} |
| 57 | +\renewcommand\Large{\fontsize{16pt}{18pt}\selectfont} |
| 58 | + |
| 59 | +\setbeamerfont{normal text}{family=\sffamily,size=\normalsize,series=\mdseries} |
| 60 | +\setbeamerfont{alerted text}{parent=normal text} |
| 61 | + |
| 62 | +\setbeamerfont{structure}{parent=normal text,series=\mdseries} |
| 63 | + |
| 64 | +\setbeamerfont{footline}{parent=structure,size*={8pt}{10pt}} |
| 65 | + |
| 66 | +\setbeamerfont{title}{size*={14pt}{16pt},parent=alerted text,shape=\scshape} |
| 67 | +\setbeamerfont{title in head/foot}{parent=footline,series=\bfseries} |
| 68 | + |
| 69 | +\setbeamerfont{subtitle}{parent=title,shape=\upshape} |
| 70 | + |
| 71 | +\setbeamerfont{section in toc}{parent=normal text} |
| 72 | +\setbeamerfont{subsection in toc}{parent=section in toc} |
| 73 | +\setbeamerfont{subsubsection in toc}{parent=subsection in toc} |
| 74 | + |
| 75 | +\setbeamerfont{author}{parent=normal text} |
| 76 | +\setbeamerfont{author in head/foot}{parent=footline} |
| 77 | +\setbeamerfont*{institute}{parent=normal text} |
| 78 | + |
| 79 | +\setbeamerfont{frametitle}{parent=alerted text,size*={16pt}{18pt}} |
| 80 | +\setbeamerfont{caption}{series=\normalfont, size=\small} |
| 81 | +\setbeamerfont{caption name}{series=\normalfont, size=\small} |
| 82 | + |
| 83 | +\setbeamerfont*{itemize/enumerate body}{parent=normal text} |
| 84 | +\setbeamerfont*{itemize/enumerate subbody}{parent=itemize/enumerate body} |
| 85 | +\setbeamerfont*{itemize/enumerate subsubbody}{parent=itemize/enumerate subbody} |
| 86 | + |
| 87 | +\mode<all> |
0 commit comments