-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathframe-extension-encoding.tex
135 lines (126 loc) · 2.44 KB
/
frame-extension-encoding.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
% SPDX-License-Identifier: CC-BY-4.0
% Copyright 2018 Toni Dietze
\documentclass[beamer]{standalone}
\input{preamble.tex}
\begin{document}
\begin{standaloneframe}{\jobname}
\tikzset{mytree/.style=
{ anchor=base
, baseline=0
, every node/.style={minimum width=0.9em, tight}
, sibling distance=2em
, text depth=0.2em
, text height=0.7em
}}
\begin{columns}[onlytextwidth]
\column{0.3\linewidth}\centering
unranked tree
\begin{tikzpicture}[mytree]
\node {\(σ\)}
child { node {\(α\)}
}
child { node {\(γ\)}
child { node {\(α\)}
}
}
child { node {\(β\)}
};
\end{tikzpicture}
\pause
\column{0.7\linewidth}\centering
\alt<-.(4)>
{binarizing the tree}
{extension encoding}
\begin{tikzpicture}
[ mytree
, onslide={<.(2)->
level 1/.style={sibling distance=4em}
, level 2/.style={sibling distance=4em}
, level 3/.style={sibling distance=2em}
}
]
\path (-5.6em, -7.4em) rectangle (2.6em, 0);
\node<+> {\(σ\)}
child { node {\(α\)}
}
child { node {\(γ\)}
child { node {\(α\)}
}
}
child { node {\(β\)}
};
\node<+> {\(\$\)}
child { node {\(σ\)}
child { node {\(α\)}
}
child { node {\(γ\)}
child { node {\(α\)}
}
}
}
child { node {\(β\)}
};
\node<+> {\(\$\)}
child { node {\(\$\)}
child { node {\(σ\)}
child { node {\(α\)}
}
}
child { node {\(γ\)}
child { node {\(α\)}
}
}
}
child { node {\(β\)}
};
\node<+> {\(\$\)}
child { node {\(\$\)}
child { node {\(\$\)}
child { node {\(σ\)}
}
child { node {\(α\)}
}
}
child { node {\(γ\)}
child { node {\(α\)}
}
}
}
child { node {\(β\)}
};
\node<+> {\(\$\)}
child { node {\(\$\)}
child { node {\(\$\)}
child { node {\(σ\)}
}
child { node {\(α\)}
}
}
child { node {\(\$\)}
child { node {\(γ\)}
}
child { node {\(α\)}
}
}
}
child { node {\(β\)}
};
\end{tikzpicture}
\mycite<.->{2004CarmeNiehrenTommasi}
% % first-child-next-sibling encoding
% \begin{tikzpicture}[mytree, sibling distance=4em]
% \node {\(σ\)}
% child { node {\(α\)}
% child[missing]
% child { node {\(γ\)}
% child { node {\(α\)}
% }
% child { node {\(β\)}
% }
% }
% }
% child[missing];
% \end{tikzpicture}
\end{columns}
\end{standaloneframe}
\end{document}