From 5a9cc630bbdebc6dc6e689b9ba7a44dff810051a Mon Sep 17 00:00:00 2001 From: efradtschuk Date: Mon, 10 Jan 2022 09:27:09 +0100 Subject: [PATCH] include minted in preamble only when minted is defined as listingsmode --- main.tex | 1 + praeamble.tex | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main.tex b/main.tex index 9c259eb..a1afbca 100644 --- a/main.tex +++ b/main.tex @@ -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} diff --git a/praeamble.tex b/praeamble.tex index 4696f25..43de2c3 100644 --- a/praeamble.tex +++ b/praeamble.tex @@ -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}