GeneralProblem with ps2pdf

General information and discussion about TeXnicCenter
Post Reply
User avatar
Bozack
Posts: 117
Joined: Wed Feb 06, 2008 4:21 pm

Problem with ps2pdf

Post by Bozack »

A simple problem: In the TeXnicCenter build profile LaTeX => PS => PDF, what arguments should I write to the postprocessor ps2pdf to get it to convert to the right format (mostly A4)?

When I compile a normal A4 document, the dvi and ps files are really A4, but the pdf file becomes something like letter (I'm not sure). But when I compile a beamer slide, also through a dvi and ps file, the format is correct... I want it to be correct all the time.

For now the only arguments to ps2pdf in my build profile is "%bm.ps"..
Last edited by Bozack on Wed Oct 14, 2009 3:30 pm, edited 1 time in total.
OS, LaTeX-system, editor: Arch Linux 64bit, TeXlive, Kile | Windows 10 Professional 64bit, MikTeX 4.9, TeXnicCenter 2.02 64bit

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with ps2pdf

Post by localghost »

You can try to rebuild all your profiles by starting TXC, pressing Alt+F7 an then starting the wizard. TXC in its current version should create four build profiles ( provided that you have all necessary software installed). All settings then should be appropriate.

The complete command line arguments in the post-processing section for ps2pdf are as follows.

Code: Select all

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

Best regards
Thorsten
User avatar
Bozack
Posts: 117
Joined: Wed Feb 06, 2008 4:21 pm

Problem with ps2pdf

Post by Bozack »

localghost wrote:You can try to rebuild all your profiles by starting TXC, pressing Alt+F7 an then starting the wizard.
I have the problem that TeXnicCenter does only create three profiles, not the profile LaTeX => PS => PDF. I don't know why. When I start the wizard it only asks me for the directory with my executables of the TeX-distribution and the path of my PostScript viewer, and then it says that it will create the three profiles LaTeX => DVI, LaTeX => PS and LaTeX => PDF...

Might I miss some software?
OS, LaTeX-system, editor: Arch Linux 64bit, TeXlive, Kile | Windows 10 Professional 64bit, MikTeX 4.9, TeXnicCenter 2.02 64bit
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with ps2pdf

Post by localghost »

Bozack wrote:[...] Might I miss some software?
You need Ghostscript installed [1,2]. Take the current version 8.70 and perhaps GSview to view PS files directly (can be useful).

[1] Ghostscript Ghostscript
[2] Ghostscript, Ghostview and GSview
User avatar
Bozack
Posts: 117
Joined: Wed Feb 06, 2008 4:21 pm

Problem with ps2pdf

Post by Bozack »

I already had ghostscript 8.64 installed in a 64 bit version, but I installed the newest version, 8.70, in a 32 bit version, to see if it changed anything.

After a couple of reboots, the TeXnicCenter wizard suddenly understood that it was supposed to do a LaTeX => PS => PDF profile, and then it suddenly worked again! :D

Conclusion, on a 64 bit vista system, don't use a 64 bit version of ghostscript, MikTeX (or TeXnicCenter??) doesn't understand that it's there...
OS, LaTeX-system, editor: Arch Linux 64bit, TeXlive, Kile | Windows 10 Professional 64bit, MikTeX 4.9, TeXnicCenter 2.02 64bit
Post Reply