add test files for packages (not finished yet)

This commit is contained in:
Maximilian Keßler 2021-10-07 13:55:39 +02:00
parent 27e3a7f4c3
commit d336dde3d8
50 changed files with 581 additions and 0 deletions

6
tests/.gitignore vendored Normal file
View file

@ -0,0 +1,6 @@
*.aux
*.fdb_latexmk
*.fls
*.log
*.pdf
wip/proof/.skip

7
tests/Makefile Normal file
View file

@ -0,0 +1,7 @@
SUBDIRS := $(wildcard */.)
all: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
.PHONY: all $(SUBDIRS)

View file

@ -0,0 +1,7 @@
SUBDIRS := $(wildcard */.)
all: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
.PHONY: all $(SUBDIRS)

View file

@ -0,0 +1,3 @@
test:
latexmk -c test.tex
latexmk -dvi- -pdf test.tex

View file

@ -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}

View file

@ -0,0 +1,7 @@
SUBDIRS := $(wildcard */.)
all: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
.PHONY: all $(SUBDIRS)

View file

@ -0,0 +1,3 @@
test:
latexmk -c test.tex
latexmk -dvi- -pdf test.tex

View file

@ -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}

View file

@ -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}

7
tests/math/Makefile Normal file
View file

@ -0,0 +1,7 @@
SUBDIRS := $(wildcard */.)
all: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
.PHONY: all $(SUBDIRS)

View file

@ -0,0 +1,3 @@
test:
latexmk -c test.tex
latexmk -pdf -dvi- test.tex

View file

@ -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}

3
tests/math/math/Makefile Normal file
View file

@ -0,0 +1,3 @@
test:
latexmk -c test.tex
latexmk -dvi- -pdf test.tex

17
tests/math/math/test.tex Normal file
View file

@ -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}

View file

@ -0,0 +1,3 @@
test:
latexmk -c test.tex
latexmk -pdf -dvi- test.tex

View file

@ -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}

View file

@ -0,0 +1,3 @@
test:
latexmk -c test.tex
latexmk -dvi- -pdf test.tex

View file

@ -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}

View file

@ -0,0 +1,3 @@
test:
latexmk -c test.tex
latexmk -dvi- -pdf test.tex

View file

@ -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}

View file

@ -0,0 +1,3 @@
test:
latexmk -c test.tex
latexmk -dvi- -pdf test.tex

View file

@ -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}

View file

@ -0,0 +1,3 @@
test:
latexmk -c test.tex
latexmk -dvi- -pdf test.tex

View file

@ -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}

View file

@ -0,0 +1,3 @@
test:
latexmk -c test.tex
latexmk -dvi- -pdf test.tex

View file

@ -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}

View file

@ -0,0 +1,3 @@
test:
latexmk -c test.tex
latexmk -dvi- -pdf test.tex

View file

@ -0,0 +1,7 @@
\documentclass{article}
\usepackage{mkessler-unicodechar}
\begin{document}
Das griechische Alphabet αβγδεζετικλμνξοπρστυφχψω
\end{document}

7
tests/misc/Makefile Normal file
View file

@ -0,0 +1,7 @@
SUBDIRS := $(wildcard */.)
all: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
.PHONY: all $(SUBDIRS)

View file

@ -0,0 +1,3 @@
test:
latexmk -c test.tex
latexmk -dvi- -pdf test.tex

View file

@ -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

View file

@ -0,0 +1 @@
\BOOKMARK [1][-]{section.1}{test}{}% 1

View file

@ -0,0 +1,86 @@
<?xml version="1.0" standalone="yes"?>
<!-- logreq request file -->
<!-- logreq version 1.0 / dtd version 1.0 -->
<!-- Do not edit this file! -->
<!DOCTYPE requests [
<!ELEMENT requests (internal | external)*>
<!ELEMENT internal (generic, (provides | requires)*)>
<!ELEMENT external (generic, cmdline?, input?, output?, (provides | requires)*)>
<!ELEMENT cmdline (binary, (option | infile | outfile)*)>
<!ELEMENT input (file)+>
<!ELEMENT output (file)+>
<!ELEMENT provides (file)+>
<!ELEMENT requires (file)+>
<!ELEMENT generic (#PCDATA)>
<!ELEMENT binary (#PCDATA)>
<!ELEMENT option (#PCDATA)>
<!ELEMENT infile (#PCDATA)>
<!ELEMENT outfile (#PCDATA)>
<!ELEMENT file (#PCDATA)>
<!ATTLIST requests
version CDATA #REQUIRED
>
<!ATTLIST internal
package CDATA #REQUIRED
priority (9) #REQUIRED
active (0 | 1) #REQUIRED
>
<!ATTLIST external
package CDATA #REQUIRED
priority (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8) #REQUIRED
active (0 | 1) #REQUIRED
>
<!ATTLIST provides
type (static | dynamic | editable) #REQUIRED
>
<!ATTLIST requires
type (static | dynamic | editable) #REQUIRED
>
<!ATTLIST file
type CDATA #IMPLIED
>
]>
<requests version="1.0">
<internal package="biblatex" priority="9" active="0">
<generic>latex</generic>
<provides type="dynamic">
<file>test.bcf</file>
</provides>
<requires type="dynamic">
<file>test.bbl</file>
</requires>
<requires type="static">
<file>blx-dm.def</file>
<file>blx-compat.def</file>
<file>biblatex.def</file>
<file>standard.bbx</file>
<file>alphabetic.bbx</file>
<file>alphabetic.cbx</file>
<file>biblatex.cfg</file>
<file>english.lbx</file>
</requires>
</internal>
<external package="biblatex" priority="5" active="0">
<generic>biber</generic>
<cmdline>
<binary>biber</binary>
<infile>test</infile>
</cmdline>
<input>
<file>test.bcf</file>
</input>
<output>
<file>test.bbl</file>
</output>
<provides type="dynamic">
<file>test.bbl</file>
</provides>
<requires type="dynamic">
<file>test.bcf</file>
</requires>
<requires type="editable">
<file>bibliography.bib</file>
<file>images.bib</file>
</requires>
</external>
</requests>

View file

@ -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}

View file

@ -0,0 +1,3 @@
test:
latexmk -c test.tex
latexmk -dvi- -pdf test.tex

11
tests/misc/vocab/test.tex Normal file
View file

@ -0,0 +1,11 @@
\documentclass{article}
\usepackage[index]{mkessler-vocab}
\begin{document}
\section{beg}\label{foo}
\vocab{test} test.
\printvocabindex
\end{document}

View file

@ -0,0 +1 @@
\indexentry{Test}{1}

View file

@ -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.

View file

@ -0,0 +1,5 @@
\begin{theindex}
\item Test, 1
\end{theindex}

7
tests/utils/Makefile Normal file
View file

@ -0,0 +1,7 @@
SUBDIRS := $(wildcard */.)
all: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
.PHONY: all $(SUBDIRS)

View file

@ -0,0 +1,3 @@
test:
latexmk -c test.tex
latexmk -dvi- -pdf test.tex

View file

@ -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

View file

@ -0,0 +1,15 @@
\documentclass{article}
\usepackage{mkessler-counters}
\begin{document}
\section{test}
\section{test}
\newcounter{dummy}
\refstepcounter{dummy}
\end{document}

View file

@ -0,0 +1,3 @@
test:
latexmk -c test.tex
latexmk -dvi- -pdf test.tex

View file

@ -0,0 +1,10 @@
\RequirePackage{mkessler-findpackage}
\findpackagebycommand{blindtext}
\documentclass{article}
\usepackage{blindtext}
\begin{document}
Just a small test.
\end{document}

7
tests/wip/Makefile Normal file
View file

@ -0,0 +1,7 @@
SUBDIRS := $(wildcard */.)
all: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
.PHONY: all $(SUBDIRS)

4
tests/wip/proof/Makefile Normal file
View file

@ -0,0 +1,4 @@
skip: .skip
.skip:
@touch .skip

48
tests/wip/proof/test.tex Normal file
View file

@ -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}

View file

@ -0,0 +1,3 @@
test:
latexmk -c test.tex
latexmk -dvi- -pdf test.tex

View file

@ -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}