From b9d6c531a980e2559ce7f6c808038edf0e01abb0 Mon Sep 17 00:00:00 2001 From: Florian Knoch Date: Mon, 10 Jan 2022 09:21:01 +0100 Subject: [PATCH] Make minted import optional --- main.tex | 1 - praeamble.tex | 11 +++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/main.tex b/main.tex index 9c259eb..ebf591c 100644 --- a/main.tex +++ b/main.tex @@ -1,5 +1,4 @@ \input{praeamble.tex} % Preamble -\input{commands.tex} % Custom commands \title{Script for the Fachschaft \acro{WIAI} \LaTeX{} Workshop} \author{Evelyn Fradtschuk \and Florian Knoch \and Christian Kremitzl \and Bernhard Luedtke} diff --git a/praeamble.tex b/praeamble.tex index 4696f25..abf1917 100644 --- a/praeamble.tex +++ b/praeamble.tex @@ -36,8 +36,7 @@ \usepackage{todonotes} \usepackage{changes} -% Sourcecode listings -\usepackage{minted} +% Source code listings \usepackage{listings} % Quotes (\enquote) @@ -53,3 +52,11 @@ \usepackage{changes} \definechangesauthor[color=blue, name={Christian}]{C} \definechangesauthor[color=purple, name={Florian}]{F} + +% Custom commands +\input{commands.tex} + +% Optional: Minted for source code listings +\ifthenelse{\equal{\listingsmode}{minted}}{% + \usepackage{minted} +}{} \ No newline at end of file