3
0
Fork 0
mirror of https://github.com/fsr/nopanic synced 2024-11-15 00:43:12 +01:00
nopanic/preamble.tex
Peter Nerlich a82484206e rgb and cmyk versions in one document
- separate colors.tex, to include from any sub-document
- provide both rgb and cmyk versions
- use rgb by default, \def\colormodel{cmyk} for clean print version
- make timetable.sty work with all color specifications:
- new \defineeventcolors accepts 5 arguments: name, bg colorformat, bg color values, fg format, fg values
- new \leteventcolors accepts 3 arguments: name, name of previously defined color for bg, name of color for fg

ESE 21 red CMYK version very VAGUELY approximated by a non-professional
2021-09-27 09:43:33 +02:00

57 lines
1.6 KiB
TeX

% \renewcommand*{\chapterheadstartvskip}{}
\usepackage[english, ngerman]{babel}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{eso-pic}
\usepackage{caption}
\usepackage{wrapfig}
\usepackage{menukeys}
\usepackage{amssymb}
\usepackage{eurosym}
\usepackage{multicol}
\usepackage{lscape}
\setlength{\multicolsep}{0.5em}
\usepackage{adjustbox}
% fancy fone awesome boxes
\usepackage{awesomebox}
% mainly for linklist
\usepackage{longtable}
\usepackage{enumitem} % to easily remove itemize indent for the checklist
\usepackage{pdfpages}
\usepackage{fontspec}
\usepackage{microtype}
\usepackage[autostyle=true]{csquotes}
\MakeOuterQuote{"}
\PassOptionsToPackage{hyphens}{url}
\usepackage[colorlinks=false, pdfborder={0 0 0}]{hyperref}
\input{colors.tex}
% is toggled twice for moduluebersicht.tex
\changemenucolor{gray}{bg}{named}{ese_fg_color} %background of the menukeys
\changemenucolor{gray}{br}{named}{ese_bg_color} %border of the menukeys
\changemenucolor{gray}{txt}{named}{ese_bg_color} %text of the menukeys
\setmainfont[
Scale=0.90,
BoldFeatures={Scale=1.0}
]{Open Sans}
\setmonofont[
Scale = 1.09
]{Latin Modern Mono}
\setkomafont{chapter}{\color{ese_bg_color}\fontspec[BoldFont={* Bold}]{Open Sans}\huge\bfseries}
\setkomafont{minisec}{\color{ifsrgray}\fontspec[BoldFont={* Bold}]{Open Sans}\large\bfseries}
\setkomafont{paragraph}{\color{ifsrgray}\fontspec[BoldFont={* Bold}]{Open Sans}}
\setkomafont{pagenumber}{\color{ifsrgray}\fontspec{Open Sans}}
\addtokomafont{disposition}{\normalfont\fontspec{Open Sans}}
\defaultfontfeatures{Ligatures=TeX} % enable ligatures (e.g. --) for new fonts