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.

When I compile a document with paper size other than A4 as follows:

\documentclass{scrbook}
\usepackage[A6paper]{geometry}

\begin{document}
 something
\end{document}

using latex-dvips-ps2pdf steps, should I use -sPAPERSIZE=a4 switch when invoking ps2pdf?

I don't know why TeXnicCenter setup the output profile for ps2pdf with -sPAPERSIZE=a4 switch by default as follows.

ps2pdf -sPAPERSIZE=a4 -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile="%bm.pdf" -c save pop -f "%bm.ps"

share|improve this question
add comment

2 Answers

Since you are using a KOMA Script class, you should try the pagesize document class option. It allows to specify the output driver for writing information about paper size into the document. The comprehensive manual has the necessary details.

share|improve this answer
    
Yes. Try without that switch and see what happens. –  Thorsten Donig Dec 4 '10 at 11:55
3  
@xport When you use geometry the paper size is recorded in the ps file (via a \special command sent to the dvi) and used in the ps->pdf conversion. –  egreg Jun 2 '11 at 13:02
add comment
up vote 1 down vote accepted

I answer based on my experience. I don't know whether or not it is a general truth.

  • Using ps2pdf from Miktex

    Unless you want the top margin to get cropped, you must use -sPAPERSIZE=a4 when compiling A4 paper. But for other paper size, you can omit this switch without negative effect.

  • Using ps2pdf from TeX Live

    This switch is no longer needed for any paper size.

share|improve this answer
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.