已解决:边框装饰产生额外的但位移的箭头尖

已解决:边框装饰产生额外的但位移的箭头尖

我想使用带箭头的装饰路径。但如果我使用边框装饰,箭头尖端定位就会发生一些事情:

\documentclass{article}
\usepackage{tikz,amsmath, amssymb,bm,color}
\usepackage[margin=0cm,nohead]{geometry}
\usepackage[active,tightpage]{preview}
\usepackage{pgfplots}
\usetikzlibrary{decorations}
\usetikzlibrary{decorations.shapes}
\PreviewEnvironment{tikzpicture}
%
\begin{document}
\begin{tikzpicture}[>=stealth]
\node[draw=black, circle, inner sep=2mm] (v0) at (0,2) {};
\node[draw=black, circle, inner sep=2mm] (v1) at (1,2) {};
% ADDITIONAL WRONG ARROW TIP:
\draw[postaction={draw, decorate},->,decoration={border,segment length=3mm, angle=90, amplitude=.5mm}](0,0)--(v0);
% ONLY THE WRONG ARROW TIP:
\draw[postaction={draw, decorate,->},decoration={border,segment length=3mm, angle=90, amplitude=.5mm}](1,0)--(v1);
% how can I produce the right arrow tip only?
\end{tikzpicture}
\end{document} 

似乎 -> 会影响后续操作,这将导致第二个箭头位置错误。错位的箭头通常放置在正确的位置,但它“不知道自己属于哪条路径”,就像一条退化线上的箭头指向(通常是错误的)方向。

那么我怎样才能只保留第一支箭的正确位置的箭头呢?

更新:这是在我的计算机上显示的样子:

以下是

从 Gonzalo Medina 的评论(谢谢!)来看,这似乎是一个简单的过时的 tikz(MikTex...)问题。然后我尝试更新我的 tikz,如果问题仍然存在,我会再次更新此帖子...

更新:重新安装 MikTeX 成功了!(由于某种原因,包管理器在我的电脑上无法工作)可能是在编译过程中下载了新的 TikZ 3.0。

谢谢!

相关内容