0

Basically what the subject says.

The MWE I have included lists all possible factors that can prevent the solution not being correct:

Not_blank.tex

\blankpage

\eject \pdfpagewidth=5.5in \pdfpageheight=8.5in

\begin{center}
    text
\end{center}

\clearpage

\begin{center}
    text
\end{center}

\eject \pdfpagewidth=7in \pdfpageheight=10in

\blankpage
\clearpage

Extract of packages.tex

\usepackage[paperwidth=7in, paperheight=10in, showframe]{geometry}

Extract of papersetup.tex

\setstocksize{10in}{7in}
\settrimmedsize{10in}{7in}{*}
\setbinding{0.250in}

Extract of preamble.tex

\setlength{\parindent}{0pt}
\checkandfixthelayout\fixpdflayout

Extract of main.tex

\documentclass[9pt,twoside,onecolumn,openright,extrafontsizes]{memoir}

I tried doing a Google search, but nothing came up.

Edit: I have already used \setbinding for the page (recto)

Picture of what it's supposed to look like (with showframe):

Picture of what it currently looks like (with showframe):

enter image description here

9
  • 1
    The geometry package allows one, in the middle of a document, to change both the page layout (margins/etc) as well as the paper size, if desired. Dec 23, 2017 at 1:52
  • As far as I have read the documentation, it doesn't change the trim size.
    – teed
    Dec 23, 2017 at 1:55
  • The geometry package assumes that the stock size is the same as the trim size.
    – teed
    Dec 23, 2017 at 1:58
  • Haven't used them, but I think the crop package as well as the pdfpages package allow the introduction of crop marks for setting the trim size. Dec 23, 2017 at 2:00
  • 1
    Please make your fragments into an example people can copy-paste compile. What you've posted is certainly not a minimal working example, as it is not working at all.
    – cfr
    Dec 24, 2017 at 3:16

2 Answers 2

4

If I understand you rightly, then you can use the standard memoir commands to change the document page layout.

The only catch is that the size of the type set text block isn't automatically changed by memoir. Changing this mid-document can be a bit tricky, but you can copy what the geometry package does to do this provided you also surround things with a couple of \newpage commands.

MWE

\documentclass{memoir}
\usepackage{showframe}
\usepackage{lipsum}
\setstocksize{7in}{5in}
\settrimmedsize{7in}{5in}{*}
\setlrmarginsandblock{.5in}{1in}{*}
\setulmarginsandblock{1in}{1in}{*}
\checkandfixthelayout
\makeatletter
% adapted from \Gm@changelayout geometry.sty
\newenvironment{newlayout}[1]{%
  \newpage
  #1%
  \setlength{\@colht}{\textheight}
  \setlength{\@colroom}{\textheight}%
  \setlength{\vsize}{\textheight}
  \setlength{\columnwidth}{\textwidth}%
  \if@twocolumn%
    \advance\columnwidth-\columnsep
    \divide\columnwidth\tw@%
    \@firstcolumntrue%
  \fi%
  \setlength{\hsize}{\columnwidth}%
  \setlength{\linewidth}{\hsize}}{\newpage}
\makeatother
\begin{document}
\lipsum[2]
\begin{newlayout}{%
  \setstocksize{6in}{4in}
  \settrimmedsize{6in}{4in}{*}
  \setlrmarginsandblock{.5in}{1in}{*}
  \setulmarginsandblock{1in}{1in}{*}
  \checkandfixthelayout
  \fixpdflayout}
\lipsum[2]
\end{newlayout}
\lipsum[2]
\end{document}

enter image description here

7
  • Although it worked, I was hoping for a solution that changed the paper size of the pdf too. Should I already accept the answer?
    – teed
    Dec 23, 2017 at 13:07
  • Set the stock size to the same as the trim size and remove the \settrims lines. I'll update my answer for you. Dec 23, 2017 at 14:29
  • 2
    By the way, your comment suggest you misunderstand the difference between stock size and trim size. The stock size is the size of the piece of paper you print on to. It might include some bleed. The trim size is the size that you cut down to and is therefore the final size of the page you want. Then you have (in memoir speak) the type block size which is the trim size less margins. In my first answer I left the pdf page size the same because you explicitly asked for the stock size to remain the same. Dec 23, 2017 at 14:43
  • @TeokanDuranDemircan If your purpose is commercial printing, especially when using PDF/X technology, then you cannot change either paper size (MediaBox) or trim size (TrimBox) within the PDF. Even if TeX lets you do it, the result is off-spec. Although you did not originally ask about that, I put this comment for the benefit of others who find this thread via search.
    – user139954
    Dec 23, 2017 at 18:02
  • 1
    @TeokanDuranDemircan The entire PDF area is the "MediaBox." At the same size or smaller is the "CropBox," which is the area visible in PDF reader software. At the same size or smaller than that, is the "TrimBox," which is the finished size on paper. The boundary of the TrimBox is invisible, but is understood by automated curring machines. Since you are not an automated cutting machine, you are probably interested in the CropBox. The CropBox can be changed per-page, and Adobe Acrobat Pro can do it. But I have searched, and am not certain that TeX can do it without code hack.
    – user139954
    Dec 23, 2017 at 23:23
0

If I recall correctly many years ago Donald Arseneau Gave a general solution to changing the layout mid-document along the lines:

% single column text
text
\doublecolumn
% change the layout
\singlecolumn% back to where were
single column text

but if initially double column text than swap \doublecolumn and \singlecolumn.

I think that a generalisation of this is:

text
\clearpage
% change page layout
\clearpage
more text in the new layout

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .