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’m trying to write a tree structure in TikZ. The trees in question are labelled on the leaf only; there is no label on inner nodes. Because I don’t use node on inner nodes, the tree structure joins. However, it seems I still need to write a \node to start the tree. While I can leave its label empty, it is still displayed as a white circle which disconnect the structure. How can I avoid this?

\documentclass{article}
\usepackage{tikz}

\begin{document}

% The broken structure bothers me
\begin{tikzpicture}
\node {}
    child { node {a} }
    child {
      child {node {b}}
      child {node {c}}
    }
;
\end{tikzpicture}

% This is what I want, but without the added root.
\begin{tikzpicture}
\node {} % this node should not exist
  child {
    child { node {a} }
    child {
      child {node {b}}
      child {node {c}}
    }
  }
;
\end{tikzpicture}

\end{document}
share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

I assume this is what you want:

\begin{tikzpicture}
\coordinate
  child { node {a} }
  child {
    child {node {b}}
    child {node {c}}
  }
;
\end{tikzpicture}

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.