我在使用 tikz/pfg 2.10 的 tkz-graph 时遇到了问题。以下 mwe(从 tkz-graph 文档中获取的修改版本)似乎不考虑距离或修饰边缘。
这是一个已知的问题?
非常感谢。
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{calc,shadows,decorations.footprints}
\usepgflibrary{shapes}
\usetikzlibrary{patterns}
\usepackage{tkz-graph}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\begin{document}
Node distances: default=6cm; A-C=9cm\\
Edge A-C decorated with footprints\\
\begin{center}
\begin{tikzpicture}[node distance = 6 cm]
\GraphInit[vstyle=Shade]
\tikzset{LabelStyle/.style = {draw,
fill = yellow,
text = red}}
\tikzset{FootEdge/.style =
{decorate,
decoration={footprints, foot of=gnome},
fill = yellow,
text = red}}
\Vertex{A}
\EA(A){B}
\tikzset{node distance = 9 cm}% modifie la distance entre les nodes
\WE(A){C}
\Edge[style=FootEdge](A)(C)
\tikzset{EdgeStyle/.append style = {bend left}}
\Edge(A)(B)
\Edge(B)(A)
\end{tikzpicture}
\end{center}
\end{document}