Skip to content

Commit

Permalink
matrices: Add some tests for & as cell separator.
Browse files Browse the repository at this point in the history
Include tests for packages: tikz-cd, tikz-dependency, beamer
(deliberately ignoring advice to not use & as cell separator).

Omit dvisvgm result for beamer: it contains complicated dvips specials.

Signed-off-by: Gábor Braun <gabor.braun@uni-duisburg-essen.de>
  • Loading branch information
gabor-braun committed Dec 18, 2021
1 parent fbcaa39 commit 30295a0
Show file tree
Hide file tree
Showing 23 changed files with 121,019 additions and 0 deletions.
902 changes: 902 additions & 0 deletions testfiles/tikzmatrix-beamer.latexdvips.tlg

Large diffs are not rendered by default.

724 changes: 724 additions & 0 deletions testfiles/tikzmatrix-beamer.luatex.tlg

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions testfiles/tikzmatrix-beamer.lvt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{matrix}
\input{regression-test}

\begin{document}
\showoutput
\START
\BEGINTEST{Beamer frame: simple matrix}
\begin{frame}{TikZ matrix test}
\begin{tikzpicture}
\matrix[fill=cyan, draw=red, matrix of nodes]{A & B & C \\ D & E \\};
\end{tikzpicture}
\end{frame}
\ENDTEST
\END
\end{document}
708 changes: 708 additions & 0 deletions testfiles/tikzmatrix-beamer.tlg

Large diffs are not rendered by default.

1,873 changes: 1,873 additions & 0 deletions testfiles/tikzmatrix-beamer.xetex.tlg

Large diffs are not rendered by default.

Empty file.
1,668 changes: 1,668 additions & 0 deletions testfiles/tikzmatrix-cd.latexdvisvgm.tlg

Large diffs are not rendered by default.

Empty file.
55 changes: 55 additions & 0 deletions testfiles/tikzmatrix-cd.lvt
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
% Test commutative diagrams with tikz-cd.
\documentclass[tikz]{standalone}
\usepackage{tikz-cd,amsmath}
\input{regression-test}

\begin{document}
\showoutput
\START
\BEGINTEST{Matrices in commutative diagram}
\begin{tikzcd}[/tikz/commutative diagrams/diagrams={column sep=large}]
\begin{bmatrix}
A_{1} & B_{1} \\
A_{2} & B_{2}
\end{bmatrix}
% The braces are protecting the &, without them it doesn't compile
% as of tikz-dependency 1.1.
\ar[r, "{\begin{pmatrix} e & f \\ g & h \end{pmatrix}}"]
&
\begin{bmatrix}
C_{1} & D_{1} \\
C_{2} & D_{2}
\end{bmatrix}
\end{tikzcd}
\ENDTEST

\BEGINTEST{Homotopy extension}
\begin{tikzcd}[row sep=huge, column sep=large]
0 \ar[r] & L_{1} \ar[r, "{\begin{bmatrix} 1 & 0 \end{bmatrix}}"]
\ar[d, "g"]
&
\left(
L_{1} \oplus K_{1}[1],
\begin{bmatrix}
\partial_{L_{1}} & 0 \\
f_{1} & -\partial_{K_{1}}
\end{bmatrix}
\right)
\ar[r, "{\begin{bmatrix} 0 \\ 1 \end{bmatrix}}"]
\ar[d, "{\begin{bmatrix} g & 0 \\ s & h \end{bmatrix}}"]
& K_{1}[1] \ar[r] \ar[d, "h"] & 0 \\
0 \ar[r] & L_{2} \ar[r, "{\begin{bmatrix} 1 & 0 \end{bmatrix}}"]
&
\left(
L_{2} \oplus K_{2}[1],
\begin{bmatrix}
\partial_{L_{2}} & 0 \\
f_{2} & -\partial_{K_{2}}
\end{bmatrix}
\right)
\ar[r, "{\begin{bmatrix} 0 \\ 1 \end{bmatrix}}"]
& K_{2}[1] \ar[r] & 0
\end{tikzcd}
\ENDTEST
\END
\end{document}
Empty file added testfiles/tikzmatrix-cd.tlg
Empty file.
Empty file.
17,400 changes: 17,400 additions & 0 deletions testfiles/tikzmatrix-dependency.latexdvips.tlg

Large diffs are not rendered by default.

12,749 changes: 12,749 additions & 0 deletions testfiles/tikzmatrix-dependency.latexdvisvgm.tlg

Large diffs are not rendered by default.

Loading

0 comments on commit 30295a0

Please sign in to comment.