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: 87
Joined: Tue Sep 14, 2010 6:58 pm

Booklet package and TeX Live 2016

Post by west.logan »

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?

Code: Select all

\documentclass[letterpaper,11pt]{memoir}
\usepackage[pdftex]{graphicx}
\usepackage{lipsum}

%block size info
\settypeblocksize{7.25in}{4.5in}{*}
\addtolength{\textheight}{\onelineskip}
\setlrmargins{2.1in}{*}{1}
\setulmargins{1.75in}{*}{1}
\checkandfixthelayout

\usepackage[print,1to1]{booklet} %print option switches to landscape
\pagespersignature{16}
\setpdftargetpages


\begin{document}
\lipsum\lipsum\lipsum[1]
\end{document}
Attachments
TeXLive2016output.pdf
(24.95 KiB) Downloaded 461 times
TeXLive2015output.pdf
(24.95 KiB) Downloaded 498 times
Last edited by west.logan on Mon Nov 14, 2016 4:34 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Booklet package and TeX Live 2016

Post by Stefan Kottwitz »

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:

Code: Select all

\documentclass[letterpaper,11pt]{memoir}
\usepackage[pdftex]{graphicx}
\usepackage{lipsum}
%block size info
\settypeblocksize{7.25in}{4.5in}{*}
\addtolength{\textheight}{\onelineskip}
\setlrmargins{2.1in}{*}{1}
\setulmargins{1.75in}{*}{1}
\checkandfixthelayout
 
\usepackage[print,1to1]{booklet} %print option switches to landscape
\pagespersignature{16}
\begin{document}
\pdfpageheight=\paperwidth
\pdfpagewidth=\paperheight
\paperwidth=\pdfpagewidth
\paperheight=\pdfpageheight 
\lipsum\lipsum\lipsum[1]
\end{document}
Stefan
LaTeX.org admin
west.logan
Posts: 87
Joined: Tue Sep 14, 2010 6:58 pm

Booklet package and TeX Live 2016

Post by west.logan »

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: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Booklet package and TeX Live 2016

Post by Stefan Kottwitz »

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
LaTeX.org admin
west.logan
Posts: 87
Joined: Tue Sep 14, 2010 6:58 pm

Booklet package and TeX Live 2016

Post by west.logan »

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: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Booklet package and TeX Live 2016

Post by Stefan Kottwitz »

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
LaTeX.org admin
west.logan
Posts: 87
Joined: Tue Sep 14, 2010 6:58 pm

Booklet package and TeX Live 2016

Post by west.logan »

Thanks. I'd tested removing pdftex as an option and no change.
west.logan
Posts: 87
Joined: Tue Sep 14, 2010 6:58 pm

Booklet package and TeX Live 2016

Post by west.logan »

Still looking for thoughts on why this is happening.
west.logan
Posts: 87
Joined: Tue Sep 14, 2010 6:58 pm

Booklet package and TeX Live 2016

Post by west.logan »

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: 87
Joined: Tue Sep 14, 2010 6:58 pm

Booklet package and TeX Live 2016

Post by west.logan »

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.
Post Reply