On 2024-08-27 22:44:13 +0900, Norbert Preining wrote:
> What youare asking is a fix to testpage.tex, to use geometry or some
> other ways to set the *physical* page size. But that is as said not the
> basic assumption. You can use testpage, and then print it on the correct
> page size.

The goal of testpage.tex is to match the output to the physical
page size, and the default paper size must *not* be used since the
file explicitly asks for a paper size. Hence the need for a fix.

> > According to the TeX Live mailing-list, this is a Debian-specific
> > issue.
> 
> paperconf is Debian specific, so the default physical page size setup is
> Debian specific (TeX defaults to letter).

Note that paperconf is designed to allow a user-level default.
However, TeX uses a system-level default only. For instance, with

  PAPERSIZE=a5 pdflatex 
/usr/share/texlive/texmf-dist/tex/latex/base/testpage.tex

the generated PDF file still has the A4 page size, because A4 is still
the system-level default for TeX.

Changing the paperconf default has the effect of reconfiguring the TeX
defaults, like that:

Replacing config file /etc/papersize with new version
tl-paper: setting paper size for context to A4: 
/var/lib/texmf/tex/context/user/cont-sys-paper.tex
tl-paper: setting paper size for dvipdfmx to a4: 
/var/lib/texmf/dvipdfmx/dvipdfmx-paper.cfg
tl-paper: setting paper size for dvips to a4: 
/var/lib/texmf/dvips/config/config-paper.ps
tl-paper: setting paper size for pdftex to a4: 
/var/lib/texmf/tex/generic/tex-ini-files/pdftexconfig.tex
tl-paper: setting paper size for xdvi to a4: /var/lib/texmf/xdvi/XDvi-paper
Running mktexlsr. This may take some time... done.
Building format(s) --refresh.
        This may take some time... done.

(This may take several minutes.)

Said otherwise, the end user cannot choose the default for TeX
(not even statically).

BTW, the TeX-level configuration isn't even always consistent.
For instance, tl-paper was giving

Current context paper size (from 
/var/lib/texmf/tex/context/user/cont-sys-paper.tex): letter
Current dvipdfmx paper size (from /var/lib/texmf/dvipdfmx/dvipdfmx-paper.cfg): 
a4
Current dvips paper size (from /var/lib/texmf/dvips/config/config-paper.ps): a4
Current pdftex paper size (from 
/var/lib/texmf/tex/generic/tex-ini-files/pdftexconfig.tex): a4
Current xdvi paper size (from /var/lib/texmf/xdvi/XDvi-paper): a4

This is crap design.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to