Skip to content

Commit 30295a0

Browse files
committed
matrices: Add some tests for & as cell separator.
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 <[email protected]>
1 parent fbcaa39 commit 30295a0

23 files changed

+121019
-0
lines changed

testfiles/tikzmatrix-beamer.latexdvips.tlg

Lines changed: 902 additions & 0 deletions
Large diffs are not rendered by default.

testfiles/tikzmatrix-beamer.luatex.tlg

Lines changed: 724 additions & 0 deletions
Large diffs are not rendered by default.

testfiles/tikzmatrix-beamer.lvt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
\documentclass{beamer}
2+
\usepackage{tikz}
3+
\usetikzlibrary{matrix}
4+
\input{regression-test}
5+
6+
\begin{document}
7+
\showoutput
8+
\START
9+
\BEGINTEST{Beamer frame: simple matrix}
10+
\begin{frame}{TikZ matrix test}
11+
\begin{tikzpicture}
12+
\matrix[fill=cyan, draw=red, matrix of nodes]{A & B & C \\ D & E \\};
13+
\end{tikzpicture}
14+
\end{frame}
15+
\ENDTEST
16+
\END
17+
\end{document}

testfiles/tikzmatrix-beamer.tlg

Lines changed: 708 additions & 0 deletions
Large diffs are not rendered by default.

testfiles/tikzmatrix-beamer.xetex.tlg

Lines changed: 1873 additions & 0 deletions
Large diffs are not rendered by default.

testfiles/tikzmatrix-cd.latexdvips.tlg

Whitespace-only changes.

testfiles/tikzmatrix-cd.latexdvisvgm.tlg

Lines changed: 1668 additions & 0 deletions
Large diffs are not rendered by default.

testfiles/tikzmatrix-cd.luatex.tlg

Whitespace-only changes.

testfiles/tikzmatrix-cd.lvt

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
% Test commutative diagrams with tikz-cd.
2+
\documentclass[tikz]{standalone}
3+
\usepackage{tikz-cd,amsmath}
4+
\input{regression-test}
5+
6+
\begin{document}
7+
\showoutput
8+
\START
9+
\BEGINTEST{Matrices in commutative diagram}
10+
\begin{tikzcd}[/tikz/commutative diagrams/diagrams={column sep=large}]
11+
\begin{bmatrix}
12+
A_{1} & B_{1} \\
13+
A_{2} & B_{2}
14+
\end{bmatrix}
15+
% The braces are protecting the &, without them it doesn't compile
16+
% as of tikz-dependency 1.1.
17+
\ar[r, "{\begin{pmatrix} e & f \\ g & h \end{pmatrix}}"]
18+
&
19+
\begin{bmatrix}
20+
C_{1} & D_{1} \\
21+
C_{2} & D_{2}
22+
\end{bmatrix}
23+
\end{tikzcd}
24+
\ENDTEST
25+
26+
\BEGINTEST{Homotopy extension}
27+
\begin{tikzcd}[row sep=huge, column sep=large]
28+
0 \ar[r] & L_{1} \ar[r, "{\begin{bmatrix} 1 & 0 \end{bmatrix}}"]
29+
\ar[d, "g"]
30+
&
31+
\left(
32+
L_{1} \oplus K_{1}[1],
33+
\begin{bmatrix}
34+
\partial_{L_{1}} & 0 \\
35+
f_{1} & -\partial_{K_{1}}
36+
\end{bmatrix}
37+
\right)
38+
\ar[r, "{\begin{bmatrix} 0 \\ 1 \end{bmatrix}}"]
39+
\ar[d, "{\begin{bmatrix} g & 0 \\ s & h \end{bmatrix}}"]
40+
& K_{1}[1] \ar[r] \ar[d, "h"] & 0 \\
41+
0 \ar[r] & L_{2} \ar[r, "{\begin{bmatrix} 1 & 0 \end{bmatrix}}"]
42+
&
43+
\left(
44+
L_{2} \oplus K_{2}[1],
45+
\begin{bmatrix}
46+
\partial_{L_{2}} & 0 \\
47+
f_{2} & -\partial_{K_{2}}
48+
\end{bmatrix}
49+
\right)
50+
\ar[r, "{\begin{bmatrix} 0 \\ 1 \end{bmatrix}}"]
51+
& K_{2}[1] \ar[r] & 0
52+
\end{tikzcd}
53+
\ENDTEST
54+
\END
55+
\end{document}

testfiles/tikzmatrix-cd.tlg

Whitespace-only changes.

testfiles/tikzmatrix-cd.xetex.tlg

Whitespace-only changes.

testfiles/tikzmatrix-dependency.latexdvips.tlg

Lines changed: 17400 additions & 0 deletions
Large diffs are not rendered by default.

testfiles/tikzmatrix-dependency.latexdvisvgm.tlg

Lines changed: 12749 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)