| 1 |
Ti*k*Z-SWIGs |
| 2 |
============================================================= |
| 3 |
|
| 4 |
The `tikz-swigs` package provides horizontally and vertically split elliptical (pairs of) nodes in Ti*k*Z. |
| 5 |
|
| 6 |
The two new multi-part shapes are `swig hsplit` and `swig vsplit`. These build on and extend the existing `ellipse split` shape provided in the `shapes.multipart` Ti*k*Z library in the following ways: |
| 7 |
|
| 8 |
- Space can be introduced physically separating the two sub-parts. |
| 9 |
- The cut that divides the ellipse can be horizontal `hsplit` or vertical `vsplit`. |
| 10 |
- The enclosing lines for each sub-part can be colored differently or can be double lines. |
| 11 |
- With `vsplit` the position of the dividing line relative to the original undivided ellipse is determined based on the relative size of the label text for the two pieces. |
| 12 |
- Anchors determined by angles are supported, for example `mynode.170`. |
| 13 |
|
| 14 |
The package name derives from the fact that split ellipses of this type are used to represent Single-World Intervention Graph (SWIG) models which are used in counterfactual causal inference. |
| 15 |
|
| 16 |
The tikz-swigs package is licensed under the The LaTeX Project Public License 1.3c and the |
| 17 |
GNU General Public License, version 2. |
| 18 |
|
| 19 |
Thanks to Robin J. Evans, F. Richard Guo and Ilya Shpitser for providing guidance, motivation and encouragement. |
| 20 |
|
| 21 |
-- Thomas Richardson <[email protected]> 9 July 2021 |
| 22 |
|