From 9fe740c09baf604157f80d62ec757108a98ef386 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Fri, 9 Mar 2018 09:50:36 +0100 Subject: [PATCH] Ensure that plantuml is only called if shell-escape is active (by enabling it only via main-minted-german.tex) --- latexhints-english.tex | 6 +++--- latexhints-german.tex | 6 ------ latexhints-minted-german.tex | 6 ++++++ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/latexhints-english.tex b/latexhints-english.tex index fc667605..a52f9822 100644 --- a/latexhints-english.tex +++ b/latexhints-english.tex @@ -342,12 +342,12 @@ \section{UML diagrams using tikz-uml} \end{figure} \end{center} -\section{UML diagramme using PlantUML} +\section{UML diagrams using PlantUML} In case \lualatex{} is used and PlantUML is installed, UML diagrams can be defined using PlantUML. -\IfFileExists{plantuml.sty}{\input{latexhints-english-plantuml}}{} - +% Only works if "--shell-escape" is activated. Please activate only if you are sure, your compilation settings are correct +%\IfFileExists{plantuml.sty}{\input{latexhints-english-plantuml}}{} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{Tables} diff --git a/latexhints-german.tex b/latexhints-german.tex index 3ffe013a..9bc94ad0 100644 --- a/latexhints-german.tex +++ b/latexhints-german.tex @@ -371,12 +371,6 @@ \section{UML-Diagramme mit tikz-uml} \end{figure} \end{center} -\section{UML-Diagramme mit PlantUML} - -Falls \lualatex{} verwendet wird und PlantUML installiert ist, können UML-Diagramme mittels PlantUML erstellt werden. - -\IfFileExists{plantuml.sty}{\input{latexhints-german-plantuml}}{} - \section{Tabellen} \cref{tab:Ergebnisse} zeigt Ergebnisse und die \cref{tab:Ergebnisse} zeigt wie numerische Daten in einer Tabelle representiert werden können. diff --git a/latexhints-minted-german.tex b/latexhints-minted-german.tex index 08c63155..5574e6d1 100644 --- a/latexhints-minted-german.tex +++ b/latexhints-minted-german.tex @@ -1,5 +1,11 @@ % !TeX root = main-minted-german.tex +\section{UML-Diagramme mit PlantUML} + +Falls \lualatex{} verwendet wird und PlantUML installiert ist, können UML-Diagramme mittels PlantUML erstellt werden. + +\IfFileExists{plantuml.sty}{\input{latexhints-german-plantuml}}{} + \section{minted} \href{https://github.com/gpoore/minted}{minted} ist eine Alternative zum \href{https://ctan.org/pkg/listings}{lstlistings}-Paket, das erweiterte Syntax-Hervorhebungen erlaubt.