provide exsheet class for handling of exercise sheets
This commit is contained in:
parent
09d9a75c80
commit
6c90182268
1 changed files with 25 additions and 0 deletions
25
wip/mkessler-exsheet.sty
Normal file
25
wip/mkessler-exsheet.sty
Normal file
|
@ -0,0 +1,25 @@
|
|||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{mkessler-exsheet}
|
||||
|
||||
\newif\ifmkessler@exsheet@english\mkessler@exsheet@englishtrue
|
||||
\DeclareOption{german}{\mkessler@exsheet@englishfalse}
|
||||
\DeclareOption{english}{\mkessler@exsheet@englishtrue}
|
||||
|
||||
\DeclareOption*{\PackageWarning{mkessler-exsheet}{Unknown '\CurrentOption'}}
|
||||
\ProcessOptions\relax
|
||||
|
||||
\RequirePackage{mkessler-fancythm}
|
||||
|
||||
\newcounter{mkessler@exsheet@sheet}
|
||||
|
||||
\declaretheorem[style=thmgreenmargin, numberwithin=mkessler@exsheet@sheet, name=\ifmkessler@exsheet@english Exercise\else Aufgabe\fi]{mkessler@exsheet@aufgabe}
|
||||
|
||||
\usepackage{xkeyval}
|
||||
|
||||
\NewDocumentEnvironment{aufgabe}{O{}}{
|
||||
\begin{mkessler@exsheet@aufgabe\expandafter}\if\relax\detokenize{#1}\relax\else[#1]\fi\label{aufgabe-\themkessler@exsheet@aufgabe}
|
||||
}{
|
||||
\end{mkessler@exsheet@aufgabe\expandafter}\relax
|
||||
}
|
||||
|
||||
\newcommand\blatt{\refstepcounter{mkessler@exsheet@sheet}\subsection*{\themkessler@exsheet@sheet. Übungsblatt}\addcontentsline{toc}{subsection}{\themkessler@exsheet@sheet. Übungsblatt}}
|
Loading…
Reference in a new issue