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
No related branches found
No related tags found
No related merge requests found
......@@ -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}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment