diff options
| author | Sebastian Kuhnert | 2010-05-05 12:45:37 +0000 |
|---|---|---|
| committer | Sebastian Kuhnert | 2010-05-05 12:45:37 +0000 |
| commit | e0bfe15f1394f3d7e91c74de733f88b1969bcf29 (patch) | |
| tree | 9bd5f436d15062c0f03859f0f7c64bc4827a500a /exercisesheets.sty | |
| parent | e34f93b5af09b1ecf7b5d1db09a7e244911fe022 (diff) | |
| download | exercisesheets-e0bfe15f1394f3d7e91c74de733f88b1969bcf29.tar.gz exercisesheets-e0bfe15f1394f3d7e91c74de733f88b1969bcf29.tar.bz2 exercisesheets-e0bfe15f1394f3d7e91c74de733f88b1969bcf29.zip | |
allow \and in \author; minor changes
Diffstat (limited to 'exercisesheets.sty')
| -rw-r--r-- | exercisesheets.sty | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/exercisesheets.sty b/exercisesheets.sty index ee7ccd5..b724dde 100644 --- a/exercisesheets.sty +++ b/exercisesheets.sty @@ -1,11 +1,10 @@ %\NeedsTeXFormat{LaTeX2e}[1994/12/01] \RequirePackage{svn-prov} -\def\exsh@version{0.5j} +\def\exsh@version{0.5g} \ProvidesPackageSVN{$Id$}[\exsh@version\space Typesetting of exercise sheets \revinfo] \GetFileInfoSVN* \message{`Typesetting of exercise sheets' \exsh@version\space <\filedate> (SVN Rev: \filerev)} -% TODO: allow \and in author and solutionsby % TODO: fix "above hint skip" @@ -54,12 +53,14 @@ \pgfkeys{/exsh/semester/.initial/.expand once=\@date} } \apptocmd{\date}{\pgfkeys{/exsh/semester={#1}}}{}{} -\def\exsh@patchauthor{% - \patchcmd{\exsh@author}{\and}{, }{\exsh@patchauthor}{}% -} \pgfkeys{/exsh/author/.code={% \def\exsh@author{#1}% - \exsh@patchauthor + \def\exsh@repeat{1}% + \loop\ifnum\exsh@repeat>0 + \def\exsh@repeat{0}% + \patchcmd{\exsh@author}{\and}{, }{\def\exsh@repeat{1}}{}% + \repeat + \show\exsh@author }, /exsh/author/.expand once=\@author} \let\exsh@oldauthor\author @@ -545,7 +546,7 @@ \@ifnextchar\label{\exsh@label}{\leavevmode\ignorespaces}% }{} \newcommand{\exsh@label}[2]{#1{#2}\leavevmode\ignorespaces} -\providecommand{\exsh@startsection}[2][]{% +\newcommand{\exsh@startsection}[2][]{% \@startsection{section}{1}{\z@}% {\pgfkeysvalueof{/exsh/above exercise skip}}% {1em}% afterskip corrected below @@ -565,8 +566,9 @@ \@addtoreset{equation}{section} \newenvironment{hint}[1][]{% - \pgfkeys{exsh,every hint,#1,hint font}% - \par\vskip\pgfkeysvalueof{/exsh/above hint skip}\relax\noindent + \par + %\pgfkeys{exsh,every hint,#1,hint font}% + \vskip\pgfkeysvalueof{/exsh/above hint skip}\relax\noindent {\pgfkeysvalueof{/exsh/hint title font}\pgfkeysvalueof{/exsh/strings/hint}:}~\ignorespaces }{% \par |
