Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print Authors Multiple Pages #14

Open
7fe opened this issue Aug 9, 2018 · 6 comments
Open

Print Authors Multiple Pages #14

7fe opened this issue Aug 9, 2018 · 6 comments

Comments

@7fe
Copy link

7fe commented Aug 9, 2018

For some reason the authors are spread across two pages when printing in Chrome in this example.

https://thomaspark.co/project/pubcss/demo/acm-sig-sample-web-theme.html

Maybe this is the intended behavior but I am not really sure. Also the abstract appears rather far down the page for some reason. I am trying to establish how to change the page break behavior but I am not sure yet.

@thomaspark
Copy link
Owner

Are you on Chrome? There's still a lot of weirdness when it comes to printing from browser, not to mention inconsistency between browser vendors. Firefox and Safari look completely different, and none are as intended. 😕

Maybe some CSS targeting @print could improve things, but pdf is still the way to go for reliable print jobs.

@7fe
Copy link
Author

7fe commented Aug 9, 2018

@thomaspark Yes Chrome. So how do I generate a reliable pdf if not using Chrome's print command?

@thomaspark
Copy link
Owner

You can use Prince on the command line to generate a PDF from your HTML. It handles a lot of the new CSS features better than the browsers.

https://github.com/thomaspark/pubcss#quick-start
https://www.princexml.com/

@7fe
Copy link
Author

7fe commented Aug 9, 2018

hmm I might invest some time into this. I really really dislike the idea of using a 3rd party software that isn't well incredibly popular for this(compared to Chrome anyways). I mean prince must be using webkit(I'm guessing) or something right? Which means the CSS is somewhere in there.

adding

.copyright{display:none}

fixes the first big issue

@thomaspark
Copy link
Owner

Understandable, check out #12 for work towards using Puppeteer instead.

@7fe
Copy link
Author

7fe commented Aug 16, 2018

So because HTML doesn't support footnotes natively I am throwing html out to probably use markdown or latex. HTML has no agreed upon syntax unfortunately that would allow for transporting to another language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants