我怎样才能使我画的箭头稍微粗一些并且与我拥有的每个节点之间的距离更远?
编辑:有没有比搜索 TexStackExchange 更好的方法来自己解决这些内容(就像一本流行的参考手册?)
\documentclass{article}
\usepackage[margin=0.5in]{geometry}
\usepackage{tikz}
\begin{document}
\centering
\begin{tikzpicture}
[scale=1.3,auto=left,every node/.style={rectangle,fill=blue!20}]
\node (n8) at (1,10) {FGWC / / };
\node (n7) at (1,8) {WC / $\rightarrow$ / FG};
\node (n6) at (1,6) {WCF / $\leftarrow$ / G};
\node (n5) at (1,4) {C / $\rightarrow$ / GFW};
\node (n4) at (1,2) {CFG / $\leftarrow$ / W};
\node (n3) at (1,0) {G / $\rightarrow$ / WFC};
\node (n2) at (1,-2) {GF / $\leftarrow$ / WC};
\node (n1) at (1,-4) {/ $\rightarrow$ / WCGF};
\draw [->]
(n8) edge (n7)
(n7) edge (n6)
(n6) edge (n5)
(n5) edge (n4)
(n4) edge (n3)
(n3) edge (n2)
(n2) edge (n1);
\end{tikzpicture}
\end{document}
答案1
在pgfmanual
我看来还不错,还有 VisualTi钾Z. 您可以用 缩短箭头shorten
,用 使它们变粗thick
。
\documentclass{article}
\usepackage[margin=0.5in]{geometry}
\usepackage{tikz}
\begin{document}
\centering
\begin{tikzpicture}
[scale=1.3,auto=left,every node/.style={rectangle,fill=blue!20}]
\node (n8) at (1,10) {FGWC / / };
\node (n7) at (1,8) {WC / $\rightarrow$ / FG};
\node (n6) at (1,6) {WCF / $\leftarrow$ / G};
\node (n5) at (1,4) {C / $\rightarrow$ / GFW};
\node (n4) at (1,2) {CFG / $\leftarrow$ / W};
\node (n3) at (1,0) {G / $\rightarrow$ / WFC};
\node (n2) at (1,-2) {GF / $\leftarrow$ / WC};
\node (n1) at (1,-4) {/ $\rightarrow$ / WCGF};
\draw [-latex,thick,shorten >=1pt,shorten <=1pt]
(n8) edge (n7)
(n7) edge (n6)
(n6) edge (n5)
(n5) edge (n4)
(n4) edge (n3)
(n3) edge (n2)
(n2) edge (n1);
\end{tikzpicture}
\end{document}