[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#249466: dvips: Landscape papers handled in an idotic way



Hilmar Preusse <hille42@web.de> schrieb:

> On 20.05.04 Frank Küster (frank@kuesterei.ch) wrote:
>
> Hi all,
>
>> Okay, that helped. This is a minimal _TeX_ document that gives the
>> error, when converted with "dvips -t a4 -t landscape":
>> 
>> ,----
>> | \special{papersize=297mm,210mm}
>> | Juhapekka  Tolvanen
>> | \end  
>> `----

However, this file is not a problem: dvips test.dvi gives a landscape
Postscript file, no problem (the upside down orientation is a problem of
gv, gs displays is rotated by 90 degrees...). So the call 

"dvips -t a4 -t landscape test.dvi"

is simply wrong here, it is not needed.

> minimal LaTeX:
>
> drachi:~# more hyper1.tex
> \documentclass{article}
> \usepackage{hyperref}
> \begin{document}
> text
> \end{document}
[...]
> and dvips:
>
> drachi:~# dvips -t landscape hyper1.dvi
> This is dvips(k) 5.92b Copyright 2002 Radical Eye Software (www.radicaleye.com)
> ' TeX output 2004.05.20:1950' -> hyper1.ps
> dvips: both landscape and papersize specified:  ignoring landscape
> <texc.pro><f7b6d320.enc><texps.pro><special.pro>. <cmr10.pfb>[1]
>
> I don't deal with the paper dimensions at all and nevertheless get
> the message. I guess this is that, what we're speaking about.

But here the problem is only because you do _not_ deal with paper
dimensions in the LaTeX file. LaTeX does not typeset a landscape
document, but a portrait document. Then we use hyperref which writes the
papersize to the dvi file, and the papersize is portrait letter. Then
we instruct dvips to process the dvi file as landscape - no wonder that
this makes problems. The error message is confusing, of course.

If you change the minimal document to 

\documentclass[landscape]{article}
\usepackage{hyperref}
\begin{document}
text
\end{document}

we are again in the same situation as with my TeX document: No problem
at all, no -t options needed. The same is true for Juhapekka's example
document, as far as I can see: no -t options are needed at all, the
Postscript file comes out als landscape in A4. Well, gv says "BBox",
obviously because no paper name is specified, but the BBox dimensions
are in fact A4, the PS file contains:

%%Orientation: Landscape
%%BoundingBox: 0 0 596 842

Dividing the number by 72 (there's 72 Postscript points to one inch) and
multiplying by 2.54 gives 0cm 0cm 21.0cm 29.7cm, which is A4.

Juhapekka, is there still a problem for you? Does simply omitting the -t
options help you?

In this case we should just document this, with a sentence like

"If you specify the paper dimensions in the dvi file, e.g. by using
\special commands or hyperref.sty, this option should not be used and
will have strange results."

Regards, Frank
-- 
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie




Reply to: