From 150dfecc932d9772375b900181bce091c5bcdd59 Mon Sep 17 00:00:00 2001 From: Jost Rossel <jrossel@mail.upb.de> Date: Tue, 16 Aug 2022 22:10:59 +0200 Subject: [PATCH] Add example macros to custom_preamble --- misc/custom_preamble.tex | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/misc/custom_preamble.tex b/misc/custom_preamble.tex index e69de29..884b671 100644 --- a/misc/custom_preamble.tex +++ b/misc/custom_preamble.tex @@ -0,0 +1,21 @@ +% example of a custom listing language definition +\lstdefinelanguage{XML}{ + morestring=[b]", + moredelim=[s][\bfseries\color{upbblue}]{<}{\ }, + moredelim=[s][\bfseries\color{upbblue}]{</}{>}, + moredelim=[l][\bfseries\color{upbblue}]{/>}, + moredelim=[l][\bfseries\color{upbblue}]{>}, + morecomment=[s]{<?}{?>}, + morecomment=[s]{<!--}{-->}, + alsoletter={-:}, + identifierstyle=\color{upbdarkgreen}, + keywordstyle=\color{upbblue}, + stringstyle=\color{upborange}, + commentstyle=\color{upbgray}, +} + +\usepackage{todonotes} % provides the \todo command + +\usepackage{pifont} % defines some symbols http://ctan.org/pkg/pifont +\newcommand*{\cmark}{\ding{51}}% checkmark +\newcommand*{\xmark}{\ding{53}}% crossmark -- GitLab