🟦 Figure checks: nodes¶
Status: reference.
The rules about the boxes themselves. README.md explains
how to read a report and record an exception. Each rule shows a faulty
figure, its report line and the fixed figure, all real files in
examples/ that tests/core/figure/test_figure_check_examples.py
compiles. Listings show the picture only.
🧠Rules on this page¶
Each rule below says what it catches and how to fix it.
node-overlap¶
Catches. Two nodes whose boxes intersect. Target: the pair,
a+b. A zone containing its nodes is not an overlap, nor is a tag on a
line (that is c6-tag-covered) or a
round node under 7mm, such as a step badge. Every node TikZ drew is
measured; an unnamed one is named by its centre, (x,y) in mm.
Faulty: a negative gap puts index on top of parse.
1 2 3 4 5 | |
1 | |
Fixed: an 8mm gap.
1 | |
| Faulty | Fixed |
|---|---|
![]() |
![]() |
Fix. More room between the pair (node distance, a gap). A pair
named (x,y) is a node the source does not name (a zone title, a note,
a pin, a child), at that point in mm. A label turned a quarter is
measured as set; text at any other angle is not.
node-text-overload¶
Catches. A node whose label runs past 15 words, counted from the source with commands and braces stripped. Target: the node. A sentence in a box makes the reader stop scanning the figure and start reading.
Faulty: the whole indexing step is spelled out in the box.
1 2 3 4 | |
1 | |
Fixed: the box names the step; the prose explains it.
1 2 | |
| Faulty | Fixed |
|---|---|
![]() |
![]() |
Fix. Cut the label to 15 words or split the node.
stranded-arrowhead¶
Catches. A line drawn in pieces where an earlier piece ends in an
arrowhead at a bare coordinate and the next continues from it, so a
head sits mid-line pointing at nothing. Target: the point. The check
reads a head from ->, an arrows.meta tip, or a style that sets one
(cgedge), defined in the figure or in the house block.
Faulty: the route is two \draw statements, and each carries a head.
1 2 3 4 | |
1 | |
Fixed: one \draw for the whole route.
1 | |
| Faulty | Fixed |
|---|---|
![]() |
![]() |
Fix. Draw the whole line as one \draw, so only its last piece
carries the head.
focal-count¶
Catches. More than one accented node: cgkey, cgkeystate on a
state, or cgfocus on a timeline tick. It is read from the source, so
an accent reached only through the figure's own style is not seen. The
accent says what the figure is about; two accents say nothing.
Faulty: both the first and the last stage are accented.
1 2 3 4 5 | |
1 | |
Fixed: parse goes back to a plain cgbox.
1 | |
| Faulty | Fixed |
|---|---|
![]() |
![]() |
Fix. Keep cgkey (cgkeystate on a state, cgfocus on a
timeline tick) on the one node the figure is about.
unnamed-pic¶
Catches. A house shape (\pic) not placed at a node the figure
declares with cgwell. Target: the pic and its place,
"cgstore at (6.6,0)". No rule measures a pic's paths, so one at a
bare coordinate can cover a label unreported. A pic in a named well is
a node: the overlap rules see it, and a zone can fit it.
Faulty: the store icon is placed at a coordinate.
1 2 3 4 | |
1 | |
Fixed: the icon goes into a named well beside index.
1 2 | |
| Faulty | Fixed |
|---|---|
![]() |
![]() |
The pictures look alike, but the check can now measure the icon.
Fix. Draw the pic into a named well: \node[cgwell, above=2.5mm of
a] (ia) {}; then \pic at (ia) {cgstore};.









