GeneralCrop package

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

Crop package

Post by latexforever »

Hello. For printing issues, I am using this preamble:

Code: Select all

\documentclass[a4paper,10pt]{article}
\usepackage{geometry}
\geometry{paperheight=210mm,paperwidth=297mm}
\usepackage[a4,axes,cam,center]{crop}
\crop[font=\upshape\mdseries\small\textsf] % after GEOMETRY package
.

In fact, I receive Missing \endcsname inserted. <to be read again> \protect errors at each page, and the output does not look like what I wanted it to. Here is a MWE:

Code: Select all

\documentclass[a4paper,10pt]{article}
\usepackage{geometry}
\geometry{paperheight=210mm,paperwidth=297mm}
\usepackage[a4,axes,cam,center]{crop}
\crop[font=\upshape\mdseries\small\textsf] % after GEOMETRY package!!
\begin{document}

Test.
\newpage
Here we are (in fact, no).
\end{document}
Does somebody know what it is due to?

Thanks.
Last edited by latexforever on Mon May 18, 2009 8:06 pm, edited 1 time in total.

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Crop package

Post by Stefan Kottwitz »

Hi Luca,

use the font option this way:

Code: Select all

\newcommand*\cropfont[1]{\small\textup{\textmd{\textsf{#1}}}}
\crop[font=cropfont]
Stefan
LaTeX.org admin
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

Crop package

Post by latexforever »

Thanks for your trick. It now compiles without any error.

Anyway, I still have not what I want. I want marks at each corner (or, at least in the two upper corners). I have read the package's manual, but

Code: Select all

\documentclass[a4paper,10pt]{article}
\usepackage{geometry}
\geometry{paperheight=210mm,paperwidth=297mm}%%114--162
\usepackage[cam,a4,center,cross,info,graphics]{crop}%
\newcommand*\cropfont[1]{\small\textup{\textmd{\textsf{#1}}}}
\crop[font=cropfont]
\begin{document}

Test.
\newpage
Here we are (in fact, no).
\end{document}
still produces an output with no marks in the corners.

Does somebody has a solution to this problem?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Crop package

Post by Stefan Kottwitz »

Hi Luca,

check the page geometry.
You will see the crosses appearing if you set for instance

Code: Select all

\geometry{paperheight=100mm,paperwidth=100mm}
instead.

Stefan
LaTeX.org admin
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

Re: Crop package

Post by latexforever »

Thanks, Stefan. It now works.
Post Reply