From 545265f2f3992e15c45f1bbb99e04a27e1fc7856 Mon Sep 17 00:00:00 2001
From: mzuenni <michi.zuendorf@gmail.com>
Date: Sun, 30 Jun 2024 00:26:10 +0200
Subject: improvements

---
 latexHeaders/commands.sty | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'latexHeaders/commands.sty')

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]{%
-- 
cgit v1.2.3

