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

Bug#225833: Letter vs A4 again



On Tue, May 16, 2006 at 09:05:40AM +0200, Frank K??ster wrote:
> However, I'm not completely opposed to respecting /etc/papersize.  I
> just don't think it's important or at least a really good idea.
> Therefore I'm not going to try to come up with a proposal how it should
> work exactly, let alone an implementation.  But, as I think I've already
> said earlier in this or one of the merged bugs:  If anybody provides a
> working patch, I'm willing to give it a try.

Something like, on first installation, or debconf question "Should
xdvi/... respect /etc/papersize" with an appropriate file in
/etc/libpaper.d in such a case:

paper=`paperconf`
case "$paper" in
  a4)
    texconfig paper $paper
    texconfig dvipdfm paper $paper
    texconfig xdvi $paper
    ;;
  letter)
    texconfig paper $paper
    texconfig dvipdfm paper $paper
    texconfig xdvi us
    ;;
  legal|a3)
    texconfig dvipdfm paper $paper
    texconfig xdvi $paper
    ;;
  ledger|tabloid)
    texconfig dvipdfm paper $paper
    ;;
  a1|a1r|a2|a2r|a3|a3r|a4|a4r|a5|a5r|a6|a6r|a7|a7r|b1|b1r|b2|b2r|b3|b3r|b4|b4r|b5|b5r|b6|b6r|b7|b7r|c1|c1r|c2|c2r|c3|c3r|c4|c4r|c5|c5r|c6|c6r|c7|c7r|foolscap|usr)
    texconfig xdvi $paper
    ;;
esac

   Julian



Reply to: