diff options
| author | Andreas Kapp Lindquist <andkaplin05@gmail.com> | 2025-10-28 15:48:59 +0100 |
|---|---|---|
| committer | mithe24 <mithe24@student.sdu.dk> | 2025-10-29 13:49:57 +0100 |
| commit | beb747e014bce1fe93d7c8e74ce5fcea4829e838 (patch) | |
| tree | 51b02f1ac66e4765033685f71dc85ca0355c2d8f /report | |
| parent | 4ddb388319c3f55e4b366c991e660d7ce1a6ce43 (diff) | |
| download | sorter-beb747e014bce1fe93d7c8e74ce5fcea4829e838.tar.gz sorter-beb747e014bce1fe93d7c8e74ce5fcea4829e838.zip | |
report(commands): Added custom commands for snippets and code blocks
Diffstat (limited to 'report')
| -rw-r--r-- | report/report.tex | 7 |
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} |