Following from my other question Which DVI viewer on linux?, now that I can easily view DVI files I came to the conclusion that the unusual document class I used for my document defines some non-standard margins and/or page size.
This clashes with my compilation chain latex --> dvips --> ps2pdf (I'm using PSTricks): the dvi file looks formatted fine, but dvips isn't able to get the page size right and the margins look shifted.
The class file I'm using is located here (in the submission format section of the FSTTCS conference page there is also a zip file with a readme and examples). You can see my problem by compiling this minimal example:
\documentclass{fsttcs}
\begin{document}
\title{My document}
\runningtitle{My document}
\runningauthors{A, B, C}
\author{A, B, C}
\affiliation{XYZ}
\section{Sect. 1}
This is the section 1 of the test file.
This is the section 1 of the test file.
This is the section 1 of the test file.
\newpage
\section{Sect. 2}
This is the section 2 of the test file.
This is the section 2 of the test file.
This is the section 2 of the test file.
\newpage
\section{Sect. 3}
This is the section 3 of the test file.
This is the section 3 of the test file.
This is the section 3 of the test file.
\end{document}
With a simple pdflatex test.tex everything looks ok, but when I run latex test.tex && dvips test.dvi && ps2pdf test.ps, the page slightly changes its proportions and the page contents are shifted.
I tried passing specifying all formats supported by dvips (letter, legal, ledger, a4, a3) with the dvips -t <size>, but none of them works correctly.
I'm sure pdflatex gives the correct output because it is the same as the precompiled pdf included in the example zip file, but I can't use it because of PSTricks and I'm unable to specify the correct format to dvips. What should I do, please?
letterpaperbut then callscropwith thea4option. However, you get identical results by adding the optiona4paperorletterpaperto\documentclass. The provided example uses ISO A4 paper. – egreg May 07 '12 at 08:45pdflatex). Unfortunately both the options you suggest lead to results different from the correct one. – Riccardo T. May 07 '12 at 08:53pdflatexwhen usingPSTricks- see these questions http://tex.stackexchange.com/search?q=pdflatex+pstricks for details – cmhughes May 07 '12 at 08:58dvi2pdfdirectly works OK for me. – May 07 '12 at 09:59