aboutsummaryrefslogtreecommitdiff
path: root/exercisesheets.sty
diff options
context:
space:
mode:
authorSebastian Kuhnert2008-08-14 15:39:07 +0000
committerSebastian Kuhnert2008-08-14 15:39:07 +0000
commitcc2c1ffbfbf7608b6eab95ce57833458fb11a6ec (patch)
treecc06239b06594e87e6a3afa351e5c1ba302d8744 /exercisesheets.sty
parent33b6bc5f024a0533ceaadd667400e811d5783053 (diff)
downloadexercisesheets-cc2c1ffbfbf7608b6eab95ce57833458fb11a6ec.tar.gz
exercisesheets-cc2c1ffbfbf7608b6eab95ce57833458fb11a6ec.tar.bz2
exercisesheets-cc2c1ffbfbf7608b6eab95ce57833458fb11a6ec.zip
exercisesheets.sty: allow \and in \author
Diffstat (limited to 'exercisesheets.sty')
-rw-r--r--exercisesheets.sty11
1 files changed, 9 insertions, 2 deletions
diff --git a/exercisesheets.sty b/exercisesheets.sty
index bbf53a2..42c5d42 100644
--- a/exercisesheets.sty
+++ b/exercisesheets.sty
@@ -43,7 +43,14 @@
\pgfkeys{/exsh/semester/.initial/.expand once=\@date}
}
\apptocmd{\date}{\pgfkeys{/exsh/semester={#1}}}{}{}
-\pgfkeys{/exsh/author/.initial/.expand once=\@author}
+\def\exsh@patchauthor{%
+ \patchcmd{\exsh@author}{\and}{, }{\exsh@patchauthor}{}%
+}
+\pgfkeys{/exsh/author/.code={%
+ \def\exsh@author{#1}%
+ \exsh@patchauthor
+ },
+ /exsh/author/.expand once=\@author}
\let\exsh@oldauthor\author
\def\author#1{\exsh@oldauthor{#1}\pgfkeys{/exsh/author={#1}}}
@@ -357,7 +364,7 @@
\begingroup\raggedright%
{\pgfkeysvalueof{/exsh/subject font}\pgfkeysvalueof{/exsh/subject}}\hfill
{\pgfkeysvalueof{/exsh/semester font}\pgfkeysvalueof{/exsh/semester}}\\
- {\pgfkeysvalueof{/exsh/author font}\pgfkeysvalueof{/exsh/author}}\hfill
+ {\pgfkeysvalueof{/exsh/author font}\exsh@author}\hfill
{\pgfkeysvalueof{/exsh/date font}\pgfkeysvalueof{/exsh/date}}\\
\vskip\pgfkeysvalueof{/exsh/above sheet title skip}\relax%
\endgroup