-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.tex
executable file
·87 lines (83 loc) · 2.58 KB
/
example.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
%\documentclass[tikz, margin=3mm]{standalone}
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{matrix}
\newcommand\x{\times}
\begin{document}
%%% step0_cover
\begin{tikzpicture}
\matrix [matrix of math nodes,
nodes={rectangle,
minimum size=1.5em, text depth=0.25ex,
inner sep=0pt, outer sep=0pt,
anchor=center},
%row 2/.append style = {nodes={preaction={fill=cyan!30}}},
column 1/.append style = {nodes={fill=red!60},fill opacity=0.5, text opacity=1},
inner sep=0pt,
left delimiter={[}, right delimiter={]},
]
{
0^\star & 0 & 2 \\
0 & 2 & 4 \\
0 & 3 & 6 \\
};
\end{tikzpicture}
%%% step1_prime
\begin{tikzpicture}
\matrix [matrix of math nodes,
nodes={rectangle,
minimum size=1.5em, text depth=0.25ex,
inner sep=0pt, outer sep=0pt,
anchor=center},
row 1/.append style = {nodes={preaction={fill=cyan!30}}},
%column 1/.append style = {nodes={fill=red!60},fill opacity=0.5, text opacity=1},
inner sep=0pt,
left delimiter={[}, right delimiter={]},
]
{
0^\star & 0^\prime & 2 \\
|[text=red!80]|0^\prime & 2 & 4 \\
0 & 3 & 6 \\
};
\end{tikzpicture}
%%% step2_cover
\begin{tikzpicture}
\matrix [matrix of math nodes,
column sep = 2pt,
nodes={rectangle,
minimum size=1.5em, text depth=0.25ex,
inner sep=0pt, outer sep=0pt,
anchor=center},
%row 1/.append style = {nodes={preaction={fill=cyan!30}}},
column 1/.append style = {nodes={fill=red!60},fill opacity=0.5, text opacity=1},
column 2/.append style = {nodes={fill=red!60},fill opacity=0.5, text opacity=1},
inner sep=0pt,
left delimiter={[}, right delimiter={]},
]
{
0 & 0^\star & 2 \\
0^\star & 2 & 4 \\
0 & 3 & 6 \\
};
\end{tikzpicture}
%%% step3_min
\begin{tikzpicture}
\matrix [matrix of math nodes,
column sep = 2pt,
nodes={rectangle,
minimum size=1.5em, text depth=0.25ex,
inner sep=0pt, outer sep=0pt,
anchor=center},
%row 1/.append style = {nodes={preaction={fill=cyan!30}}},
column 1/.append style = {nodes={fill=red!60},fill opacity=0.5, text opacity=1},
column 2/.append style = {nodes={fill=red!60},fill opacity=0.5, text opacity=1},
inner sep=0pt,
left delimiter={[}, right delimiter={]},
]
{
0 & 0^\star & |[draw, circle, fill=red!20]|2 \\
0^\star & 2 & 4 \\
0 & 3 & 6 \\
};
\end{tikzpicture}
\end{document}