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.

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

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

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

share|improve this question
    
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
add comment

1 Answer 1

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:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.multipart}
\begin{document}
\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};
\end{tikzpicture}

\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};
\end{tikzpicture}

\end{document}
share|improve this answer
    
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
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.