6

I have a complete 150 pages LaTeX document that is in a4 format. I basically want to print it exactly as it is, except that I want to add crop part of the margins. I want to remove 10mm on the inner, 40mm on the outer, 40mm on the top and 30mm on the bootom edge.

Basically what I want to do is just print the document on a4 paper in the original size, but afterwards cut it to its final size. For this I have to provide the print shop with either a version that has the final document size or a version in a4 that has crop marks.

Unfortunately all my attempts to crop the page led to wrong results where parts of the document were cut off. I tried the crop package but that only seems to work if you want to add margins to the given document and not if you want to take them away. Also geometry did not help (maybe I am using it wrong). I can specify a paperheight and a voffset, but if I try to change the paperwidth it messes with the margins and i didn't find a way to just take from the paper 10mm on the inside and 40mm on the outside.

What is the simplest solution to do what I want to do?

EDIT: With Werner's reply I would consider this as a minimal example of what I am dealing with:

\documentclass[11pt,twoside,BCOR=10mm]{scrreprt}
\typearea[current]{calc}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{setspace}
\usepackage{blindtext}
\usepackage[a4paper]{geometry}

\geometry{layoutheight=230mm,layoutwidth=160mm,layoutvoffset=30mm,layouthoffset=10mm,showcrop}

\typearea[current]{last}
\setlength{\textheight}{200mm}
\begin{document}\blindtext[8]\end{document}
  • See the crop package. – Sigur Feb 12 '14 at 0:57
  • How do I do that with crop? If I try something like \usepackage[cam,width=153mm,height=213mm,pdflatex]{crop} it does not draw crop marks but crops the page to that size (which means that half of the content of the page is cut off) – André Feb 12 '14 at 1:02
  • You should specift the layout... lengths (provided by geometry, and then add the option showcrop to your \geometry{...} setttings. – Werner Feb 12 '14 at 1:03
  • I didn't know that geometry has this option too. That's really nice and with \geometry{ layoutheight=227mm, layoutwidth=160mm, layoutvoffset=40mm, layouthoffset=10mm, showcrop } I have almost the wanted result now. Unfortunately only for odd pages. On even pages I need the offset from the right. How do I do that? – André Feb 12 '14 at 1:18
  • Are you using the twoside option? – cfr Feb 12 '14 at 2:04
5

I guess geometry assumes a oneside is in effect for using crop marks. As such, you can adjust the \layouthoffset using a condition during shipout:

enter image description here

\documentclass[11pt,twoside,BCOR=10mm]{scrreprt}
\typearea[current]{calc}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{setspace,blindtext,etoolbox}
\usepackage[a4paper]{geometry}

\makeatletter
% \patchcmd{<cmd>}{<search>}{<replace>}{<success>}{<failure>}
\patchcmd{\Gm@pageframes}{\ifGm@showcrop}{%
  \ifGm@showcrop
    \ifodd\count\z@
      \setlength{\Gm@layouthoffset}{10mm}%
    \else
      \addtolength{\Gm@layouthoffset}{40mm}
    \fi%

  }{}{}
\geometry{layoutheight=230mm,layoutwidth=160mm,layoutvoffset=30mm,showcrop}

\typearea[current]{last}
\setlength{\textheight}{200mm}
\begin{document}
\blindtext[8]
\end{document}

A patch of \Gm@pageframes to insert the appropriate \Gm@layouthoffset at page shipout.

6

You can put the crop marks yourselves, with the help of background package. I used ifoddpage package toswitch between odd and even pages. You can change the position of marks by changing the x and y values in ($(current page.north west)+(10mm,0mm)$) -- ++(0,-60mm) etc. I haven't bothered for an aesthetic look (It is a home work for you ;)...)

\documentclass[11pt,twoside,BCOR=10mm]{scrreprt}
\typearea[current]{calc}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{setspace}
\usepackage{blindtext}
\usepackage[a4paper]{geometry}

\geometry{layoutheight=230mm,layoutwidth=160mm,layoutvoffset=30mm,layouthoffset=10mm,showframe}

\typearea[current]{last}
\setlength{\textheight}{200mm}

\usepackage{ifoddpage}
\usepackage{background}
\usetikzlibrary{calc}

\backgroundsetup{
scale=1,
opacity=1,
angle=0,
color=black,
contents={%
 \checkoddpage
  \ifoddpage
\begin{tikzpicture}[remember picture,overlay]
  %% marks on left side (odd page, inner)
  \draw[thick,orange] ($(current page.north west)+(10mm,0mm)$) -- ++(0,-60mm);
  \draw[thick,orange] ($(current page.north west)+(0mm,-40mm)$) -- ++(30mm,0in);
  \draw[thick,orange] ($(current page.south west)+(10mm,0mm)$) -- ++(0,50mm);
  \draw[thick,orange] ($(current page.south west)+(0mm,30mm)$) -- ++(30mm,0in);
  %% marks on right side (odd page, outer)
  \draw[thick,orange] ($(current page.north east)+(-40mm,0mm)$) -- ++(0,-60mm);
  \draw[thick,orange] ($(current page.north east)+(0mm,-40mm)$) -- ++(-60mm,0in);
  \draw[thick,orange] ($(current page.south east)+(-40mm,0mm)$) -- ++(0,50mm);
  \draw[thick,orange] ($(current page.south east)+(0mm,30mm)$) -- ++(-60mm,0in);
\end{tikzpicture}%
\else
\begin{tikzpicture}[remember picture,overlay]
  %% marks on left side (even page, inner)
  \draw[thick,orange] ($(current page.north west)+(40mm,0mm)$) -- ++(0,-60mm);
  \draw[thick,orange] ($(current page.north west)+(0mm,-40mm)$) -- ++(60mm,0in);
  \draw[thick,orange] ($(current page.south west)+(40mm,0mm)$) -- ++(0,50mm);
  \draw[thick,orange] ($(current page.south west)+(0mm,30mm)$) -- ++(60mm,0in);
  %% marks on right side (even page, outer)
  \draw[thick,orange] ($(current page.north east)+(-10mm,0mm)$) -- ++(0,-60mm);
  \draw[thick,orange] ($(current page.north east)+(0mm,-40mm)$) -- ++(-30mm,0in);
  \draw[thick,orange] ($(current page.south east)+(-10mm,0mm)$) -- ++(0,50mm);
  \draw[thick,orange] ($(current page.south east)+(0mm,30mm)$) -- ++(-30mm,0in);
\end{tikzpicture}%
  \fi
  }
}
\begin{document}
   \blindtext[8]
\end{document}

enter image description here

  • Also nice. Since I already did the work with geometry I will use Walter's solution above. But thanks a lot. – André Feb 12 '14 at 19:09
  • @André No problem, You can upvote my other answers if you like them ;) – user11232 Feb 12 '14 at 23:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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