From e1d3c6bc3862e5c6a4f93acdd7c00dc1f8fcc904 Mon Sep 17 00:00:00 2001 From: Sebastian Kuhnert Date: Mon, 11 Jul 2011 13:26:20 +0000 Subject: add support for enumitem package --- exercisesheets.sty | 6 ++++++ exercisesheets.tex | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/exercisesheets.sty b/exercisesheets.sty index b2fb6a9..1507e4b 100644 --- a/exercisesheets.sty +++ b/exercisesheets.sty @@ -560,6 +560,12 @@ \AfterPackage*{paralist}{ \setdefaultenum{(a)}{(1)}{i.}{A.} } +\AfterPackage*{enumitem}{ + \setenumerate[1]{label=(\alph*)} + \setenumerate[2]{label=(\arabic*)} + \setenumerate[3]{label=\roman*.} + \setenumerate[4]{label=\Alph.} +} % reset equation numbering for each exercise \@addtoreset{equation}{section} diff --git a/exercisesheets.tex b/exercisesheets.tex index 2548ad6..c4fcf3d 100644 --- a/exercisesheets.tex +++ b/exercisesheets.tex @@ -74,9 +74,9 @@ finally combined into this package. \item If the \texttt{babel} package is loaded, the appropriate \option{language=\param{lang}}-option is automatically derived and can be omitted. - \item The use of \texttt{paralist} is recommended. Top level enumerating lists - are then modified to have the form (a), (b), \dots{}, which is useful in - exercise definitions. + \item The use of \texttt{enumitem} or \texttt{paralist} is recommended. Top + level enumerating lists are then modified to have the form (a), (b), \dots{}, + which is useful in exercise definitions. \item If the \texttt{varioref} package is used, appropriate label formats are installed for exercises and sub-exercises. \item If the \texttt{xcolor} package is loaded, to-do markers generated with -- cgit v1.2.3