Skip to content

Commit

Permalink
Add minted package and set up code environment for source code listings
Browse files Browse the repository at this point in the history
  • Loading branch information
TorbenWetter committed Sep 26, 2023
1 parent 4d04b89 commit b15ba8b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions iuthesis.sty
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@
\setlength{\tabcolsep}{10pt} % default: 6pt
\renewcommand{\arraystretch}{1.2} % default: 1

% Allow the highlighting of source code.
\RequirePackage[newfloat]{minted}
\setminted{breaklines=true}
\RequirePackage{caption}

% Set up the code environment for source code listings.
\newenvironment{code}{\captionsetup{type=listing}}{}
\SetupFloatingEnvironment{listing}{name=Quellcode}

% PDF options.
\RequirePackage[
colorlinks=true,
Expand Down

0 comments on commit b15ba8b

Please sign in to comment.