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.

Is there a way do draw a line from the beginning of the tip of the brace, using relative positioning?

\documentclass{article} 
\usepackage{tikz}
\usetikzlibrary{shapes.multipart,positioning,decorations.pathreplacing}

\begin{document}
   \begin{tikzpicture}
     \draw[help lines] (0,0) grid (3.0,3.0);
     \node[align=center,draw,shape=rectangle split,
           rectangle split horizontal,rectangle split parts=3, text width=2cm] (A)
           {1\nodepart{two}2\nodepart{three}3};
     \draw [decoration={brace,mirror,raise=5pt},
            decorate,below=10pt](A.one south) -- node[below=10pt]{}(A.two south);
     \draw [->] (-1.1,-0.5) --(-1.1,-2);
   \end{tikzpicture}
\end{document}
share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted
\documentclass{article} 
\usepackage{tikz}
\usetikzlibrary{shapes.multipart,positioning,decorations.pathreplacing}

\begin{document}
  \begin{tikzpicture}
  \draw[help lines] (0,0) grid (3.0,3.0);
  \node[align=center,draw,shape=rectangle split,
       rectangle split horizontal,
       rectangle split parts=3, text width=2cm] (A)
        {1\nodepart{two}2\nodepart{three}3};
  \draw [decoration={brace,mirror,raise=5pt},
         decorate,below=10pt](A.one south) -- coordinate[below=10pt] (tip) (A.two south);
  \draw [->] (tip) -- (2,-2);
  \end{tikzpicture}
\end{document} 

enter image description here

share|improve this answer
add comment

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.