Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I would like to draw an arrow from the tip of a curly bracket to a node, but if I do the following, an extra arrow point is drawn just above the tip of the brace.

\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\usetikzlibrary{decorations.pathreplacing}
\begin{tikzpicture}
  \node (A) at (0,0) {Hello};
  \draw[decorate, decoration={brace, amplitude=10pt}] (2.2,-1.8) -- coordinate [left=10pt] (B) (2.2,-0.3) node {};
  \draw[-latex] (B) edge (A);
\end{tikzpicture}
\end{document}

It looks very strange and I have no idea how this extra arrow got there. If I switch the B and the A like \draw[-latex] (A) edge (B);, only one arrow is drawn, can anybody explain this and explain how to do the above correctly?

share|improve this question
    
Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  Christian Hupfer Jul 27 at 14:25
    
Almost duplicate tex.stackexchange.com/questions/82326/…. Edges should admit their own options. –  percusse Jul 27 at 14:29
    
See also http://tex.stackexchange.com/a/15587/43317 –  esdd Jul 27 at 14:31

1 Answer 1

up vote 4 down vote accepted

I think the problem involves the use of edge which creates a second construction after the main path is drawn. Since [-latex] applies to the entire command until the ;, you end up with 2 arrows. Replacing edge with a regular -- removes the problem:

\documentclass[tikz]{standalone}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}

\begin{tikzpicture}
  \node (A) at (0,0) {Hello};
  \draw[decorate, decoration={brace, amplitude=10pt}] (2.2,-1.8) -- coordinate [left=10pt] (B) (2.2,-0.3) node {};
  \draw[-latex] (B) -- (A);
\end{tikzpicture}

\end{document}

Single arrow

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.