GeneralBooklet package: Xetex and landscape view

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
RAPhomme
Posts: 7
Joined: Thu Mar 25, 2010 11:30 pm

Booklet package: Xetex and landscape view

Post by RAPhomme »

Hello, does anyone know if the Booklet package can be made to work with Xetex? I'm trying to use the Booklet package to generate a simple booklet or "signature" of several folded sheets of poems, one poem per page. The idea is to have each poem print on half an 8.5x11 inch, standard letterpage sheet, in landscape orientation. Folded and collated, the sheets then make a readable booklet front to back.

The problem I'm having is that when I use Xetex (fontspec), the pdf file generated by the Booklet package prints or displays in landscape for the first page only and then portrait for succeeding pages.

Here is an example document:

Code: Select all

\documentclass[11pt]{memoir}

\usepackage{fontspec} \setmainfont[Mapping=tex-text, Numbers=OldStyle]{Adobe Caslon Pro}

\settypeblocksize{*}{4in}{1.5}
\setlrmargins{*}{*}{1.5}
\setulmargins{*}{*}{1.5}
\setheadfoot{\onelineskip}{2\onelineskip}
\setheaderspaces{*}{2\onelineskip}{*}
\checkandfixthelayout

\raggedright
\raggedbottom

\PlainPoemTitle

%booklet formatting
\usepackage[print,twouparticle]{booklet} \nofiles
\pagespersignature{8}
\ifpdf
\setpdftargetpages
\else
\setdvipstargetpages
\fi
\ifprintoption % tweak dvi output only for final printing
\special{!TeXDict begin /landplus90{true}store end}
\special{!TeXDict begin <</Tumble true>> setpagedevice end}
 \fi

\begin{document}

\settowidth{\versewidth}{line 1}

\PoemTitle{Poem 1}
\begin{verse}[\versewidth]
line 1\\
line 2
\end{verse}

\pagebreak

\PoemTitle{Poem 2}
\begin{verse}[\versewidth]
line 1\\
line 2
\end{verse}

\pagebreak

\PoemTitle{Poem 3}
\begin{verse}[\versewidth]
line 1\\
line 2
\end{verse}

\pagebreak

\PoemTitle{Poem 4}
\begin{verse}[\versewidth]
line 1\\
line 2
\end{verse}

\end{document}
What emerges from this is one correctly formatted Booklet page in landscape, with poems 1 and 4 side by side, and one page in portrait, with poem 2 by itself (and poem 3 off the margin to the right somewhere).

When I comment out fontspec, the pages display properly. Any way to fix this?

Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Booklet package: Xetex and landscape view

Post by localghost »

Right at the beginning of Section 2 the booklet manual says that the package can only be used with PDFLaTeX. Perhaps the package maintainer can advice.


Thorsten
RAPhomme
Posts: 7
Joined: Thu Mar 25, 2010 11:30 pm

Booklet package: Xetex and landscape view

Post by RAPhomme »

Yes, of course I've read the manual several times. It's always hard to tell, I think, how inclusive or exclusive claims like that are. I'm mainly wondering if anyone has gotten it to work, or can spy obvious mistakes I'm making. But thanks for the suggestion--I'll try the writer or maintainer. RP
Post Reply