2023-09-07 13:33:09 +02:00
|
|
|
\newcommand{\eseyear}{2023}
|
2021-09-19 02:20:14 +02:00
|
|
|
|
2021-09-18 00:02:46 +02:00
|
|
|
\newcommand{\ascii}{{\texttt{ascii}}}
|
|
|
|
\newcommand{\bafog}{BAföG}
|
|
|
|
|
|
|
|
\newcounter{linkcounter}
|
|
|
|
\newcommand\linklist{}
|
|
|
|
\makeatletter
|
2022-09-25 12:17:32 +02:00
|
|
|
\def\@breaklinklistat{21}
|
|
|
|
\def\@breaklinklistandat{56}
|
2021-09-18 00:02:46 +02:00
|
|
|
\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:
|
2021-09-23 10:47:55 +02:00
|
|
|
\immediate\write\linklistfile{RewriteRule "^\@linknumber$" "#1" [NE,R,L]}%
|
2021-09-18 00:02:46 +02:00
|
|
|
%
|
|
|
|
\stepcounter{linkcounter}%
|
|
|
|
}{%
|
|
|
|
\protected@edef\@tmpkey{{\fontsize{9pt}{0}\selectfont\keys{\csname nopanic@link@\tmptoken\endcsname}}}%
|
|
|
|
}%
|
|
|
|
\href{#1}{\@tmpkey}%
|
|
|
|
}
|
|
|
|
\makeatother
|
2021-09-23 02:09:15 +02:00
|
|
|
|
|
|
|
\def\modulo#1#2{\ifnum#1=0 0\else(#1-#2*((2*#1-#2)/(2*#2)))\fi}
|