maybe_haskell icon indicating copy to clipboard operation
maybe_haskell copied to clipboard

Add explicit page breaks before specific code examples

Open pbrisbin opened this issue 10 years ago • 6 comments

Some code examples fall between pages and the page break looks bad. Once the content is totally settled, should look into a LaTex way to address this mis-formatting.

pbrisbin avatar Mar 24 '15 20:03 pbrisbin

@trevororeilly mentioned something recently that leads me to believe that Paperback already makes an effort to prevent breaking of images or code over multiple pages.

calebhearth avatar Mar 24 '15 21:03 calebhearth

Yep, I could be off here but I think that's the case. I'll make a note to do some more digging and try to confirm.

trevororeilly avatar Mar 27 '15 22:03 trevororeilly

@pbrisbin are you happy with how this looks?

calebhearth avatar Sep 28 '15 14:09 calebhearth

Thanks for bump @calebthompson I'll go through a read on my kindle soon and close or update these issues.

pbrisbin avatar Oct 03 '15 17:10 pbrisbin

Reading through on my Kindle, code samples do still span page-breaks in a many places, so whatever cleverness is in paperback, it doesn't seem to be working completely.

That said, the page-breaks didn't bother me nearly as bad as #76. So I'd be inclined to close this as "good enough" and focus on that issue first.

pbrisbin avatar Oct 08 '15 18:10 pbrisbin

I was never able to get our Pandoc/LaTeX setup to isolate code blocks to a single page. For Ruby Science, I ended up going through and inserting manual page breaks for situations that turned out to be severely interrupted by automatic page breaks.

jferris avatar Oct 08 '15 19:10 jferris