[tex-k] Re: Bug#249466: dvips: explain paper handling better (patch)

Frank Küster frank at kuesterei.ch
Tue May 25 14:45:56 CEST 2004


Dear TeX-k team,

you probably remember this from last week.

>> >> Juhapekka, is there still a problem for you? Does simply omitting
>> >> the -t options help you?
>
>> > According to quality.txt I gave, omitting -t options does help:
>> >
>> > ovikyltit.without_special.ps
>> >
>> > ovikyltit.with_special.ps
>> 
>> O.k., so this is settled as a non-bug?
>
> Well, maybe. How about closing this bug when documentation is fixed
> in a way you suggested?

I suggest the attached patch to dvips.texi and dvips.1.

Using texi2dvi and texi2pdf, it also gave updated dvips.pdf and
dvips.dvi files - there seem to be no targets for this in the dvips
Makefile in teTeX.

I will also apply it to tetex-bin in Debian, and hope you include this
or similar into dvips.

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

-------------- next part --------------
--- tetex-bin-2.96.1.20040322/texk/dvipsk/dvips.texi.orig	Fri May 21 17:38:48 2004
+++ tetex-bin-2.96.1.20040322/texk/dvipsk/dvips.texi	Tue May 25 14:25:53 2004
@@ -1052,13 +1052,15 @@
 @var{papertype} of @samp{landscape}, which rotates a document by 90
 degrees.  To rotate a document whose paper type is not the default, you
 can use the @samp{-t} option twice, once for the paper type, and once
-for @samp{landscape}.
+for @samp{landscape}.  Note that you should not use any @samp{-t} option
+when TeX wrote a @samp{\papersize} special into the dvi file. This is
+done by some La at TeX{} packages, e.g. hyperref.sty.
 
 @item -T @var{hsize,vsize}
 @opindex -T @var{hsize,vsize}
 Set the paper size to (@var{hsize}, at var{vsize}), a comma-separated pair
 of dimensions such as @samp{.1in,-.3cm} (@pxref{papersize special}).  It
-overrides any paper size special in the DVI file.
+overrides any paper size special in the DVI file. 
 
 @item -u @var{psmapfile}
 @opindex -u @var{psmapfile}
@@ -1594,7 +1596,11 @@
 printing decision, such information should be given in the @TeX{} file
 and not on the Dvips command line.  For this reason, Dvips supports a
 @samp{papersize} special.  It is hoped that this special will become
-standard over time for @TeX{} previewers and other printer drivers.
+standard over time for @TeX{} previewers and other printer drivers. 
+
+Note that some La at TeX{} packages, e.g. hyperref.sty, write a papersize
+special into the dvi file - then you do not need, and even should not
+try to specify it manually.
 
 @menu
 * papersize special::           Specifying the paper size in TeX.
--- tetex-bin-2.96.1.20040322/texk/dvipsk/dvips.1.orig	Tue May 25 14:40:03 2004
+++ tetex-bin-2.96.1.20040322/texk/dvipsk/dvips.1	Tue May 25 14:39:09 2004
@@ -381,7 +381,15 @@
 which rotates a document by 90 degrees.  To rotate a document whose size
 is not letter, you can use the
 .I -t
-option twice, once for the page size, and once for landscape.  The upper
+option twice, once for the page size, and once for landscape. Note
+that you should not use any 
+.I -t
+option when TeX wrote a
+.I\papersize
+special into the dvi file. This is done by some LaTeX packages,
+e.g. hyperref.sty.
+.TP
+The upper
 left corner of each page in the
 .I .dvi
 file is placed one inch from the left and one inch from the top.  Use of


More information about the tex-k mailing list