is a notebook option that specifies how cells in the notebook should be assembled into groups.
CellGrouping
is a notebook option that specifies how cells in the notebook should be assembled into groups.
Details
- The default setting is typically CellGrouping->Automatic.
- With CellGrouping->Automatic, cells are automatically grouped in a hierarchical way based on their styles.
- With CellGrouping->Manual, cells must be grouped manually, either by setting up explicit CellGroupData expressions, or by using the Group Cells menu item in the notebook front end.
Examples
Basic Examples (2)
Create a notebook with automatic cell grouping:
nb = CreateDocument[{TextCell["heading", "Section"], TextCell["text", "Text"]}, CellGrouping -> Automatic];Create a notebook with manual cell grouping:
nb = CreateDocument[{TextCell["heading", "Section"], CellGroup[{TextCell["text 1", "Text"], TextCell["text 2", "Text"]}]}, CellGrouping -> Manual];Tech Notes
Related Guides
History
Introduced in 1996 (3.0)
Text
Wolfram Research (1996), CellGrouping, Wolfram Language function, https://reference.wolfram.com/language/ref/CellGrouping.html.
CMS
Wolfram Language. 1996. "CellGrouping." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CellGrouping.html.
APA
Wolfram Language. (1996). CellGrouping. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CellGrouping.html
BibTeX
@misc{reference.wolfram_2026_cellgrouping, author="Wolfram Research", title="{CellGrouping}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/CellGrouping.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_cellgrouping, organization={Wolfram Research}, title={CellGrouping}, year={1996}, url={https://reference.wolfram.com/language/ref/CellGrouping.html}, note=[Accessed: 12-June-2026]}