3
0
Fork 0
mirror of https://github.com/fsr/nopanic synced 2024-11-15 08:53:11 +01:00
nopanic/nopanic.tex

99 lines
2.8 KiB
TeX
Raw Normal View History

\documentclass[10pt]{scrreprt}
2014-09-18 16:59:28 +02:00
\usepackage[twoside
2015-08-30 14:17:57 +02:00
,papersize={148mm, 210mm}
2014-09-18 16:59:28 +02:00
,layoutsize={148mm, 210mm}
,top=1.5cm
,bottom=2cm
,footskip=1cm
,textwidth=12cm
2014-09-18 18:24:58 +02:00
,verbose
]{geometry}
\input{preamble.tex}
2015-09-09 07:48:15 +02:00
% we need this dummy counter to make a label at the spieleabendplakat
\newcounter{dummy}
\newcounter{linkcounter}
\newcommand\linklist{}
\makeatletter
\def\@breaklinklistat{28}
\def\@breaklinklistandat{60}
\newcommand{\link}[1]{%
\edef\tmptoken{\detokenize{#1}}%
\@ifundefined{nopanic@link@\tmptoken}{%
\edef\@linknumber{\arabic{linkcounter}}%
\protected@edef\@tmpkey{{\fontsize{9pt}{0}\selectfont\keys{\@linknumber}}}%
\expandafter\global\expandafter\edef\csname nopanic@link@\tmptoken\endcsname{\arabic{linkcounter}}%
%
% Standard print output:
\expandafter\g@addto@macro\expandafter\linklist\expandafter{\@tmpkey & \url{#1}}%
\ifx\@breaklinklistat\@linknumber
\g@addto@macro\linklist{\\}%
\else
\ifx\@breaklinklistandat\@linknumber
\g@addto@macro\linklist{\\}%
\else
\g@addto@macro\linklist{\\*}%
\fi
\fi
%
% Link system output:
2016-08-20 15:41:27 +02:00
\immediate\write\linklistfile{RewriteRule "^\@linknumber$" "#1"}%
%
\stepcounter{linkcounter}%
}{%
\protected@edef\@tmpkey{{\fontsize{9pt}{0}\selectfont\keys{\csname nopanic@link@\tmptoken\endcsname}}}%
}%
\href{#1}{\@tmpkey}%
}
\makeatother
\sloppy % forces "ugly" line breaks
\pagestyle{plain}
2014-01-18 13:44:43 +01:00
\begin{document}
%Das Coverbild, oh gott o.O Aber es funktioniert
\newcommand\CoverPic{%
\put(0,0){%
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
2015-08-30 14:17:57 +02:00
\includegraphics[width = \paperwidth, height = \paperheight]{cover/Vorne}%
\vfill
}}}
\thispagestyle{empty} %keine Seitenzahl
\AddToShipoutPictureBG*{\CoverPic}
\mbox{} %brauche leeren Content für ne newpage
%\newpage
2016-08-20 15:41:27 +02:00
% Linklist output
% All this stuff needs is immediate to avoid confusion between links on the same page
\immediate\newwrite\linklistfile
\immediate\openout\linklistfile=kopimi.htaccess\relax
\immediate\write\linklistfile{RewriteEngine On}
\immediate\write\linklistfile{RewriteBase /2016}
2014-08-20 13:55:15 +02:00
\include{texte/zeitplan}
2016-04-21 13:18:11 +02:00
\include{texte/checkliste_kurz}
\include{texte/inhaltsverzeichnis}
2014-01-19 22:03:10 +01:00
\include{texte/vorwort}
\include{texte/grusswort}
2016-04-21 13:18:11 +02:00
\include{texte/f1help}
2014-01-19 22:03:10 +01:00
\include{texte/checkliste}
2016-04-21 13:18:11 +02:00
\include{texte/fakultaet}
\include{texte/studienalltag}
2014-01-19 22:03:10 +01:00
\include{texte/moduluebersicht}
\include{texte/glossar}
2014-02-27 21:23:45 +01:00
\include{texte/links}
2016-09-11 15:35:53 +02:00
\addchap{Notizen}\mbox{}\newpage\mbox{}\newpage
2016-04-21 13:18:11 +02:00
\include{texte/raetsel}
\include{texte/campusplan}
\include{cover/back}
2016-08-20 15:41:27 +02:00
% Always close your files :)
\immediate\closeout\linklistfile
\end{document}