How can I print grouped cells with CellPrint ?
The closest thing I have to what I want to do is this
CellPrint[CellGroup[{TextCell["i","Item"],ExpressionCell[Defer[x^2;],"Input"]},1]]
But the cells aren't grouped.
|
How can I print grouped cells with CellPrint ? The closest thing I have to what I want to do is this
But the cells aren't grouped. |
|||
|
|
|
Not pretty, but it works:
|
|||||||
|
|
Documentation of
the new document will have the cells grouped (but I don't know if that's what you are after or if changing the |
|||
|