Skip to content
Snippets Groups Projects
Commit 794a4a4c authored by Michael Kohlhase's avatar Michael Kohlhase
Browse files

adding an optional argument for middle names to \fullname

parent 2ff8b972
Branches
No related tags found
No related merge requests found
...@@ -25,11 +25,16 @@ ...@@ -25,11 +25,16 @@
% make the apostroh configurable. % make the apostroh configurable.
\def\apos{'} \def\apos{'}
%support for names and their parts. % e.g. \fullname[f]{Andrea}[Elisabeth]{Kohlhase}
\newcommand\fullname[3][]{% \newcommand\fullname[2][]{
\def\@test{#1}\def\@fem{female}\ifx\@test\@fem\femtrue\fi \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\first{#2\xspace}\def\firsts{#2\apos{s}\xspace}
\def\fulls{#2 #3\apos{s}\xspace}\def\firsts{#2\apos{s}\xspace}\def\lasts{#3\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\programname[1]{\def\@program{#1}}
\newcommand\program{\@program\xspace} \newcommand\program{\@program\xspace}
\newcommand\institutionname[1]{\def\@institution{#1}} \newcommand\institutionname[1]{\def\@institution{#1}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment