On lundi, fév 17, 2003, at 14:22 Europe/Paris, Vivien Mary Kendon wrote:

This probably isn't a problem with the fink side of the tetex
distribution, but since we are discussing it, I thought I'd try asking
anyway.  I can get perfectly good landscape ps output from my latex
document, but I can't get landscape pdf output from it.
I think it is not completely out of topic here, because it is an old problem, and the possible solutions depend heavily on the precise version of tetex installed.

I have found a method that works for me™, but I don't pretend it is the most professional one. Here is what I am doing:

Preamble starts:

\documentclass[a4paper]{seminar}
\paperwidth 219mm \paperheight 312mm
\slidewidth 264mm \slideheight 170mm

Then I do latex TEXT.tex, and for dvips I use the following:

dvips -o TEXT.ps -h landscape.ps TEXT.dvi

The essential trick is the little file landscape.ps. It lives in ~/Library/texmf/dvips/misc/ and is actually a symlink to one of two different files depending on which machine I am.

On the machine with Fink's recent tetex, the slides need to be turned by 90 degrees, and landscape.ps points to the file landscape_90.ps:

%%%% landscape_90.ps %%%%%
/_sys_showpage /showpage load def
/showpage {
[{ThisPage} <</Rotate 270>> /PUT pdfmark
_sys_showpage
}bind def
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

For earlier versions of tetex, the "270" had to be "90", because they turned the other way.

On another machine with GW's teTeX, the slides are upside down, and landscape.ps points to landscape_180.ps which is the following:

%%%% landscape_180.ps %%%%%
/bop-hook {
gsave clippath pathbbox grestore
4 dict begin
/ury exch def /urx exch def /lly exch def /llx exch def
180 rotate urx neg lly -2 mul ury sub translate
end
} def
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Then I use ps2pdf without any decorations

ps2pdf13 TEXT.ps

and it works. Don't ask me why :-)

One perpetual problem I am having have with tetex updates (nothing to do with landscape slides) is that each time the default voffset changes. After almost every update, my text is either 1 inch too high or 1 inch too low on the page, and not even the same on different machines. I got used to edit the "O" option in the file ~/Library/texmf/dvips/config/config.ps every time.

--
Martin





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users


Reply via email to