TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have set of large documents that need to go to printers and I want to show the trim edges. I'm using a large number of pstricks images in the documents (these are science and maths textbooks) so I'm using auto-pst-pdf with pdflatex -shell-escape.

My problem is, when I enable showtrims as shown below, the ghostscript step fails and I don't get the PDF file with the images. If I remove showtrims it works but of course the trim marks doesn't appear.

Is there a way around this besides using xelatex? I can use that option but the books take forever to compile.

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


% Custom stock paper and page size
% set some lengths




share|improve this question

The workaround I'm using at the moment is to disable the display of the trim marks on the first compile. This will create the auxiliary pdf file containing the images. Then, I enable showtrims and use \usepackage[off]{auto-pst-pdf} which will skip the creation of the image pdf and avoid the ghostscript crash.

share|improve this answer

Your Answer


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.