Package: libpaper1
Version: 1.1.24+nmu2
Severity: normal

Here's what I did:

1. Read the papersize(5) man page, which doesn't give any specific
   rule to update the default paper size. So, I did:

2. Update the /etc/papersize manually from letter to a4.

3. Test with pdflatex, but nothing changed: letter document produced.
   Note the .tex file has \documentclass{article} with no paper size
   related package.

4. Run "dpkg-reconfigure libpaper1", and choose a4 (this was the
   default, probably because it was read from /etc/papersize).
   I just got:

# dpkg-reconfigure libpaper1
Processing triggers for libc-bin (2.17-97) ...

5. Test with pdflatex, but nothing changed: letter document produced.

6. Run "dpkg-reconfigure libpaper1" another couple of times, first
   to change the paper size back to letter, then to change it to a4
   again. This was better:

# dpkg-reconfigure libpaper1
Replacing config file /etc/papersize with new version
/usr/bin/tl-paper: setting paper size for context to a4.
/usr/bin/tl-paper: setting paper size for dvipdfmx to a4.
/usr/bin/tl-paper: setting paper size for dvips to a4.
/usr/bin/tl-paper: setting paper size for pdftex to a4.
/usr/bin/tl-paper: setting paper size for xdvi to a4.
Running mktexlsr. This may take some time... done.
Building format(s) --refresh.
        This may take some time... done.
Processing triggers for libc-bin (2.17-97) ...

7. Test with pdflatex, and an a4 document was produced as expected.

So, IMHO, tl-paper should be run everytime, even if /etc/papersize
doesn't change, or at least when the debconf settings has changed.
Indeed, when I changed /etc/papersize manually, the debconf settings
obviously remained to letter, so that "dpkg-reconfigure libpaper1"
(to change the debconf settings from letter to a4) should have
detected a change in the configuration.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libpaper1 depends on:
ii  debconf [debconf-2.0]  1.5.52
ii  libc6                  2.17-97
ii  multiarch-support      2.17-97
ii  ucf                    3.0027+nmu1

Versions of packages libpaper1 recommends:
ii  libpaper-utils  1.1.24+nmu2

libpaper1 suggests no packages.

-- debconf information:
* libpaper/defaultpaper: a4


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to