Ask Your Question
0

How do I insert a page break on a SageMath notebook page?

asked 9 years ago

jagdpanther gravatar image

I would like to add a page break in a SageMath notebook page so that when I print the notebook, certain cells are printed on the same page. How do I add a page break?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 9 years ago

ndomes gravatar image

updated 9 years ago

If you are running your own server: edit the file

.sage/notebook.css

For example insert a line

@media print { h1 { page-break-before : always;} }

Now each h1 heading in a text cell gives a page break when printing

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 9 years ago

Seen: 282 times

Last updated: May 09 '16