Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have been searching for an answer to my problem, but my search did not yield any topics with the same problem, so hereby my question: I have created a document with the memoir package. The stocksize should be 25 x 18 cm, with trims at 0.5 cm from the borders. The paper will be cutted at 24 x 17 cm, the bleed is to avoid white borders around my full page pictures after cutting the paper.

The code below works perfectly when I build with LaTeX to PS. And then convert the ps to pdf with Acrobat Distiller. However, when using this sequence, pictures are required to be in eps-format.

However, I want to include jpegs or png's (photographs), so therefore I want to build it with pdflatex. However, when building the code below with pdflatex the page size is not correct: it is smaller (i.e., 6.69x9.45inch with pdflatex compared to 7.09x9.84inch with LaTeX).

I have tried to exclude the packages I use to find out which is incompatible, but I did not manage to find out what is causing the problem. Does anyone have an idea?

By the way: at first I just converted my jpg's to eps and builded the pdf with LaTeX. However, the image quality was terrible so therefore, I would like to use pdflatex.

    \documentclass[10pt,showtrims,openright]{memoir}
    \usepackage{eso-pic}% For prechapterpics that have to bleed over the trims
    \usepackage{graphicx} 
    \usepackage{geometry} 
    \usepackage[dutch,british]{babel} 
    \usepackage{booktabs} 
    \usepackage{eurosym} 
    \usepackage{lscape} 
    \usepackage[authoryear]{natbib}  
    \usepackage{threeparttable}   
    \usepackage{multirow}  

    \setstocksize{25cm}{18cm} 
    \settrims{0.5cm}{0.5cm}
    \geometry{paperwidth=17cm, paperheight=24cm}
    \setlrmarginsandblock{3cm}{2cm}{*}%%%% 
    \setulmarginsandblock{2.5cm}{3cm}{*}
    \checkandfixthelayout

    %%%%%%%%%%%%%%%% Newcommand to put the chapterimage in before each chapter
    \newcommand\chapimage[1]{%
    \cleartoverso 
    \noindent%
    \AddToShipoutPictureBG*{% Add picture to current page
      \AtStockLowerLeft{% Add picture to lower-left corner of paper stock
    \includegraphics[keepaspectratio=true, width=\stockwidth]{art/#1}}}%
    \clearpage}%%end Newcommand 

    \title{Title thesis}
    \author{Authorname}
    \date{}

    \begin{document}
    \maketitle
    \chapimage{testimage}  
    \chapter{Title of first chapter}
    \end{document}
share|improve this question
5  
First of all remove geometry: you're using memoir's way of setting the page parameters. –  egreg May 3 '13 at 16:33
    
If I remove the Geometry package and associated code, I get errors (\paperwidth and/or trimedge are too large for stockwidth) and the layout is messed up. I have attempted to get the same result with only the Memoir package but I did not manage. –  Nynke May 3 '13 at 16:43
add comment

1 Answer

up vote 7 down vote accepted

I guess that this is what you want (don't load geometry):

\setstocksize{25cm}{18cm} %Finale
\settrimmedsize{24cm}{17cm}{*}
\settrims{0.5cm}{0.5cm}
\setlrmarginsandblock{3cm}{2cm}{*}%%%%
\setulmarginsandblock{2.5cm}{3cm}{*}
\checkandfixthelayout
\fixpdflayout

The summary printed by memoir says

******************************************************
Stock height and width: 711.3189pt by 512.1496pt
Top and edge trims: 14.22636pt and 14.22636pt
Page height and width: 682.86613pt by 483.69684pt
Text height and width: 526pt by 341pt
Spine and edge margins: 85.35826pt and 56.9055pt
Upper and lower margins: 71.13188pt and 85.73425pt
Headheight and headsep: 12pt and 18.06749pt
Footskip: 25.29494pt
Columnsep and columnseprule: 10pt and 0pt
Marginparsep and marginparwidth: 7pt and 128pt
Sidecapsep and sidecapwidth: 7pt and 128pt
Sidebarhsep and sidebarwidth: 7pt and 128pt
Sidebarvsep and sidebartopsep: 12pt and 0pt
Sidebarheight: 548.39996pt
Sidefoothsep and sidefootwidth: 7pt and 128pt
Sidefootvsep and sidefootheight: 12pt and 548.39996pt
******************************************************
share|improve this answer
    
Thank you so much, that did exactly what I wanted! Now, should I answer my own question with the solution you gave? –  Nynke May 3 '13 at 18:14
    
@Nynke No, you can mark this answer as accepted (if nothing better comes along) by clicking the tick besides the text. Please, have a read to the site's FAQ, particularly tex.stackexchange.com/faq#reputation that explains the StackExchange way of rewarding valuable answers. –  egreg May 3 '13 at 18:17
    
I will, thanks again! –  Nynke May 3 '13 at 18:36
    
\fixpdflayout is not really needed here, it is auto added by memoir. Also remember that the text height is rounded off to an integral number of lines. This behavior can be changed via an optional argument to \checkandfixthelayout –  daleif May 7 '13 at 7:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.