Re: wrong margins with latex->dvips->ps2pdf and ieee.cls



On Fri, 16 Sep 2005 20:22:33 GMT
"Nico" <thenetmaster512_@xxxxxxxxxxx> wrote:


> It seems that if I use the combination latex->dvips->ps2pdf via the WinEdt
> defined sequence, both dvi and ps files keep correct margins (paper size
> should be Letter, how can I check? I can only see that headings and footers
> are at "acceptable" positions), while the ps2pdf just pulls the page up.
> Such a weird behaviour does not show if I use pdflatex, which I don't want


The problem is caused by the fact that your ps2pdf is using A4 paper.
It needs to be changed to US letter. On a Unix system such a ps2pdf
might look like:


#!/bin/sh
# Convert PostScript to PDF using LaTeX recommended parameters.
# Adjust default PAPERSIZE as needed.
exec ps2pdfwr -sPAPERSIZE=letter -dPDFSETTINGS=/printer
-dCompatibilityLevel=1.3 -dMaxSubsetPct=100 -dSubsetFonts=true
-dEmbedAllFonts=true "$@"


For windows systems, change ps2pdf.bat, located in
"gs\gsX.YZ\lib" (where X.YZ is the version number of Ghostscript):
to have:

echo -dCompatibilityLevel#1.3 >_.at

This is important as Ghostscript will *not* embed the base 14 fonts under
PDF level 1.2.

Then, the other recommended Ghostscript options can be added to
ps2pdfxx.bat (this file is called by ps2pdf.bat, ps2pdf12.bat and
ps2pdf13.bat, hence the "xx" in the filename):

echo -q -dSAFER -dNOPAUSE -dBATCH -sPAPERSIZE=letter -dPDFSETTINGS=/printer
-dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true
-sDEVICE#pdfwrite >_.at2

Alternatively, you can manually specify a paper size on the
ps2pdf command line:

ps2pdf -sPAPERSIZE=a4 myfile.ps myfile.pdf



Mike Shell





.



Relevant Pages

  • Re: RISC OS Printing problems & solutions
    ... I was thinking more in terms of the work to the PS drivers and GhostScript ... the four optimization options that are predefined by Ghostscript (which ... similar form to that used by ps2pdf. ... Steve Fryatt - Leeds, England ...
    (comp.sys.acorn.misc)
  • Re: Ov-Pro 2.76 to Postscript to PDF
    ... Drag Ghostscript into a folder on your hard disc, ... You should also find the application ps2pdf. ... Ghostscript is a command-line utility. ... Alan Adams, from Northamptonshire ...
    (comp.sys.acorn.misc)
  • question regarding rc shell (on linux)
    ... to transform a ps file into a pdf file, I get a syntax error: ... ; ps2pdf -sPAPERSIZE=a4 foo.ps ... there's no syntax error as far as ghostscript is ...
    (comp.unix.shell)
  • Re: pdf generators
    ... I use ghostscript to make all my pdfs (via ps2pdf). ... runs the Linux printing engine, pretty much any "Print" command can ...
    (sci.electronics.design)