From 43248b019a1acb581120dc5c40baf295a7e4c03f Mon Sep 17 00:00:00 2001 From: manuelthieme Date: Fri, 7 Sep 2018 15:44:41 +0200 Subject: [PATCH] added nopanic.tex again. That was a bit of a brain blackout. for (0..500): I will use "git reset HEAD" instead of "git reset --cached" --- nopanic.tex | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 nopanic.tex diff --git a/nopanic.tex b/nopanic.tex new file mode 100644 index 0000000..5b4cf63 --- /dev/null +++ b/nopanic.tex @@ -0,0 +1,101 @@ +\documentclass[10pt]{scrreprt} +\usepackage[twoside + ,papersize={148mm, 210mm} + ,layoutsize={148mm, 210mm} + ,top=1.5cm + ,bottom=2cm + ,footskip=1cm + ,textwidth=12cm + ,verbose + ]{geometry} + +\input{preamble.tex} + +% we need this dummy counter to make a label at the spieleabendplakat +\newcounter{dummy} + +\newcounter{linkcounter} +\newcommand\linklist{} +\makeatletter +\def\@breaklinklistat{27} +\def\@breaklinklistandat{55} +\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: + \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} + +\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]{cover/Vorne}% +\vfill +}}} +\thispagestyle{empty} %keine Seitenzahl +\AddToShipoutPictureBG*{\CoverPic} +\mbox{} %brauche leeren Content für ne newpage +%\newpage + +% 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} + +\include{texte/zeitplan} +\include{texte/checkliste_kurz} +\include{texte/inhaltsverzeichnis} +\include{texte/vorwort} +\include{texte/grusswort} +\include{texte/checkliste} +\include{texte/f1help} +\include{texte/fakultaet} +\include{texte/gebaeude} +\include{texte/studienalltag} +\include{texte/veranstaltungen} +\include{texte/moduluebersicht} +\include{texte/glossar} +\include{texte/werbung} +\include{texte/links} +\addchap{Notizen}\mbox{} +\include{texte/raetsel} +\include{texte/campusplan} +\include{cover/back} + +% Always close your files :) +\immediate\closeout\linklistfile + +\end{document}