bbucior / drposter

Generate Academic Posters in R Markdown and CSS, inspired by 'reveal.js'
GNU General Public License v3.0
74 stars 21 forks source link

Print as PDF using Chrome for large size poser #7

Open MatRapi opened 6 years ago

MatRapi commented 6 years ago

Hi, I have the issue that printing the poster at a size of 60x36" does not work properly using "print as pdf" in Chrome.

I adjusted the page size in the page.css file into:

@page { size: 1524mm 915mm; margin: 0; }

html { margin: 0; width: 1524mm; height: 915mm; padding: 2.5cm; / Overall document "margins" (while keeping the background, etc.) / }

The format is translated appropriately within chrome, but when trying to print, the content is broken into two pages.

Any ideas what I do wrong?

bbucior commented 6 years ago

Your CSS looks okay, so I only have a few broad guesses. Are you printing to PDF? Do you need to move things from one column to another (add another .{col-2} class, etc)? Unfortunately the package doesn't reflow columns automatically, and if a column is has too much content then it will get pushed onto another page. (or if there are too many columns)

MatRapi commented 6 years ago

Hi, thanks for your fast response! Really appreciate that.

Yes, I am trying to print to pdf within Chrome.

I am using three {.col-3} classes. Within those, there are three to four contents. Looks like that:

{.col-3}

Abstract

Background

...

Objective

Methods

Conclusion

Study Design

Figure

Baseline Characteristics of Study Population

{.col-3}

Baseline

![Figure 2:]()

Content

Subheading

Figure 3:

Content

Figure 4:

Content

Subheading

Figure 5

Subheading

Figure 6

{.col-3}

Content

Content

Content

My understanding was that the css adapts size of figures, fonts, etc based on their number and the page’s size. Can it be forced to stay on one page?

Von: Ben Bucior notifications@github.com Antworten an: bbucior/drposter reply@reply.github.com Datum: Mittwoch, 19. September 2018 um 11:49 An: bbucior/drposter drposter@noreply.github.com Cc: Dr Raschpichler mraschpichler@gmail.com, Author author@noreply.github.com Betreff: Re: [bbucior/drposter] Print as PDF using Chrome for large size poser (#7)

Your CSS looks okay, so I only have a few broad guesses. Are you printing to PDF? Do you need to move things from one column to another (add another .{col-2} class, etc)? Unfortunately the package doesn't reflow columns automatically, and if a column is has too much content then it will get pushed onto another page. (or if there are too many columns)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/bbucior/drposter/issues/7#issuecomment-422917091, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ApaJUCw-pBQblrpo3Iw1KJhXNPdVA-qqks5ucpHCgaJpZM4WwuUo.

bbucior commented 6 years ago

It would be great if it did that (like an automatic zoom), but unfortunately it only adds additional spacing as it's available, not shrinking content to make room.

If you don't feel like playing with the default font size (in the html block of fonts.css) or setting figure scaling rules, you might be able to set a document-wide zoom for printing by adding a few things to your page.css:html styles, but YMMV.

zoom: 0.5;  /* 50% size */
margin: auto;  /* re-center, since now there will be extra margins on the sides */
MatRapi commented 6 years ago

Thanks. I converted the poster into LaTeX. Will try your suggestions asap.

Von: Ben Bucior notifications@github.com Antworten an: bbucior/drposter reply@reply.github.com Datum: Mittwoch, 19. September 2018 um 13:34 An: bbucior/drposter drposter@noreply.github.com Cc: Dr Raschpichler mraschpichler@gmail.com, Author author@noreply.github.com Betreff: Re: [bbucior/drposter] Print as PDF using Chrome for large size poser (#7)

It would be great if it did that (like an automatic zoom), but unfortunately it only adds additional spacing as it's available, not making additional space.

If you don't feel like playing with the default font size (in the html block of fonts.css) or setting figure scaling rules, you might be able to set a document-wide zoom for printing by adding a few things to your page.css:html styles, but YMMV.

zoom: 0.5; / 50% size /

margin: auto; / re-center, since now there will be extra margins on the sides /

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/bbucior/drposter/issues/7#issuecomment-422948784, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ApaJUAPuBYTYiXC5OtQ0QLERN253QDu4ks5ucqpkgaJpZM4WwuUo.