is an option for Cell that specifies whether a page break should be allowed within the group of cells if the notebook that contains the group is printed.
GroupPageBreakWithin
is an option for Cell that specifies whether a page break should be allowed within the group of cells if the notebook that contains the group is printed.
Examples
Basic Examples (2)
Create a notebook with several groups of cells, with page breaks allowed within a group:
nb = CreateDocument[Flatten[Table[{TextCell["section head", "Section", GroupPageBreakWithin -> True], Table[ExpressionCell[k, "Output", GroupPageBreakWithin -> True], {k, 12}]}, {5}]]];This shows that the first page break splits a group between pages:
SetOptions[nb, ShowPageBreaks -> True]Create a notebook of several cell groups, with page breaks not allowed within any group:
nb = CreateDocument[Flatten[Table[{TextCell["section head", "Section", GroupPageBreakWithin -> False], Table[ExpressionCell[k, "Output", GroupPageBreakWithin -> False], {k, 12}]}, {5}]]];Now the page breaks can only occur between groups:
SetOptions[nb, ShowPageBreaks -> True]See Also
Tech Notes
Related Guides
History
Introduced in 1996 (3.0)
Text
Wolfram Research (1996), GroupPageBreakWithin, Wolfram Language function, https://reference.wolfram.com/language/ref/GroupPageBreakWithin.html.
CMS
Wolfram Language. 1996. "GroupPageBreakWithin." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GroupPageBreakWithin.html.
APA
Wolfram Language. (1996). GroupPageBreakWithin. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GroupPageBreakWithin.html
BibTeX
@misc{reference.wolfram_2026_grouppagebreakwithin, author="Wolfram Research", title="{GroupPageBreakWithin}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/GroupPageBreakWithin.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_grouppagebreakwithin, organization={Wolfram Research}, title={GroupPageBreakWithin}, year={1996}, url={https://reference.wolfram.com/language/ref/GroupPageBreakWithin.html}, note=[Accessed: 13-June-2026]}