Executing the DocumentBlock command produces a function call.
By using additional commands from the Layout Constructors package a nested function call can be produced which represents an entire worksheet.
That XML representation of a worksheet can be inserted directly. In this example the block has no contents, but its boundaries can be seen if Document Markers are set as visible.
A DocumentBlock can contain one or more execution groups. In the next example such an execution group contains only a text region.
Some text in an Execution Group within a Document Block.
In the next example the document block contains two execution groups. The second execution group contains both 2D Math input and output.
Some text in an Execution Group within a Document Block.