mirror of
https://github.com/fsr/nopanic
synced 2025-04-27 01:58:27 +02:00
Eine schöne Linkliste mit gehyperreften keys!
(nach viel Haare raufen dank TeX-Expansions-Blödsinn) Aber hey, es funktioniert und ich weiß sogar ziemlich genau warum!
This commit is contained in:
parent
72469c21bf
commit
fa522fe6b7
8 changed files with 35 additions and 29 deletions
10
nopanic.tex
10
nopanic.tex
|
@ -10,6 +10,7 @@
|
|||
\usepackage{hyperref}
|
||||
\usepackage{wrapfig}
|
||||
\usepackage{menukeys}
|
||||
\usepackage{url}
|
||||
|
||||
%\usepackage{showframe}
|
||||
|
||||
|
@ -22,10 +23,11 @@
|
|||
\newcounter{linkcounter}
|
||||
\newcommand\linklist{}
|
||||
\makeatletter
|
||||
\newcommand{\link}[1]{
|
||||
{\fontsize{13pt}{0}\selectfont\keys{\arabic{linkcounter}}}
|
||||
\stepcounter{linkcounter}
|
||||
\g@addto@macro\linklist{ #1}
|
||||
\newcommand{\link}[1]{%
|
||||
\protected@edef\@tmpkey{{\fontsize{13pt}{0}\selectfont\keys{\arabic{linkcounter}}}}%
|
||||
\href{#1}{\@tmpkey}%
|
||||
\expandafter\g@addto@macro\expandafter\linklist\expandafter{\@tmpkey & \url{#1}\\}%
|
||||
\stepcounter{linkcounter}%
|
||||
}
|
||||
\makeatother
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue