From 1f764e3c9eb653658092d27232ed940cc0a88410 Mon Sep 17 00:00:00 2001 From: "Sebastian J. Mielke" Date: Wed, 10 Sep 2014 16:46:51 +0200 Subject: [PATCH] =?UTF-8?q?Linksystem=20kann=20gebaut=20werden.=20Ich=20ha?= =?UTF-8?q?be=20eine=20kleine=20Tr=C3=A4ne=20im=20Auge.=20Es=20ist=20alles?= =?UTF-8?q?=20so=20primitiv=20zusammengehackt,=20dass=20es=20fast=20wieder?= =?UTF-8?q?=20cool=20ist^^?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nopanic.tex | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nopanic.tex b/nopanic.tex index 1cb58ec..78439c5 100644 --- a/nopanic.tex +++ b/nopanic.tex @@ -50,9 +50,18 @@ \newcommand{\link}[1]{% \edef\tmptoken{\detokenize{#1}}% \@ifundefined{nopanic@link@\tmptoken}{% - \protected@edef\@tmpkey{{\fontsize{9pt}{0}\selectfont\keys{\arabic{linkcounter}}}}% + \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}\\}% + % + % Link system output: + % Copypasting the output of the following lines into a text file, then run and execute the result of: + % awk '{print "mkdir " $1 " && echo \"\" > " $1 "/index.php"}' + %\expandafter\g@addto@macro\expandafter\linklist\expandafter{\expandafter&\expandafter\tiny\@linknumber\ \url{#1}\\}% + % \stepcounter{linkcounter}% }{% \protected@edef\@tmpkey{{\fontsize{9pt}{0}\selectfont\keys{\csname nopanic@link@\tmptoken\endcsname}}}%