Merge branch 'topology-1'
This commit is contained in:
commit
8397374ffb
4 changed files with 56 additions and 7 deletions
|
@ -1,24 +1,33 @@
|
||||||
__HEADER__(Include exercise sheets into lecture notes easily.)
|
__HEADER__(Include exercise sheets into lecture notes easily.)
|
||||||
|
|
||||||
\RequirePackage{xkeyval}
|
\RequirePackage{xkeyval}
|
||||||
__LANGUAGE_OPTIONS__
|
__LANGUAGE_OPTIONS_X__
|
||||||
|
|
||||||
__END_OPTIONS__
|
__END_OPTIONS_X__
|
||||||
|
|
||||||
\RequirePackage{mkessler-fancythm}
|
\RequirePackage{mkessler-fancythm}
|
||||||
|
|
||||||
|
|
||||||
|
\def__PACKAGE_MACRO__(sheet){
|
||||||
|
__IF__(english) Exercise Sheet\else Übungsblatt\fi
|
||||||
|
}
|
||||||
|
|
||||||
\newcounter{__PACKAGE_PREFIX__sheet}
|
\newcounter{__PACKAGE_PREFIX__sheet}
|
||||||
|
|
||||||
\declaretheorem[style=thmgreenmargin, numberwithin=__PACKAGE_PREFIX__sheet, name=__IF__(english) Exercise\else Aufgabe\fi]{__PACKAGE_PREFIX__aufgabe}
|
\declaretheorem[style=thmgreenmargin, numberwithin=__PACKAGE_PREFIX__sheet, name=__IF__(english) Exercise\else Aufgabe\fi]{__PACKAGE_PREFIX__sheetexercise}
|
||||||
|
|
||||||
\usepackage{xkeyval}
|
\usepackage{xkeyval}
|
||||||
|
|
||||||
\NewDocumentEnvironment{aufgabe}{O{}}{
|
\NewDocumentEnvironment{sheetexercise}{O{}}{
|
||||||
\begin{__PACKAGE_PREFIX__aufgabe\expandafter}\if\relax\detokenize{#1}\relax\else[#1]\fi\label{aufgabe-\the__PACKAGE_PREFIX__aufgabe}
|
\begin{__PACKAGE_PREFIX__sheetexercise\expandafter}\if\relax\detokenize{#1}\relax\else[#1]\fi\label{exercise-\the__PACKAGE_PREFIX__sheetexercise}
|
||||||
}{
|
}{
|
||||||
\end{__PACKAGE_PREFIX__aufgabe\expandafter}\relax
|
\end{__PACKAGE_PREFIX__sheetexercise\expandafter}\relax
|
||||||
}
|
}
|
||||||
|
|
||||||
\newcommand\blatt{\refstepcounter{__PACKAGE_PREFIX__sheet}\subsection*{\the__PACKAGE_PREFIX__sheet. Übungsblatt}\addcontentsline{toc}{subsection}{\the__PACKAGE_PREFIX__sheet. Übungsblatt}}
|
\newcommand\exercisesheet{
|
||||||
|
\refstepcounter{__PACKAGE_PREFIX__sheet}
|
||||||
|
\subsection*{\the__PACKAGE_PREFIX__sheet. __PACKAGE_MACRO__(sheet)}
|
||||||
|
\addcontentsline{toc}{subsection}{\the__PACKAGE_PREFIX__sheet. __PACKAGE_MACRO__(sheet)}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
3
tests/wip/exercises/Makefile
Normal file
3
tests/wip/exercises/Makefile
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
test:
|
||||||
|
latexmk -dvi- -pdf -gg -Werror -latexoption=-interaction=nonstopmode test.tex
|
||||||
|
latexmk -c test.tex
|
34
tests/wip/exercises/test.tex
Normal file
34
tests/wip/exercises/test.tex
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
\documentclass{article}
|
||||||
|
|
||||||
|
\usepackage{mkessler-hypersetup}
|
||||||
|
\usepackage{mkessler-exsheet}
|
||||||
|
\usepackage{parskip}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
\tableofcontents
|
||||||
|
|
||||||
|
\section{test}
|
||||||
|
\exercisesheet
|
||||||
|
|
||||||
|
\begin{sheetexercise}
|
||||||
|
\begin{itemize}
|
||||||
|
\item test
|
||||||
|
\end{itemize}
|
||||||
|
test
|
||||||
|
\end{sheetexercise}
|
||||||
|
|
||||||
|
\begin{sheetexercise}
|
||||||
|
test
|
||||||
|
\end{sheetexercise}
|
||||||
|
|
||||||
|
\exercisesheet
|
||||||
|
|
||||||
|
\begin{sheetexercise}
|
||||||
|
|
||||||
|
\end{sheetexercise}
|
||||||
|
|
||||||
|
\autoref{exercise-1.1}
|
||||||
|
|
||||||
|
|
||||||
|
\end{document}
|
3
tests/wip/exercises/test.toc
Normal file
3
tests/wip/exercises/test.toc
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
\contentsline {section}{\numberline {1}test}{1}{section.1}%
|
||||||
|
\contentsline {subsection}{1. Exercise Sheet}{1}{section*.2}%
|
||||||
|
\contentsline {subsection}{2. Exercise Sheet}{1}{section*.3}%
|
Loading…
Reference in a new issue