figure-determine-final-word-alignment.tex 1.94 KB
Newer Older
曹润柘 committed
1 2
\definecolor{ugreen}{rgb}{0,0.5,0}
\begin{tikzpicture}[scale=0.5]
zhoutao committed
3 4
	\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
5
		
zhoutao committed
6
		\node[align=center,minimum width=2.4em,minimum height=1.6em,minimum width=6em] (n11) at (0,0){\small{机器译文:}};
曹润柘 committed
7 8 9
		\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
10
		\node[cand,anchor=west] (n15) at ([xshift=1em]n14.east){it};
曹润柘 committed
11 12
		\node[cand,anchor=west] (n16) at ([xshift=1em]n15.east){like};
		\node[cand,anchor=west] (n17) at ([xshift=1em]n16.east){he};
zhoutao committed
13 14 15
		\node[cand,anchor=west] (n18) at ([xshift=1em]n17.east){?};

		\node[align=center,minimum width=2.4em,minimum height=1.6em,anchor=north,minimum width=6em] (n21) at ([yshift=-6em]n11.south){\small{参考答案:}};
曹润柘 committed
16 17 18 19
		\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};
20
		\node[ref,anchor=west] (n26) at ([xshift=1em]n25.east){can};
曹润柘 committed
21
		\node[ref,anchor=west] (n27) at ([xshift=1em]n26.east){like};
zhoutao committed
22 23
		\node[ref,anchor=west] (n28) at ([xshift=1em]n27.east){him};
		\node[ref,anchor=west] (n29) at ([xshift=1em]n28.east){?};
曹润柘 committed
24 25 26 27 28
		
		
		\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
29 30
		\draw[line width=1.6pt,blue!40] (n18.south) -- (n29.north);
		\draw[line width=1.6pt,orange!40] (n17.south) -- (n28.north);
曹润柘 committed
31 32 33 34
		\draw[line width=1.6pt,ugreen!40](n14.south) -- (n24.north);
		

\end{tikzpicture}