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"..
General ⇒ Problem with ps2pdf
Problem with ps2pdf
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
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Problem with ps2pdf
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.
Best regards
Thorsten
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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Problem with ps2pdf
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...localghost wrote:You can try to rebuild all your profiles by starting TXC, pressing Alt+F7 an then starting the wizard.
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Problem with ps2pdf
You need Ghostscript installed [1,2]. Take the current version 8.70 and perhaps GSview to view PS files directly (can be useful).Bozack wrote:[...] Might I miss some software?
[1] Ghostscript Ghostscript
[2] Ghostscript, Ghostview and GSview
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Problem with ps2pdf
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!
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...
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!

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