-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathframe-telescope.tex
94 lines (92 loc) · 2.28 KB
/
frame-telescope.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
% SPDX-License-Identifier: CC-BY-4.0
% Copyright 2018 Toni Dietze
\documentclass[beamer]{standalone}
\input{preamble.tex}
\begin{document}
\begin{standaloneframe}{\jobname}
\centering
\begin{overprint}
\onslide<2-3>\centering
\begin{tikzpicture}
\begin{scope}[anchor=base, level distance=1em, tree layout]
\node {S}
child { node {NP}
child { node {PRP} child { node (I) {I} }
}
}
child { node {VP}
child { node {VBP} child { node {see} }
}
child { node {NP}
child { node {DT} child { node {the} }
}
child { node {NN} child { node {man} }
}
}
child { node {PP}
child { node {IN} child { node {with} }
}
child { node {NP}
child { node {DT} child { node {the} }
}
child { node {NN} child { node {telescope} }
}
}
}
};
\end{scope}
\path (I) -- ++(21.5em, 0);
\end{tikzpicture}
\onslide<4>\centering
\begin{tikzpicture}
\begin{scope}[anchor=base, level distance=1em, tree layout]
\node {S}
child { node {NP}
child { node {PRP} child { node (I) {I} }
}
}
child { node {VP}
child { node {VBP} child { node {see} }
}
child[sibling pre sep=4.5em] { node {NP}
child[sibling pre sep=0] { node {NP}
child { node {DT} child { node {the} }
}
child { node {NN} child { node {man} }
}
}
child[sibling pre sep=0] { node {PP}
child { node {IN} child { node {with} }
}
child { node {NP}
child { node {DT} child { node {the} }
}
child { node {NN} child { node {telescope} }
}
}
}
}
};
\end{scope}
\path (I) -- ++(21.5em, 0);
\end{tikzpicture}
\end{overprint}
\setcounter{beamerpauses}{3}
\uncover<.(1)->{%
I \(→\)
\raisebox{-0.4\height}{%
\alt<.(1)>{%
\includegraphics[width=5em]{figure-telescope-reflected.png}%
\qquad%
\includegraphics[width=5em]{figure-telescope-without.png}%
}{%
\includegraphics[width=5em]{figure-telescope-without-reflected.png}%
\qquad%
\includegraphics[width=5em]{figure-telescope.png}%
}%
}
\(←\) man
{\hfill\tiny\color{gray}\url{http://www.clipartpanda.com/clipart_images/cartoon-boy-with-telescope-11578232}}
}%
\end{standaloneframe}
\end{document}