include minted in preamble only when minted is defined as listingsmode

This commit is contained in:
Fradtschuk 2022-01-10 09:27:09 +01:00
parent c9f0bee905
commit 5a9cc630bb
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
\input{setup.tex} % Setup
\input{praeamble.tex} % Preamble
\input{commands.tex} % Custom commands
\title{Script for the Fachschaft \acro{WIAI} \LaTeX{} Workshop}

View File

@ -37,8 +37,8 @@
\usepackage{changes}
% Sourcecode listings
\usepackage{minted}
\usepackage{listings}
\ifthenelse{\equal{\listingsmode}{minted}}{\usepackage{minted}}{}
% Quotes (\enquote)
\usepackage[autostyle,autopunct=false]{csquotes}