diff --git a/tests/.gitignore b/tests/.gitignore new file mode 100644 index 0000000..ba167d2 --- /dev/null +++ b/tests/.gitignore @@ -0,0 +1,6 @@ +*.aux +*.fdb_latexmk +*.fls +*.log +*.pdf +wip/proof/.skip diff --git a/tests/Makefile b/tests/Makefile new file mode 100644 index 0000000..61533ed --- /dev/null +++ b/tests/Makefile @@ -0,0 +1,7 @@ +SUBDIRS := $(wildcard */.) + +all: $(SUBDIRS) +$(SUBDIRS): + $(MAKE) -C $@ + +.PHONY: all $(SUBDIRS) diff --git a/tests/environments/Makefile b/tests/environments/Makefile new file mode 100644 index 0000000..61533ed --- /dev/null +++ b/tests/environments/Makefile @@ -0,0 +1,7 @@ +SUBDIRS := $(wildcard */.) + +all: $(SUBDIRS) +$(SUBDIRS): + $(MAKE) -C $@ + +.PHONY: all $(SUBDIRS) diff --git a/tests/environments/fancythm/Makefile b/tests/environments/fancythm/Makefile new file mode 100644 index 0000000..7931aaf --- /dev/null +++ b/tests/environments/fancythm/Makefile @@ -0,0 +1,3 @@ +test: + latexmk -c test.tex + latexmk -dvi- -pdf test.tex diff --git a/tests/environments/fancythm/test.tex b/tests/environments/fancythm/test.tex new file mode 100644 index 0000000..6571df9 --- /dev/null +++ b/tests/environments/fancythm/test.tex @@ -0,0 +1,65 @@ +\documentclass[a4paper, german]{article} + +\usepackage[lecture numbers = false, number all, number small environments = section]{mkessler-fancythm} + + +\begin{document} + \begin{theorem}[Name]\label{test} + test + \end{theorem} + \begin{definition**} + test + \end{definition**} + + \ref{test} + + \begin{theorem} + test + \end{theorem} + + \mdfsetup{skipabove=8pt,skipbelow=\topskip, bottomline=true} + \begin{lemma} + + \end{lemma} + + \begin{example} + + \end{example} + + \begin{praise} + test + \end{praise} + + \begin{remark} + test + \end{remark} + + \begin{notation} + test + \end{notation} + + \begin{abuse} + test + \end{abuse} + + \begin{theoremdef} + + \end{theoremdef} + + \begin{fact} + test + \end{fact} + + \begin{orga} + + \end{orga} + + \begin{question} + + \end{question} + + \begin{oral} + test + \end{oral} + +\end{document} diff --git a/tests/lecture-notes/Makefile b/tests/lecture-notes/Makefile new file mode 100644 index 0000000..61533ed --- /dev/null +++ b/tests/lecture-notes/Makefile @@ -0,0 +1,7 @@ +SUBDIRS := $(wildcard */.) + +all: $(SUBDIRS) +$(SUBDIRS): + $(MAKE) -C $@ + +.PHONY: all $(SUBDIRS) diff --git a/tests/lecture-notes/lectures/Makefile b/tests/lecture-notes/lectures/Makefile new file mode 100644 index 0000000..7931aaf --- /dev/null +++ b/tests/lecture-notes/lectures/Makefile @@ -0,0 +1,3 @@ +test: + latexmk -c test.tex + latexmk -dvi- -pdf test.tex diff --git a/tests/lecture-notes/lectures/test.lec b/tests/lecture-notes/lectures/test.lec new file mode 100644 index 0000000..cb88c5d --- /dev/null +++ b/tests/lecture-notes/lectures/test.lec @@ -0,0 +1,4 @@ +\contentsline {lecture}{Lecture\,1\,(date)}{1}% +\vspace \smallskipamount \hspace {1.5em}\parbox {\dimexpr \textwidth -1.55em- 2em}{Some keywords} +\contentsline {lecture}{Lecture\,2\,(date)}{2}% +\vspace \smallskipamount \hspace {1.5em}\parbox {\dimexpr \textwidth -1.55em- 2em}{Some other keywords} diff --git a/tests/lecture-notes/lectures/test.tex b/tests/lecture-notes/lectures/test.tex new file mode 100644 index 0000000..ae7b7b9 --- /dev/null +++ b/tests/lecture-notes/lectures/test.tex @@ -0,0 +1,17 @@ +\documentclass{article} + +\usepackage{mkessler-lectures} +\usepackage{blindtext} + +\begin{document} + +\summaryoflectures + +\lecture[Some keywords]{date}{title} +\blindtext + +\newpage +\lecture[Some other keywords]{date}{title 2} +\blindtext + +\end{document} diff --git a/tests/math/Makefile b/tests/math/Makefile new file mode 100644 index 0000000..61533ed --- /dev/null +++ b/tests/math/Makefile @@ -0,0 +1,7 @@ +SUBDIRS := $(wildcard */.) + +all: $(SUBDIRS) +$(SUBDIRS): + $(MAKE) -C $@ + +.PHONY: all $(SUBDIRS) diff --git a/tests/math/faktor/Makefile b/tests/math/faktor/Makefile new file mode 100644 index 0000000..8381565 --- /dev/null +++ b/tests/math/faktor/Makefile @@ -0,0 +1,3 @@ +test: + latexmk -c test.tex + latexmk -pdf -dvi- test.tex diff --git a/tests/math/faktor/test.tex b/tests/math/faktor/test.tex new file mode 100644 index 0000000..e15312d --- /dev/null +++ b/tests/math/faktor/test.tex @@ -0,0 +1,15 @@ +\documentclass{article} + +\usepackage{mkessler-faktor} + +\begin{document} +\[ + \faktor{A}{B} \cong \cofaktor{A}{B} +\] +\[ + \faktor{A}[1]{B}[-1.5] \cong \cofaktor{A}[-1]{B}[0.5] +\] +\[ + \cofaktor*{A}[-1]{B}[2] = x +\] +\end{document} diff --git a/tests/math/math/Makefile b/tests/math/math/Makefile new file mode 100644 index 0000000..7931aaf --- /dev/null +++ b/tests/math/math/Makefile @@ -0,0 +1,3 @@ +test: + latexmk -c test.tex + latexmk -dvi- -pdf test.tex diff --git a/tests/math/math/test.tex b/tests/math/math/test.tex new file mode 100644 index 0000000..be71471 --- /dev/null +++ b/tests/math/math/test.tex @@ -0,0 +1,17 @@ +\documentclass{article} + +\usepackage{mkessler-math} + +\begin{document} +\[ + \Gal \Quot \PreSh \tensor \Var \Br \Set \CHaus \cfun \One \left\lfloor \frac{1}{\frac{3}{\frac{7}{8}}} \right\rfloor \abs{\frac{1}{\frac{8}{\frac{4}{3}}}} \lVert \frac{a}{\frac{b}{c}} \rVert \left< \frac{a}{\frac{b}{c}} \right> \norm{\frac{a}{\frac{b}{c}}} \norm{test} \norm{\frac{a}{\frac{b}{c}}} +\] +\[ + \C \F \K \R \Z \Q +\] +\begin{IEEEeqnarray*}{rCl} + A & = & b \\ + & = & c +\end{IEEEeqnarray*} + +\end{document} diff --git a/tests/math/mathalias/Makefile b/tests/math/mathalias/Makefile new file mode 100644 index 0000000..8381565 --- /dev/null +++ b/tests/math/mathalias/Makefile @@ -0,0 +1,3 @@ +test: + latexmk -c test.tex + latexmk -pdf -dvi- test.tex diff --git a/tests/math/mathalias/test.tex b/tests/math/mathalias/test.tex new file mode 100644 index 0000000..218654e --- /dev/null +++ b/tests/math/mathalias/test.tex @@ -0,0 +1,15 @@ +\documentclass{article} + +\usepackage[extended]{mkessler-mathalias} + +\begin{document} +\[ +\C\F\K\N\Q\R\Z +\] +\[ +\cA\cB\cC\cD \cZ +\] +\[ +\fA \fB \fZ +\] +\end{document} diff --git a/tests/math/mathfig/Makefile b/tests/math/mathfig/Makefile new file mode 100644 index 0000000..7931aaf --- /dev/null +++ b/tests/math/mathfig/Makefile @@ -0,0 +1,3 @@ +test: + latexmk -c test.tex + latexmk -dvi- -pdf test.tex diff --git a/tests/math/mathfig/test.tex b/tests/math/mathfig/test.tex new file mode 100644 index 0000000..09326fb --- /dev/null +++ b/tests/math/mathfig/test.tex @@ -0,0 +1,16 @@ +\documentclass{article} + +\usepackage{mkessler-mathfig} + +\begin{document} + test +\[ + \begin{tikzcd} + A \ar{r} & B + \end{tikzcd} +\] +test2: + \begin{tikzpicture} + \draw (0,0) rectangle (10,10); + \end{tikzpicture} +\end{document} diff --git a/tests/math/mathfixes/Makefile b/tests/math/mathfixes/Makefile new file mode 100644 index 0000000..7931aaf --- /dev/null +++ b/tests/math/mathfixes/Makefile @@ -0,0 +1,3 @@ +test: + latexmk -c test.tex + latexmk -dvi- -pdf test.tex diff --git a/tests/math/mathfixes/test.tex b/tests/math/mathfixes/test.tex new file mode 100644 index 0000000..bb702cc --- /dev/null +++ b/tests/math/mathfixes/test.tex @@ -0,0 +1,11 @@ +\documentclass{article} + +\usepackage{mkessler-mathfixes} + +\begin{document} + Dies ist nur ein Test: + Es ist 1\degree{} warm. + \[ + a \varphi \epsilon \uglyphi \uglyepsilon \subset \supset \frac{\lim_{x\to \infty}}{} + \] +\end{document} diff --git a/tests/math/mathfont/Makefile b/tests/math/mathfont/Makefile new file mode 100644 index 0000000..7931aaf --- /dev/null +++ b/tests/math/mathfont/Makefile @@ -0,0 +1,3 @@ +test: + latexmk -c test.tex + latexmk -dvi- -pdf test.tex diff --git a/tests/math/mathfont/test.tex b/tests/math/mathfont/test.tex new file mode 100644 index 0000000..3e6de34 --- /dev/null +++ b/tests/math/mathfont/test.tex @@ -0,0 +1,32 @@ +\documentclass{article} + +\usepackage{mkessler-mathfont} +\DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it} + +\begin{document} +cal com cat frak scr +\def\letters{ABCDEFGHIJKLMNOPQRSTUXWXYZ} + \[ + \mathcal{A} \mathcat{A} \mathfrak{A} \mathscr{A} + \] + mathcalo + \[ + \expandafter\mathcalo\expandafter{\letters} + \] + mathcal + \[ + \expandafter\mathcal\expandafter{\letters} + \] + neue kalligraphie + \[ + \expandafter\mathpzc\expandafter{\letters} ABC + \] + mathscr + \[ + \expandafter\mathscr\expandafter{\letters} + \] + mathfrak + \[ + \expandafter\mathfrak\expandafter{\letters}\mathfrak{p}\mathfrak{q} + \] +\end{document} diff --git a/tests/math/mathop/Makefile b/tests/math/mathop/Makefile new file mode 100644 index 0000000..7931aaf --- /dev/null +++ b/tests/math/mathop/Makefile @@ -0,0 +1,3 @@ +test: + latexmk -c test.tex + latexmk -dvi- -pdf test.tex diff --git a/tests/math/mathop/test.tex b/tests/math/mathop/test.tex new file mode 100644 index 0000000..0d9816a --- /dev/null +++ b/tests/math/mathop/test.tex @@ -0,0 +1,9 @@ +\documentclass{article} + +\usepackage{mkessler-mathop} + +\begin{document} +\[ + \Gal \Quot \PreSh \tensor \Var \Br \Set \CHaus \cfun \One \left\lfloor \frac{1}{\frac{3}{\frac{7}{8}}} \right\rfloor \abs{\frac{1}{\frac{8}{\frac{4}{3}}}} \lVert \frac{a}{\frac{b}{c}} \rVert \left< \frac{a}{\frac{b}{c}} \right> \norm{\frac{a}{\frac{b}{c}}} \norm{test} \norm{\frac{a}{\frac{b}{c}}} +\] +\end{document} diff --git a/tests/math/mathsymb/Makefile b/tests/math/mathsymb/Makefile new file mode 100644 index 0000000..7931aaf --- /dev/null +++ b/tests/math/mathsymb/Makefile @@ -0,0 +1,3 @@ +test: + latexmk -c test.tex + latexmk -dvi- -pdf test.tex diff --git a/tests/math/mathsymb/test.tex b/tests/math/mathsymb/test.tex new file mode 100644 index 0000000..cab1153 --- /dev/null +++ b/tests/math/mathsymb/test.tex @@ -0,0 +1,19 @@ +\documentclass{article} + +\usepackage{mkessler-mathsymb} + +\begin{document} +\[ +f \colon A \to B +\] + +\[ + B \leftarrow A \noloc f +\] + +\contra + +\Warning widerspruch! + +\circled{1} test. +\end{document} diff --git a/tests/math/unicodechar/Makefile b/tests/math/unicodechar/Makefile new file mode 100644 index 0000000..7931aaf --- /dev/null +++ b/tests/math/unicodechar/Makefile @@ -0,0 +1,3 @@ +test: + latexmk -c test.tex + latexmk -dvi- -pdf test.tex diff --git a/tests/math/unicodechar/test.tex b/tests/math/unicodechar/test.tex new file mode 100644 index 0000000..06a6b37 --- /dev/null +++ b/tests/math/unicodechar/test.tex @@ -0,0 +1,7 @@ +\documentclass{article} + +\usepackage{mkessler-unicodechar} + +\begin{document} +Das griechische Alphabet αβγδεζετικλμνξοπρστυφχψω +\end{document} diff --git a/tests/misc/Makefile b/tests/misc/Makefile new file mode 100644 index 0000000..61533ed --- /dev/null +++ b/tests/misc/Makefile @@ -0,0 +1,7 @@ +SUBDIRS := $(wildcard */.) + +all: $(SUBDIRS) +$(SUBDIRS): + $(MAKE) -C $@ + +.PHONY: all $(SUBDIRS) diff --git a/tests/misc/hypersetup/Makefile b/tests/misc/hypersetup/Makefile new file mode 100644 index 0000000..7931aaf --- /dev/null +++ b/tests/misc/hypersetup/Makefile @@ -0,0 +1,3 @@ +test: + latexmk -c test.tex + latexmk -dvi- -pdf test.tex diff --git a/tests/misc/hypersetup/test.bbl b/tests/misc/hypersetup/test.bbl new file mode 100644 index 0000000..055c523 --- /dev/null +++ b/tests/misc/hypersetup/test.bbl @@ -0,0 +1,20 @@ +% $ biblatex auxiliary file $ +% $ biblatex bbl format version 3.1 $ +% Do not modify the above lines! +% +% This is an auxiliary file used by the 'biblatex' package. +% This file may safely be deleted. It will be recreated by +% biber as required. +% +\begingroup +\makeatletter +\@ifundefined{ver@biblatex.sty} + {\@latex@error + {Missing 'biblatex' package} + {The bibliography requires the 'biblatex' package.} + \aftergroup\endinput} + {} +\endgroup + +\endinput + diff --git a/tests/misc/hypersetup/test.out b/tests/misc/hypersetup/test.out new file mode 100644 index 0000000..1c879f7 --- /dev/null +++ b/tests/misc/hypersetup/test.out @@ -0,0 +1 @@ +\BOOKMARK [1][-]{section.1}{test}{}% 1 diff --git a/tests/misc/hypersetup/test.run.xml b/tests/misc/hypersetup/test.run.xml new file mode 100644 index 0000000..01ca856 --- /dev/null +++ b/tests/misc/hypersetup/test.run.xml @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + +]> + + + latex + + test.bcf + + + test.bbl + + + blx-dm.def + blx-compat.def + biblatex.def + standard.bbx + alphabetic.bbx + alphabetic.cbx + biblatex.cfg + english.lbx + + + + biber + + biber + test + + + test.bcf + + + test.bbl + + + test.bbl + + + test.bcf + + + bibliography.bib + images.bib + + + diff --git a/tests/misc/hypersetup/test.tex b/tests/misc/hypersetup/test.tex new file mode 100644 index 0000000..681d0ff --- /dev/null +++ b/tests/misc/hypersetup/test.tex @@ -0,0 +1,16 @@ +\documentclass{article} + +\usepackage[cleveref]{mkessler-hypersetup} + +\title{Geometrie} +\author{Maximilian Keßler} + +\begin{document} + \maketitle + test + + \section{test} + \label{foo} + + \Cref{foo} test. +\end{document} diff --git a/tests/misc/vocab/Makefile b/tests/misc/vocab/Makefile new file mode 100644 index 0000000..7931aaf --- /dev/null +++ b/tests/misc/vocab/Makefile @@ -0,0 +1,3 @@ +test: + latexmk -c test.tex + latexmk -dvi- -pdf test.tex diff --git a/tests/misc/vocab/test.tex b/tests/misc/vocab/test.tex new file mode 100644 index 0000000..6f60500 --- /dev/null +++ b/tests/misc/vocab/test.tex @@ -0,0 +1,11 @@ +\documentclass{article} + +\usepackage[index]{mkessler-vocab} + + + +\begin{document} + \section{beg}\label{foo} + \vocab{test} test. + \printvocabindex +\end{document} diff --git a/tests/misc/vocab/vocabindex.idx b/tests/misc/vocab/vocabindex.idx new file mode 100644 index 0000000..7889d72 --- /dev/null +++ b/tests/misc/vocab/vocabindex.idx @@ -0,0 +1 @@ +\indexentry{Test}{1} diff --git a/tests/misc/vocab/vocabindex.ilg b/tests/misc/vocab/vocabindex.ilg new file mode 100644 index 0000000..92ed096 --- /dev/null +++ b/tests/misc/vocab/vocabindex.ilg @@ -0,0 +1,6 @@ +This is makeindex, version 2.15 [TeX Live 2019] (kpathsea + Thai support). +Scanning input file vocabindex.idx....done (1 entries accepted, 0 rejected). +Sorting entries...done (0 comparisons). +Generating output file vocabindex.ind....done (5 lines written, 0 warnings). +Output written in vocabindex.ind. +Transcript written in vocabindex.ilg. diff --git a/tests/misc/vocab/vocabindex.ind b/tests/misc/vocab/vocabindex.ind new file mode 100644 index 0000000..daf8d44 --- /dev/null +++ b/tests/misc/vocab/vocabindex.ind @@ -0,0 +1,5 @@ +\begin{theindex} + + \item Test, 1 + +\end{theindex} diff --git a/tests/utils/Makefile b/tests/utils/Makefile new file mode 100644 index 0000000..61533ed --- /dev/null +++ b/tests/utils/Makefile @@ -0,0 +1,7 @@ +SUBDIRS := $(wildcard */.) + +all: $(SUBDIRS) +$(SUBDIRS): + $(MAKE) -C $@ + +.PHONY: all $(SUBDIRS) diff --git a/tests/utils/counters/Makefile b/tests/utils/counters/Makefile new file mode 100644 index 0000000..7931aaf --- /dev/null +++ b/tests/utils/counters/Makefile @@ -0,0 +1,3 @@ +test: + latexmk -c test.tex + latexmk -dvi- -pdf test.tex diff --git a/tests/utils/counters/test.cnt b/tests/utils/counters/test.cnt new file mode 100644 index 0000000..bbe51f4 --- /dev/null +++ b/tests/utils/counters/test.cnt @@ -0,0 +1,12 @@ +subparagraph: 1.0.0.0.0 +paragraph: 1.0.0.0 +subsubsection: 1.0.0 +subsection: 1.0 +section: 1 +subparagraph: 2.0.0.0.0 +paragraph: 2.0.0.0 +subsubsection: 2.0.0 +subsection: 2.0 +section: 2 +dummy: 1 +page: 2 diff --git a/tests/utils/counters/test.tex b/tests/utils/counters/test.tex new file mode 100644 index 0000000..e87b7d9 --- /dev/null +++ b/tests/utils/counters/test.tex @@ -0,0 +1,15 @@ +\documentclass{article} + +\usepackage{mkessler-counters} + +\begin{document} + +\section{test} + +\section{test} + +\newcounter{dummy} +\refstepcounter{dummy} + + +\end{document} diff --git a/tests/utils/findpackage/Makefile b/tests/utils/findpackage/Makefile new file mode 100644 index 0000000..7931aaf --- /dev/null +++ b/tests/utils/findpackage/Makefile @@ -0,0 +1,3 @@ +test: + latexmk -c test.tex + latexmk -dvi- -pdf test.tex diff --git a/tests/utils/findpackage/test.tex b/tests/utils/findpackage/test.tex new file mode 100644 index 0000000..afa2bdb --- /dev/null +++ b/tests/utils/findpackage/test.tex @@ -0,0 +1,10 @@ +\RequirePackage{mkessler-findpackage} +\findpackagebycommand{blindtext} + +\documentclass{article} + +\usepackage{blindtext} + +\begin{document} +Just a small test. +\end{document} diff --git a/tests/wip/Makefile b/tests/wip/Makefile new file mode 100644 index 0000000..61533ed --- /dev/null +++ b/tests/wip/Makefile @@ -0,0 +1,7 @@ +SUBDIRS := $(wildcard */.) + +all: $(SUBDIRS) +$(SUBDIRS): + $(MAKE) -C $@ + +.PHONY: all $(SUBDIRS) diff --git a/tests/wip/proof/Makefile b/tests/wip/proof/Makefile new file mode 100644 index 0000000..5c90a51 --- /dev/null +++ b/tests/wip/proof/Makefile @@ -0,0 +1,4 @@ +skip: .skip + +.skip: + @touch .skip diff --git a/tests/wip/proof/test.tex b/tests/wip/proof/test.tex new file mode 100644 index 0000000..6205bab --- /dev/null +++ b/tests/wip/proof/test.tex @@ -0,0 +1,48 @@ +\documentclass[german]{article} + +\usepackage{mkessler-proof} +\usepackage{mkessler-fancythm} +\usepackage{mkessler-hypersetup} +\usepackage{parskip} + +\begin{document} +\section{test} + +\begin{theorem}\label{thm:krass} + Man sollte nach Würzburg fahren. +\end{theorem} + +\begin{rproof}{thm:krass} + \begin{claim}\label{cl:qed} + Der QED ist toll. + \end{claim} + Um \autoref{cl:qed} zu beweisen, brauchen wir zunächst ein Lemma. +\end{rproof} + +\begin{lemma}\label{lm:krass} + Mathevereine sind krass. +\end{lemma} + +\begin{rproof}{lm:krass} + \begin{claim} + Mathe ist cool. + \end{claim} + \begin{subproof} + trivial. + \end{subproof} + Damit folgt nun das Lemma. +\end{rproof} + +Nun kommen wir wieder zurück zum eigentlichen Beweis: + +\begin{rproof}{thm:krass} + \begin{claim}\label{cl:würzburg} + Der QED macht ein Seminar in Würzburg + \end{claim} + \begin{subproof} + Zu prüfen in der DB. Fakt! + \end{subproof} +Aus \autoref{cl:qed} und \autoref{cl:würzburg} folgt nun die Aussage. +\end{rproof} +test +\end{document} diff --git a/tests/wip/restate/Makefile b/tests/wip/restate/Makefile new file mode 100644 index 0000000..7931aaf --- /dev/null +++ b/tests/wip/restate/Makefile @@ -0,0 +1,3 @@ +test: + latexmk -c test.tex + latexmk -dvi- -pdf test.tex diff --git a/tests/wip/restate/test.tex b/tests/wip/restate/test.tex new file mode 100644 index 0000000..f64a2f0 --- /dev/null +++ b/tests/wip/restate/test.tex @@ -0,0 +1,16 @@ +\documentclass{article} + +\usepackage[german]{mkessler-restate} + +\begin{document} + +\NewDocumentCommand{\testbla}{s}{ +\ifx#1\BooleanTrue Starred version called\else\relax\fi + \LaTeX +} + +\undef\testbla + +\restatetheorem{testbla} + +\end{document}