mirror of
https://github.com/fsr/nopanic
synced 2024-11-15 08:53:11 +01:00
d0f422dd73
Ich bin immernoch voll geflasht und ehrlich überrascht, wie einfach das nun doch tatsächlich ging, sobald mir klar wurde, dass ich einfach Tokens als Makros speichern und dann ihre Existenz prüfen kann... Dieses TeX/eTeX/LaTeX, von dem immer alle reden, ist eine sehr, sehr lustige Sache!
90 lines
2.4 KiB
TeX
90 lines
2.4 KiB
TeX
\documentclass[a4paper,14pt,twoside
|
|
%,draft
|
|
]{scrreprt}
|
|
|
|
\usepackage[parfill]{parskip}
|
|
\usepackage{graphicx}
|
|
\usepackage{fancyhdr}
|
|
\usepackage{eso-pic}
|
|
\usepackage{caption}
|
|
\usepackage{hyperref}
|
|
\usepackage{wrapfig}
|
|
\usepackage{menukeys}
|
|
\usepackage{url}
|
|
|
|
%\usepackage{showframe}
|
|
|
|
\usepackage{fontspec}
|
|
\usepackage{polyglossia}
|
|
\setmainlanguage{german}
|
|
\newcommand{\glqq}{„}
|
|
\newcommand{\grqq}{“}
|
|
|
|
\newcounter{linkcounter}
|
|
\newcommand\linklist{}
|
|
\makeatletter
|
|
\newcommand{\link}[1]{%
|
|
\edef\tmptoken{\detokenize{#1}}%
|
|
\@ifundefined{nopanic@link@\tmptoken}{%
|
|
\protected@edef\@tmpkey{{\fontsize{13pt}{0}\selectfont\keys{\arabic{linkcounter}}}}%
|
|
\expandafter\global\expandafter\edef\csname nopanic@link@\tmptoken\endcsname{\arabic{linkcounter}}%
|
|
\expandafter\g@addto@macro\expandafter\linklist\expandafter{\@tmpkey & \url{#1}\\}%
|
|
\stepcounter{linkcounter}%
|
|
}{%
|
|
\protected@edef\@tmpkey{{\fontsize{13pt}{0}\selectfont\keys{\csname nopanic@link@\tmptoken\endcsname}}}%
|
|
}%
|
|
\href{#1}{\@tmpkey}%
|
|
}
|
|
\makeatother
|
|
|
|
\definecolor{ifsrgreen}{rgb}{0.69, 0.88, 0.11} % 177, 225, 28
|
|
\definecolor{ifsrgray}{rgb}{0.6, 0.6, 0.6} % 153, 153, 153
|
|
|
|
\setmainfont{PT Sans}
|
|
\setkomafont{chapter}{\color{ifsrgreen}\fontspec[BoldFont={* Bold}]{Exo}\huge}
|
|
\setkomafont{chapterentry}{\normalfont\bfseries}
|
|
\setkomafont{minisec}{\color{ifsrgray}\fontspec[BoldFont={* Bold}]{Exo}\large}
|
|
\setkomafont{paragraph}{\color{ifsrgray}\fontspec[BoldFont={* Bold}]{Exo}}
|
|
\setkomafont{pagenumber}{\color{ifsrgray}\fontspec{Roboto}}
|
|
|
|
\sloppy % forces "ugly" line breaks
|
|
|
|
\pagestyle{plain}
|
|
|
|
\begin{document}
|
|
|
|
%Das Coverbild, oh gott o.O Aber es funktioniert
|
|
\newcommand\CoverPic{%
|
|
\put(0,0){%
|
|
\parbox[b][\paperheight]{\paperwidth}{%
|
|
\vfill
|
|
\centering
|
|
\includegraphics[width=\paperwidth,height=\paperheight,%
|
|
keepaspectratio]{cover/Vorne}%
|
|
\vfill
|
|
}}}
|
|
\thispagestyle{empty} %keine Seitenzahl
|
|
\AddToShipoutPicture*{\CoverPic}
|
|
\mbox{} %brauche leeren Content für ne newpage
|
|
%\newpage
|
|
|
|
\tableofcontents
|
|
\include{texte/vorwort}
|
|
\include{texte/grusswort}
|
|
\include{texte/studienbetrieb}
|
|
\include{texte/checkliste}
|
|
\include{texte/moduluebersicht}
|
|
\include{texte/f1help}
|
|
\include{texte/auditorium}
|
|
\include{texte/fsr}
|
|
\include{texte/cd}
|
|
\include{texte/ascii}
|
|
\include{texte/zih}
|
|
\include{texte/glossar}
|
|
\include{texte/links}
|
|
\include{texte/campusplan}
|
|
\include{texte/werbung}
|
|
\include{cover/back}
|
|
|
|
\end{document}
|