Package: tetex-bin Version: 3.0-27 Tags: patch The attached patch solves the widely-recognized problem that tetex does not obey the system's default paper size.
It's a problem when TeX formats documents for the wrong size paper, because what's wrong isn't obvious to many users. Everybody expects the tetex programs to obey the system's paper size. Yes, documents may specify a paper size, so all we're changing here is the site default. The default has to be *something*, so it might as well be the paper size that's loaded into the local printer. In the past a problem with proposed solutions was that there was no way for tetex to be notified of changes to the system default paper size. But now libpaper, the keeper of the system default paper size, has a hook that can notify packages of changes. I have written and tested a patch using the libpaper hook. With this patch, texconfig copies the system paper size into tetex on installation and whenever the system paper size changes. changed files: debian/control Depend: libpaper-utils (hook needs paperconf) debian/tetex-bin_install.in install hook into /etc/libpaper.d/ debian/postinst.in run now-installed libpaper.d hook new file: debian/libpaper-hook run texconfig-sys when system paper size changes --- tetex-bin-3.0/debian/control 2006-12-11 21:59:08 -0500 +++ debian/control 2006-12-10 22:38:09 -0500 @@ -13,8 +13,8 @@ Conflicts: dvipdfm, alml (<< 2002.08.29-4), jbibtex-bin (<< 3.0.5+0.04-2), jtex-bin (<= 1.8-5.1), passivetex (<< 1.21-5), ptex-bin (<< 3.0.5+0.04-2), xmltex (<< 1.9-4), cweb (<< 3.64.debian-1), ctie (<< 1.1.debian.1), arabtex (<= 3.10-5), tetex-base (<< 2.96.1), tetex-extra (<< 2.96.1), jadetex (<= 3.13-3), aleph (<< 1:0), xmltex (<= 1.9-10) Provides: dvipdfm, cweb, ctie, texdoctk Pre-Depends: dpkg (>= 1.6.8) -Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, tetex-base (>= 3.0-4), ed, debianutils (>= 1.13.1), mime-support, sed (>= 4.0.5), ucf (>= 1.02), dialog | whiptail, tex-common (>= 0.34) +Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, tetex-base (>= 3.0-4), ed, debianutils (>= 1.13.1), libpaper-utils, mime-support, sed (>= 4.0.5), ucf (>= 1.02), dialog | whiptail, tex-common (>= 0.34) Suggests: gs-gpl | gs-esp | gs-afpl, gv | postscript-viewer, xpdf-reader | pdf-viewer, tetex-extra, texinfo, texi2html, dvipng, chktex | lacheck, rubber, sam2p, xbase-clients Recommends: psutils, perl-tk, libxml-parser-perl Description: The teTeX programs --- tetex-bin-3.0/debian/tetex-bin_install.in 2006-12-11 21:59:08 -0500 +++ debian/tetex-bin_install.in 2006-12-10 22:36:50 -0500 @@ -153,7 +153,9 @@ # Install reportbug scripts install -D --mode=644 debian/reportbug-control debian/$package/usr/share/bug/tetex-bin/control + # Install libpaper hook + install -D --mode=755 debian/libpaper-hook debian/$package/etc/libpaper.d/tetex-bin else rm debian/$package/usr/sbin/texconfig # rm $sharedir/emacs/site-lisp/cweb.el --- tetex-bin-3.0/debian/postinst.in 2006-12-11 21:59:08 -0500 +++ debian/postinst.in 2006-12-10 22:43:16 -0500 @@ -176,7 +176,10 @@ # now update the filename database mktexlsr + # Import the local system's paper size: run the hook we installed. + /etc/libpaper.d/tetex-bin + # now create the formats. We have to remove the old ones first, in case # engines have changed clean_texenvironment --- tetex-bin-3.0/debian/libpaper-hook 1969-12-31 19:00:00 -0500 +++ debian/libpaper-hook 2006-12-10 17:13:18 -0500 @@ -0,0 +1,2 @@ +#! /bin/sh +exec texconfig-sys paper `paperconf` -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]