You could make your state node into a 'multipart' node. For that, you need to load the `shapes.multipart`

TikZ library. You should then be able to use all the placement options that you're used to.

Result:

Code:

```
\documentclass[border=1cm]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.multipart}
\begin{document}
\begin{tikzpicture}
\node[rectangle split, rectangle split parts=2, draw, rounded corners]{%
\tikz\node[draw=red, rectangle, rounded corners]{titel};
\nodepart{two}
\begin{tabular}{c}
content \\ more content
\end{tabular}
};
\end{tikzpicture}
\end{document}
```

PS. You might alternatively make your state node into a `matrix`

, but then it's quite hard to get the horizontal line that you want (see this discussion, for instance).

A solution which allows to draw `intersection segments`

of any two intersections is available as tikz library `fillbetween`

.

This library works as general purpose `tikz`

library, but it is shipped with `pgfplots`

and you need to load `pgfplots`

in order to make it work:

```
\documentclass{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{fillbetween}
\begin{document}
\begin{tikzpicture}
\draw [name path=red,red] (120:1.06) circle (1.9);
%\draw [name path=yellow,yellow] (0:1.06) circle (2.12);
\draw [name path=green,green!50!black] (0:0.77) circle (2.41);
\draw [name path=blue,blue] (0:0) circle (1.06);
% substitute this temp path by `\path` to make it invisible:
\draw[name path=temp1, intersection segments={of=red and blue,sequence=L1}];
\draw[red,-stealth,ultra thick, intersection segments={of=temp1 and green,sequence=L3}];
\end{tikzpicture}
\end{document}
```

The key `intersection segments`

is described in all detail in the `pgfplots`

reference manual section "5.6.6 Intersection Segment Recombination"; the key idea in this case is to

create a temporary path `temp1`

which is the first intersection segment of `red and blue`

, more precisely, it is the first intersection segment in the `L`

eft argument in `red and blue`

: `red`

. This path is drawn as thin black path. Substitute its `\draw`

statement by `\path`

to make it invisible.

Compute the desired `intersection segment`

by intersecting `temp1`

and `green`

and use the correct intersection segment. By trial and error I figured that it is the third segment of path `temp1`

which is written as `L3`

(`L`

= left argument in `temp1 and green`

and `3`

means third segment of that path).

The argument involves some trial and error because `fillbetween`

is unaware of the fact that end and startpoint are connected -- and we as end users do not see start and end point.

Note that you can connect these path segments with other paths. If such an `intersection segment`

should be the continuation of another path, use `--`

as before the first argument in sequence. This allows to fill paths segments:

```
\documentclass{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{fillbetween}
\begin{document}
\begin{tikzpicture}
\draw [name path=red,red] (120:1.06) circle (1.9);
%\draw [name path=yellow,yellow] (0:1.06) circle (2.12);
\draw [name path=green,green!50!black] (0:0.77) circle (2.41);
\draw [name path=blue,blue] (0:0) circle (1.06);
% substitute this temp path by `\path` to make it invisible:
\draw[name path=temp1, intersection segments={of=red and blue,sequence=L1}];
\draw[red,fill=blue,-stealth,ultra thick, intersection segments={of=temp1 and green,sequence=L3}]
[intersection segments={of=temp1 and green, sequence={--R2}}]
;
\end{tikzpicture}
\end{document}
```

## Best Answer

What is a

`coordinate`

?A coordinate is nothing but a

`node`

shape that doesn’t have anything except one coordinate (the`.center`

anchor is the same as every other anchor).How does TikZ work?

It scans its way through the whole

`\path`

and looks out for key words or sequences of characters in a combination of`\futurelet`

s and`ifnextchar`

s.If it encounters a

`c`

it tests for a following`i`

(→

) or a followingcircle`h`

(→

), otherwise it must (should) be anchild`o`

that follows. It tests than whether another`o`

follows, otherwise it must be`cos`

.If everything works (i.e.

`co`

without a following`o`

)`\tikz@coordinate`

will be called.The macro

`\tikz@coordinate`

(that gobbles`ordinate`

) then checks for an`[`

(or assumes an option-less coordinate, ergo an empty`[]`

). TikZ allows at this point only`coordinate [optional arguments] (optional name)`

(and the`at`

part at the end that I will leave out now). If this sequence is found (with or without`at`

) an actual node is made with he absolute final (empty) node text (which is ignored in the case of a`coordinate`

anyway).The node text

`{}`

is absolutely final on the node path operator in a path. After that, every option used is applied to the path (like`[draw]`

). In your example the`[midway]`

is set for the path (which is the default anyway) and does only apply to nodes/coordinates between a path operator (like`--`

) and the target coordinate.The

`\tikz@fig ode`

macro works a little bit different because it always tests for options`[`

, a name`(`

and a position`at`

. Those can be mixed freely as it works similar to the whole path which is ended with`;`

.Another way to look at it is to use:

In the first line the coordinate (which doesn’t have a path) would be red, in the second case, the path is red as if you would have written

`\draw[red]`

.Well, how would you signalize the end of a

`coordinate`

path operation? TikZ definesin exactly this order with one of the optional sequences being the final part of the coordinate. It doesn’t even allow

but it does