[Code] Add better code snippets

This commit is contained in:
2025-09-28 20:05:58 +02:00
parent 14210ca1da
commit 4a98d7d3af
3 changed files with 34 additions and 0 deletions

View File

@@ -1 +1,15 @@
\usepackage{minted}
\usepackage{fancyvrb}
\newenvironment{code}[1]{
\VerbatimEnvironment
\begin{minted}[
autogobble,
breaklines,
breakindentnchars=2,
frame=lines,
framesep=2mm,
baselinestretch=1.1,
linenos]{#1}}
{\end{minted}}