From fbb7cdaf49ba1687c1ba40cdec814a463f0506b5 Mon Sep 17 00:00:00 2001 From: AntonObersteiner Date: Fri, 3 Feb 2023 12:42:46 +0100 Subject: [PATCH] add command \textInString for future use could be used to make \appear and \away sensitive to Person1 und Person2 --- protokoll/fsrprotokoll.cls | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/protokoll/fsrprotokoll.cls b/protokoll/fsrprotokoll.cls index c7ebcf5..6209e2e 100644 --- a/protokoll/fsrprotokoll.cls +++ b/protokoll/fsrprotokoll.cls @@ -59,6 +59,14 @@ \includegraphics[height=4em]{tudlogo}% } } +% from https://tex.stackexchange.com/questions/566641/test-for-substring-with-expl3-in-argument-of-setlength +\newcommand{\textInString}[2]{% + \ifnum\pdfmatch{#1}{#2}=1 + \expandafter\@firstoftwo + \else + \expandafter\@secondoftwo + \fi +} \makeatother \pagestyle{fsrProtokoll}