Conversion Toolsps2pdf page size problem

Information and discussion about output converters related to LaTeX (e.g. dvips, ps2pdf, ...)
Post Reply
kyp4
Posts: 5
Joined: Sun Mar 07, 2010 2:57 am

ps2pdf page size problem

Post by kyp4 »

I am having a problem trying to make a presentation in Latex, which will be much faster and easier than OO or PowerPoint if I can get it to work. I am compiling to dvi, converting that to ps (dvips) then converting that to pdf (ps2pdf) but ps2pdf insists on using a letter paper size so my slides are getting cut off as prosper outputs to A4 size. I have tried everything I could find and nothing is working. I know the problem is with ps2pdf/gs because the .ps file is the correct size, though the wrong orientation when I open it in evince.

I have tried:
-Using the -sPAPERSIZE=a4 option to ps2pdf
-Using the -dDEVICEWIDTHPOINTS= -dDEVICEHEIGHTPOINTS= options to ps2pdf
-Setting the default papersize to a4 in /etc/papersize and /etc/paper (the latter of which didn't exist prior to my creating it)
-Various environment variables which are supposed to set the gs default paper size
-Enabling the default paper size in gs_init.ps

I am at my wit's end as I have a presentation deadline coming up and would love to use Latex for it. Any help would be a life saver.

Also, if it is of any relevance I am doing this in a Linux system (which is evident from some of what I have said) and, in particular, Ubuntu.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

ps2pdf page size problem

Post by localghost »

The prosper class is obsolete [1]. Furthermore I can't see any relation between the A4 paper size and a presentation that actually runs on a screen.

[1] View topic: Obsolete packages and document classes - Avoid usage!


Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Re: ps2pdf page size problem

Post by CrazyHorse »

There was a bug with dvips in TeXLive 2008
You should update to TeXLive2009. However, prosper
is no more maintained. Use the successor "powerdot".

Herbert
kyp4
Posts: 5
Joined: Sun Mar 07, 2010 2:57 am

Re: ps2pdf page size problem

Post by kyp4 »

Thanks a lot for the suggestions guys. I didn't know prosper was deprecated or never would have even messed with it. I am using powerdot now and it's working great. It uses a standard letter size so the problem was avoided altogether. It did produce a PDF with the wrong orientation (was portrait when it should have been landscape) but a simple rotation in evince solved that problem. Thanks again for the help!
edbucks
Posts: 1
Joined: Fri Jun 18, 2010 11:20 pm

Re: ps2pdf page size problem

Post by edbucks »

FWIW (not a lot) I fixed this using dvips -T and specifying width and height.

HTH

Ed
Post Reply