how can I prevent a gt() table from being split across pages in a quarto pdf?


I don't want to force a page break, just keep the table together. I have tried
:::{.cell page-break-inside=’avoid’}

gt() #etc.

\begin {samepage}

gt() #etc.


of course I'm just flailing. Thanks for any help.

Can you share a reproducible example please ?

That is usually the minimum you need to provided so that you help us help you.

Thank you