LaTeX forum ⇒ Page LayoutBooklet package and TeX Live 2016

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
west.logan
Posts: 85
Joined: Tue Sep 14, 2010 6:58 pm
Location: Oklahoma, USA

Booklet package and TeX Live 2016

Postby west.logan » Mon Nov 14, 2016 2:45 am

I've been doing a simple directory for quite a few years and never had a problem with it. But when installing TeX Live 2016 on a different computer, things no longer seem to function as before and it seems to have to do with the graphicx package?

Note:
1. the booklet package has not changed since 2009. It has no dependencies that I saw.
2. The Memoir package likewise has not changed in a while but to be safe, I tested this with the standard article document and same thing.
3. Everything works as normal under TeX Live 2015 but not under TeX Live 2016.
4. I tested it in TeX Works and TeXstudio, just to make sure there wasn't some strange software switch change.

So what should happen is the small pages get typeset in landscape in booklet order (i.e., front-right, back-left, back-right, front-left). What is currently happening is indeed this, but on portrait pages. It's as though the print block is changing to landscape, but the pdf sheet is not.

The following code runs fine under TeX Live 2015 and produces the attached result. Under 2016 it produces the other attached result. Remove the graphicx package and it runs as expected, but of course I can't insert images, which I need to do. Has something changed regarding LaTeX 3 that would cause this?

  1. \documentclass[letterpaper,11pt]{memoir}
  2. \usepackage[pdftex]{graphicx}
  3. \usepackage{lipsum}
  4.  
  5. %block size info
  6. \settypeblocksize{7.25in}{4.5in}{*}
  7. \addtolength{\textheight}{\onelineskip}
  8. \setlrmargins{2.1in}{*}{1}
  9. \setulmargins{1.75in}{*}{1}
  10. \checkandfixthelayout
  11.  
  12. \usepackage[print,1to1]{booklet} %print option switches to landscape
  13. \pagespersignature{16}
  14. \setpdftargetpages
  15.  
  16.  
  17. \begin{document}
  18. \lipsum\lipsum\lipsum[1]
  19. \end{document}
Attachments
TeXLive2016output.pdf
(24.95 KiB) Downloaded 34 times
TeXLive2015output.pdf
(24.95 KiB) Downloaded 30 times
Last edited by west.logan on Mon Nov 14, 2016 4:34 pm, edited 1 time in total.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8453
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Mon Nov 14, 2016 12:03 pm

Interesting. Just to mention another way, instead of the booklet package, for printing 2 pages on 1:

\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[a4paper,landscape,border shrink=4mm]% for example


With booklet, here's a quick fix:

  1. \documentclass[letterpaper,11pt]{memoir}
  2. \usepackage[pdftex]{graphicx}
  3. \usepackage{lipsum}
  4. %block size info
  5. \settypeblocksize{7.25in}{4.5in}{*}
  6. \addtolength{\textheight}{\onelineskip}
  7. \setlrmargins{2.1in}{*}{1}
  8. \setulmargins{1.75in}{*}{1}
  9. \checkandfixthelayout
  10.  
  11. \usepackage[print,1to1]{booklet} %print option switches to landscape
  12. \pagespersignature{16}
  13. \begin{document}
  14. \pdfpageheight=\paperwidth
  15. \pdfpagewidth=\paperheight
  16. \paperwidth=\pdfpagewidth
  17. \paperheight=\pdfpageheight
  18. \lipsum\lipsum\lipsum[1]
  19. \end{document}


Stefan
Site admin

west.logan
Posts: 85
Joined: Tue Sep 14, 2010 6:58 pm
Location: Oklahoma, USA

Postby west.logan » Mon Nov 14, 2016 4:18 pm

Thanks Stefan, pgfpages won't really work, since the idea behind booklet is it reorders the pages for booklet printing, i.e., if you have multiple sheets of paper, you can print them out double-sided, fold them together, and you get page 2 and 3 next to each other even though they are on different sheets. I'll try your other solution later.

Any idea what is different with LaTeX 3 or graphicx that is causing this to break?

User avatar
Stefan Kottwitz
Site Admin
Posts: 8453
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Mon Nov 14, 2016 4:33 pm

LaTeX3 should not be involved. I think the graphicx package should not matter either. It did not change anything when I removed it. My workaround seemed to work though.

Stefan
Site admin

west.logan
Posts: 85
Joined: Tue Sep 14, 2010 6:58 pm
Location: Oklahoma, USA

Postby west.logan » Mon Nov 14, 2016 4:35 pm

Ah, I forgot to reinsert a line: \setpdftargetpages

Add that, and then removing the graphicx package should show different behavior under 2015 and 2016.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8453
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Tue Nov 15, 2016 1:09 am

I have still TeX Live 2015 on my laptop - in 2 days I'm at home with the 2016 version on my PC, then I can test. Or somebody else does here, in the meantime.

A wild guess: remove the pdftex option to graphicx. It should automatically detect the correct driver, forcing anything could be an issue.

Stefan
Site admin

west.logan
Posts: 85
Joined: Tue Sep 14, 2010 6:58 pm
Location: Oklahoma, USA

Postby west.logan » Tue Nov 15, 2016 1:13 am

Thanks. I'd tested removing pdftex as an option and no change.

west.logan
Posts: 85
Joined: Tue Sep 14, 2010 6:58 pm
Location: Oklahoma, USA

Postby west.logan » Wed Nov 30, 2016 4:27 pm

Still looking for thoughts on why this is happening.

west.logan
Posts: 85
Joined: Tue Sep 14, 2010 6:58 pm
Location: Oklahoma, USA

Postby west.logan » Mon Feb 06, 2017 4:43 pm

Installed TeX Live 2016 on another computer and the same issue shows up here too, so obviously I still haven't figured this out.

Can no longer do booklets, it shows a portrait page.

west.logan
Posts: 85
Joined: Tue Sep 14, 2010 6:58 pm
Location: Oklahoma, USA

Postby west.logan » Thu Feb 09, 2017 4:45 pm

Hmm, well just playing around I removed the 1to1 option for the booklet package and now it seems to display landscape, but doesn't scale the page properly (as the 1to1 option is supposed to do). Still not really solved and still not sure why this happens in TeXLive 2016 and none of the versions prior.


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 5 guests