From 794a4a4c23a18cbfd9f02daab06002dabc38d3a1 Mon Sep 17 00:00:00 2001
From: Michael Kohlhase <michael.kohlhase@fau.de>
Date: Sun, 17 Sep 2023 14:29:48 +0200
Subject: [PATCH] adding an optional argument for middle names to \fullname

---
 kwarc/recomm.sty | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/kwarc/recomm.sty b/kwarc/recomm.sty
index a5737da..d770c7f 100644
--- a/kwarc/recomm.sty
+++ b/kwarc/recomm.sty
@@ -25,11 +25,16 @@
 % make the apostroh configurable. 
 \def\apos{'}
 
-%support for names and their parts. 
-\newcommand\fullname[3][]{%
-\def\@test{#1}\def\@fem{female}\ifx\@test\@fem\femtrue\fi
-\def\full{#2 #3\xspace}\def\first{#2\xspace}\def\last{#3\xspace}
-\def\fulls{#2 #3\apos{s}\xspace}\def\firsts{#2\apos{s}\xspace}\def\lasts{#3\apos{s}\xspace}}
+% e.g. \fullname[f]{Andrea}[Elisabeth]{Kohlhase}
+\newcommand\fullname[2][]{
+  \def\@test{#1}\def\@fem{female}\ifx\@test\@fem\femtrue\fi
+  \def\first{#2\xspace}\def\firsts{#2\apos{s}\xspace}
+  \@fullname}
+\newcommand\@fullname[2][]{
+  \def\mid{#1\xspace}
+  \def\last{#2\xspace}\def\lasts{#2\apos{s}\xspace}
+  \def\full{\first\last}\def\Full{\first\mid\last}
+  \def\fulls{\full\apos{s}\xspace}\def\Fulls{\Full\apos{s}\xspace}}
 \newcommand\programname[1]{\def\@program{#1}}
 \newcommand\program{\@program\xspace}
 \newcommand\institutionname[1]{\def\@institution{#1}}
-- 
GitLab