How do you remove the line of the split within a split shape (like circle split or rectangle split). For example:

\node[draw, circle split, thick]{$1$ \nodepart{lower} $2$};

gives you a thick circle with a thick splitting line. Can the middle line be removed?

  • Welcome to TeX.sx! Note that it is unusual around here to use a greeting in your posts. You can format code in your posts by starting the line with four spaces, or by selecting the code and pressing the 10101 button in the editor. – Jake Apr 12 '11 at 6:55

This answer was given to me by Mark Wibrow (thank you Mark!). I'm quoting it here for future reference:

If you just want to eliminate the split line then try using the rectangle split draw splits key:

\begin{tikzpicture}[every node/.style={draw, anchor=text, rectangle split,rectangle split parts=3}]
\node {text \nodepart{second} \nodepart{third}third};
\node [rectangle split ignore empty parts] at (2,0)
{text \nodepart{second} \nodepart{third}third};

\begin{tikzpicture}[every node/.style={draw, anchor=text, rectangle split,rectangle split parts=3, rectangle split draw splits=false}]
\node {text \nodepart{second} \nodepart{third}third};
\node [rectangle split ignore empty parts] at (2,0)
{text \nodepart{second} \nodepart{third}third};

  • this does unfortunately not work analogously for circle nodes. is there any key for that? – IARI Jun 6 '12 at 20:53
  • @IARI Welcome to TeX.sx! Your question won't be seen by many people here, so it would be best to repost it as a fresh question. Follow-up questions like this are more than welcome! Please use the "Ask Question" link for your new question; there you can link to this question to provide the background. – Caramdir Jun 6 '12 at 20:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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