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





1 Answer 1


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.

You must log in to answer this question.

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