mirror of
https://github.com/fsr/nopanic
synced 2024-11-15 08:53:11 +01:00
Linksystem kann gebaut werden. Ich habe eine kleine Träne im Auge.
Es ist alles so primitiv zusammengehackt, dass es fast wieder cool ist^^
This commit is contained in:
parent
68c3abce35
commit
1f764e3c9e
11
nopanic.tex
11
nopanic.tex
|
@ -50,9 +50,18 @@
|
||||||
\newcommand{\link}[1]{%
|
\newcommand{\link}[1]{%
|
||||||
\edef\tmptoken{\detokenize{#1}}%
|
\edef\tmptoken{\detokenize{#1}}%
|
||||||
\@ifundefined{nopanic@link@\tmptoken}{%
|
\@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}}%
|
\expandafter\global\expandafter\edef\csname nopanic@link@\tmptoken\endcsname{\arabic{linkcounter}}%
|
||||||
|
%
|
||||||
|
% Standard print output:
|
||||||
\expandafter\g@addto@macro\expandafter\linklist\expandafter{\@tmpkey & \url{#1}\\}%
|
\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 \"<?php header('\''Location: " $2 "'\''); ?>\" > " $1 "/index.php"}'
|
||||||
|
%\expandafter\g@addto@macro\expandafter\linklist\expandafter{\expandafter&\expandafter\tiny\@linknumber\ \url{#1}\\}%
|
||||||
|
%
|
||||||
\stepcounter{linkcounter}%
|
\stepcounter{linkcounter}%
|
||||||
}{%
|
}{%
|
||||||
\protected@edef\@tmpkey{{\fontsize{9pt}{0}\selectfont\keys{\csname nopanic@link@\tmptoken\endcsname}}}%
|
\protected@edef\@tmpkey{{\fontsize{9pt}{0}\selectfont\keys{\csname nopanic@link@\tmptoken\endcsname}}}%
|
||||||
|
|
Loading…
Reference in a new issue