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

Re: SVN tetex-bin commit: r2079 - in tetex-bin/trunk/debian: . patches



On Thu, Dec 14, 2006 at 21:01 +0100, Frank Küster wrote:
> Author: frank
> Date: 2006-12-14 21:01:28 +0100 (Thu, 14 Dec 2006)
> New Revision: 2079
> 
> Modified:
>    tetex-bin/trunk/debian/changelog
>    tetex-bin/trunk/debian/patches/patch-deb
>    tetex-bin/trunk/debian/patches/patch-src
> Log:
> Do no longer patch dvipdfm to link against libpaper.  Instead, enhance
> texconfig to handle more paper sizes for dvipdfm, dvips and pdftex.
> This will allow to let a libpaper hook set the default paper size with
> texconfig.

The patch to texconfig looks good. But the patch to dvipdfm looks fishy: 

--- trunk.orig/texk/dvipdfm/dvipdfm.c	2006-12-14 19:54:48.000000000 +0100
+++ trunk/texk/dvipdfm/dvipdfm.c	2006-12-14 20:56:15.000000000 +0100
@@ -62,23 +62,40 @@
   {"legal" , { 612.0, 1008.0}},
   {"ledger" , { 1224.0, 792.0}},
   {"tabloid" , { 792.0, 1224.0}},
+  {"a6" , { 297.64, 420.91}},
   {"a5" , { 420.91, 595.27}},
   {"a4" , { 595.27, 841.82}},
-  {"a3" , { 841.82, 1190.16}}};
+  {"a3" , { 841.82, 1190.16}},
+  {"a2" , { 1190.16, 1683.76}},
+  {"a1" , { 1682.76, 2383.91}},
+  {"a0" , { 2383.91, 3370.36}},
+  {"b6" , { 364.25, 515.91}},
+  {"b5" , { 515.91, 728.50}},
+  {"b4" , { 728.50, 1031.81}},
+  {"b3" , { 1031.81, 1457.00}},
+  {"b5var" , { 515.91, 651.97}}};
+/* The unit used is 0.35278 mm, whatever that is */
+/* If you add sizes, also add them in texconfig (look for "dvipdfm sources") */


0.35278 mm = 1/72 in, the PostScript point (big point 'bp' in TeX, where
'pt' is 1/72.27 in). But what is b5var? I have never heared of any
'variant' ISO pagesizes. Besides, I am not sure if these sizes are
actually correct:

$ paperconf -p b5 -s 
498.898 708.661

Similar for the other b? sizes. There is no such discrepancy for the a?
sizes: 

$ paperconf -p a4 -s 
595.276 841.89

What's going on here?

cheerio
ralf

PS: Actually even the a? sizes are not exactly correct. All the ISO
paper sizes have full mm as length and width:

$ paperconf -p a4 -s -m
210 mm 297 mm
$ paperconf -p a5 -s -m
148 mm 210 mm

*Not* 148.5 mm as one might think. The above list for a? sizes uses a
simple swapping and devision by 2, though.



Reply to: