summaryrefslogtreecommitdiff
path: root/latexHeaders
diff options
context:
space:
mode:
authormzuenni <michi.zuendorf@gmail.com>2024-06-30 00:26:10 +0200
committermzuenni <michi.zuendorf@gmail.com>2024-06-30 00:26:10 +0200
commit545265f2f3992e15c45f1bbb99e04a27e1fc7856 (patch)
treed2dbe3fff1612af616090a79d373983d1ea3f02e /latexHeaders
parent9e8344e44eb06ac4a8618413ff2b2311c6348dad (diff)
improvements
Diffstat (limited to 'latexHeaders')
-rw-r--r--latexHeaders/commands.sty5
1 files changed, 5 insertions, 0 deletions
diff --git a/latexHeaders/commands.sty b/latexHeaders/commands.sty
index da78745..edbba1b 100644
--- a/latexHeaders/commands.sty
+++ b/latexHeaders/commands.sty
@@ -30,12 +30,17 @@
%\ifthenelse{\equal{#3}{}}{}{\runtime{#3}}
\newcommand{\sourcecode}[1]{%
+ \label{code:#1}%
\nobreak%
% \needspace{3\baselineskip}%
% \nopagebreak%
\lstinputlisting{#1}%
\penalty -1000%
}
+\newcommand{\sourceref}[1]{{%
+ \color{comment}\bfseries\itshape{}Seite \pageref{code:#1}%
+}}
+
\newcommand{\method}[4][]{\texttt{#2}~~#3~~\runtime{#4}#1\par}
\newenvironment{methods}[1][lll]{%