0

I have to show trims in twoside document. I need twoside because I need the header.

\documentclass[a4paper,11pt,twoside,openright,showtrims,titlepage]{memoir}
\setstocksize{297mm}{210mm}    
\settrimmedsize{202mm}{130mm}{1}%
\settypeblocksize{150.1mm}{95mm}{*}%altezza x larghezza
\settrims{2.5cm}{5.5cm}

But what I get is enter image description here

How can I: 1. get the headers (different between even and odd pages) 2. show the trims ?

4
  • 1
    Please provide a complete MWE (from \documentclass to \end{document}); you can use lipsum for any text. Your code is wrong in that {memoir} should come at the end of \documentclass[...] not after \settrims. You have probably missed \checkandfixthelayout but as you show virtually no useful code its hard to tell. Commented Jun 20, 2018 at 18:36
  • yes,right, I mis-pasted the code. is it necessarey \checkandfixthelayout?
    – gdm
    Commented Jun 22, 2018 at 7:04
  • \checkandfixthelayout is very necessary! I really ought to add some kind of automatic warning if users forget it
    – daleif
    Commented Jun 22, 2018 at 7:30
  • It has been a week since you were asked to provide an MWE. I hope nothing traumatic has happened in your life. If It has please ignore the following. I assume that that (a) you have solved your problem or (b) you are no longer interested in a solution. If (a) then please post an answer. If (b) then is there any reason to keep the question? I spent considerable time trying to come up with an answer for you which I now feel was wasted effort. GUM. Commented Jun 27, 2018 at 19:14

1 Answer 1

1

Following the comments from @Peter I solved by reducing the stocksize.

\documentclass[a4paper,11pt,twoside, showtrims,openright,titlepage]{memoir}

\usepackage{lipsum}% 
\setstocksize{210mm}{140mm}   
\settrimmedsize{210mm}{140mm}{*}%
\settypeblocksize{150.1mm}{95mm}{*}%h x w   
\setlength{\trimtop}{0pt}
\setulmargins{2.9cm}{*}{*}
\setlrmargins{*}{*}{1.5}

 \checkandfixthelayout
 \fixpdflayout

The important commands are \checkandfixthelayout and \fixpdflayout

1
  • \fixpdflayout is executed automatically at the beginning of the document.
    – daleif
    Commented Jun 29, 2018 at 8:24

You must log in to answer this question.

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