Groups ====== Group related shapes inside square brackets to draw a labelled container. A group has a name, a body, and a label after the closing bracket: .. sheeptext:: :alt: A labelled region containing one box Region: [ A1: box "service" with .nw at (120, 100) ] "Region Alpha" fill #1d4ed8 Groups nest, and each group carries its own label and styling. Names inside a group can be referenced from outside it — for example to draw a line between two regions: .. sheeptext:: :alt: Two labelled regions connected by a line Campus: [ RegionA: [ A1: box "a1" with .nw at (120, 100) ] "Region Alpha" fill #1d4ed8 RegionB: [ B1: box "b1" with .nw at (120, 270) ] "Region Beta" fill #7c3aed ] "Campus Services" fill #0f172a textsize 16 bold L1: line from RegionA.s to RegionB.n Next: let SheepText place shapes for you with :doc:`layout`.