figure-match-words-with-stem.tex 3.36 KB
Newer Older
曹润柘 committed
1
\begin{tikzpicture}[scale=0.5]
zhoutao committed
2 3
	\tikzstyle{cand} = [draw,line width=1pt,align=center,minimum width=2.6em,minimum height=1.6em,drop shadow={shadow xshift=0.15em},fill=green!15]
	\tikzstyle{ref} = [draw,line width=1pt,align=center,minimum width=2.6em,minimum height=1.6em,drop shadow={shadow xshift=0.15em},fill=red!15]
曹润柘 committed
4
		
zhoutao committed
5
		\node[align=center,minimum width=2.4em,minimum height=1.6em,minimum width=6em] (n11) at (0,0){\small{机器译文:}};
曹润柘 committed
6 7 8
		\node[cand,anchor=west] (n12) at ([xshift=0.0em]n11.east){Can};
		\node[cand,anchor=west] (n13) at ([xshift=1em]n12.east){I};
		\node[cand,anchor=west] (n14) at ([xshift=1em]n13.east){have};
zhoutao committed
9
		\node[cand,anchor=west] (n15) at ([xshift=1em]n14.east){it};
曹润柘 committed
10 11
		\node[cand,anchor=west] (n16) at ([xshift=1em]n15.east){like};
		\node[cand,anchor=west] (n17) at ([xshift=1em]n16.east){he};
zhoutao committed
12
		\node[cand,anchor=west] (n18) at ([xshift=1em]n17.east){?};
曹润柘 committed
13
		
zhoutao committed
14
		\node[align=center,minimum width=2.4em,minimum height=1.6em,anchor=north,minimum width=6em] (n21) at ([yshift=-6em]n11.south){\small{参考答案:}};
曹润柘 committed
15 16 17 18
		\node[ref,anchor=west] (n22) at ([xshift=0.0em]n21.east){Can};
		\node[ref,anchor=west] (n23) at ([xshift=1em]n22.east){I};
		\node[ref,anchor=west] (n24) at ([xshift=1em]n23.east){eat};
		\node[ref,anchor=west] (n25) at ([xshift=1em]n24.east){this};
19
		\node[ref,anchor=west] (n26) at ([xshift=1em]n25.east){can};
曹润柘 committed
20
		\node[ref,anchor=west] (n27) at ([xshift=1em]n26.east){like};
zhoutao committed
21 22
		\node[ref,anchor=west] (n28) at ([xshift=1em]n27.east){him};
		\node[ref,anchor=west] (n29) at ([xshift=1em]n28.east){?};
曹润柘 committed
23
		
zhoutao committed
24
		\node[align=center,minimum width=2.4em,minimum height=1.6em,minimum width=6em] (n31) at ([yshift=-5em]n21.south){\small{机器译文:}};
曹润柘 committed
25 26 27
		\node[cand,anchor=west] (n32) at ([xshift=0.0em]n31.east){Can};
		\node[cand,anchor=west] (n33) at ([xshift=1em]n32.east){I};
		\node[cand,anchor=west] (n34) at ([xshift=1em]n33.east){have};
zhoutao committed
28
		\node[cand,anchor=west] (n35) at ([xshift=1em]n34.east){it};
曹润柘 committed
29 30
		\node[cand,anchor=west] (n36) at ([xshift=1em]n35.east){like};
		\node[cand,anchor=west] (n37) at ([xshift=1em]n36.east){he};
zhoutao committed
31 32 33
		\node[cand,anchor=west] (n38) at ([xshift=1em]n37.east){?};

		\node[align=center,minimum width=2.4em,minimum height=1.6em,anchor=north,minimum width=6em] (n41) at ([yshift=-6em]n31.south){\small{参考答案:}};
曹润柘 committed
34 35 36 37
		\node[ref,anchor=west] (n42) at ([xshift=0.0em]n41.east){Can};
		\node[ref,anchor=west] (n43) at ([xshift=1em]n42.east){I};
		\node[ref,anchor=west] (n44) at ([xshift=1em]n43.east){eat};
		\node[ref,anchor=west] (n45) at ([xshift=1em]n44.east){this};
38
		\node[ref,anchor=west] (n46) at ([xshift=1em]n45.east){can};
曹润柘 committed
39
		\node[ref,anchor=west] (n47) at ([xshift=1em]n46.east){like};
zhoutao committed
40 41
		\node[ref,anchor=west] (n48) at ([xshift=1em]n47.east){him};
		\node[ref,anchor=west] (n49) at ([xshift=1em]n48.east){?};
曹润柘 committed
42 43 44 45
		
		\draw[line width=1.6pt,blue!40] (n12.south) -- (n22.north);
		\draw[line width=1.6pt,blue!40] (n13.south) -- (n23.north);
		\draw[line width=1.6pt,blue!40] (n16.south) -- (n27.north);
zhoutao committed
46 47
		\draw[line width=1.6pt,blue!40] (n18.south) -- (n29.north);
		\draw[line width=2pt,orange!40] (n17.south) -- (n28.north);
曹润柘 committed
48 49 50 51
		
		\draw[line width=1.6pt,blue!40] (n32.south) -- (n46.north);
		\draw[line width=1.6pt,blue!40] (n33.south) -- (n43.north);
		\draw[line width=1.6pt,blue!40] (n36.south) -- (n47.north);
zhoutao committed
52 53
		\draw[line width=1.6pt,blue!40] (n38.south) -- (n49.north);
		\draw[line width=2pt,orange!40] (n37.south) -- (n48.north);
曹润柘 committed
54 55

\end{tikzpicture}