aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kapp Lindquist <andkaplin05@gmail.com>2025-10-28 15:48:59 +0100
committermithe24 <mithe24@student.sdu.dk>2025-10-29 13:49:57 +0100
commitbeb747e014bce1fe93d7c8e74ce5fcea4829e838 (patch)
tree51b02f1ac66e4765033685f71dc85ca0355c2d8f
parent4ddb388319c3f55e4b366c991e660d7ce1a6ce43 (diff)
downloadsorter-beb747e014bce1fe93d7c8e74ce5fcea4829e838.tar.gz
sorter-beb747e014bce1fe93d7c8e74ce5fcea4829e838.zip
report(commands): Added custom commands for snippets and code blocks
Diffstat (limited to '')
-rw-r--r--report/report.tex7
1 files changed, 7 insertions, 0 deletions
diff --git a/report/report.tex b/report/report.tex
index 926c9df..d0cbd0c 100644
--- a/report/report.tex
+++ b/report/report.tex
@@ -14,6 +14,13 @@
\geometry{a4paper}
+% ----- Custom commands ------
+\newcommand{\code}[1]{\small\mintinline[xleftmargin=2em, xrightmargin=2em,
+breaklines]{asm}{#1}}
+\newcommand{\snippet}[3]{\inputminted[firstline=#1,lastline=#2,linenos,
+xleftmargin=1.5em, breaklines]{asm}{#3}}
+% ----------------------------
+
\begin{document}
\begin{center}