tmcw / big

presentations for busy messy hackers

Home Page:https://glitch.com/~tmcw-big-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve `p` print margin handling

talllguy opened this issue · comments

I have fiddled with the print settings in Chrome but am unable to get the slides to consistently stay on one page. Consider an enhancement to improve how the print view works.

Here's an example of how various tweaks to the print settings do not produce a clean result.

2018-04-17_10-34-42

Hey! I added this line to the internal styles on the demo.html

        div {
            page-break-after: always;
        }

Then in Chrome, I was able to change orientation to landscape and set scale to 200 and got this

image

It's not exactly center but is this something you are looking for?

@brooksbecton This approach looks great and would certainly meet my use-case. Is there a branch where I can test it out?

@talllguy

I made PR for these changes and my branch can be found here: https://github.com/brooksbecton/big/tree/feature/seperatePrintSlides

Tested the update. It works great!

One drawback is that you cannot have multiple slides per printed page. If that is a non-issue, then we can close this.