Re: wrong margins with latex->dvips->ps2pdf and ieee.cls
- From: Michael Shell <news1@xxxxxxxxxxxxxxxx>
- Date: Fri, 16 Sep 2005 20:52:40 -0400
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
.
- References:
- Prev by Date: Re: A (noob) FoilTeX Question
- Next by Date: Re: un-standard page size
- Previous by thread: Re: wrong margins with latex->dvips->ps2pdf and ieee.cls
- Next by thread: Basic question about 'letter' size.
- Index(es):
Relevant Pages
|
|