misleading warning about pagedir differs from bodydir
The shipped box direction can be set explicitly, so we can get the warning even if bodydir and pagedir are the same: \showthe\pagedir\showthe\bodydir \shipout\vbox bdir 1 {Test}\bye This is LuaTeX, Version 1.22.0 (TeX Live 2025) restricted system commands enabled. (./test.tex
TLT. l.1 \showthe\pagedir \showthe\bodydir ? TLT. l.1 \showthe\pagedir\showthe\bodydir
? [1 warning (backend): pagedir differs from bodydir, the output may be placed wrongly on the page I attached a diff withe a possible improvement. Udi
On Fri, 6 Feb 2026 at 21:56, Udi Fogiel
The shipped box direction can be set explicitly, so we can get the warning even if bodydir and pagedir are the same:
\showthe\pagedir\showthe\bodydir \shipout\vbox bdir 1 {Test} \bye
This is LuaTeX, Version 1.22.0 (TeX Live 2025) restricted system commands enabled. (./test.tex
TLT. l.1 \showthe\pagedir \showthe\bodydir ? TLT. l.1 \showthe\pagedir\showthe\bodydir
? [1 warning (backend): pagedir differs from bodydir, the output may be placed wrongly on the page
I attached a diff withe a possible improvement.
I will check it but the code is frozen because the texlive is in build phase, see https://tug.org/texlive/ so we have to wait after the release (just remind me) . -- luigi
Hi Luigi, On Fri, 2026-02-06 at 23:14 +0100, luigi scarso wrote:
I will check it but the code is frozen because the texlive is in build phase, see https://tug.org/texlive/
so we have to wait after the release (just remind me) .
From the TeX Live side of things, you're definitely still allowed to add new code. The sources won't be frozen until February 28th, and new changes are still being committed as of 4 minutes ago https://svn.tug.org:8369/texlive/trunk/Build/?view=log You're correct that it's usually not a great time to introduce major new features (although you're allowed to if you want), but small bug fixes like this should be completely fine. Of course, if the LuaTeX team has a policy against any changes during the TL pretest, then none of this really applies. Thanks, -- Max
On Sat, 7 Feb 2026 at 01:34, Max Chernoff
Of course, if the LuaTeX team has a policy against any changes during the TL pretest, then none of this really applies.
It's, let's say, a strong indication. The fact is that I can't prevent any commits to the svn repo, so a "questionable" patch might be applied. This isn't an optimal situation close to the release, but it's manageable before and after (and has, in fact, happened). As a guide, the best time is from after the release to the end of the year; January is a bit critical. -- luigi
On Saturday, February 7th, 2026 at 11:32 AM, luigi scarso
On Sat, 7 Feb 2026 at 01:34, Max Chernoff
wrote: Of course, if the LuaTeX team has a policy against any changes during the TL pretest, then none of this really applies.
It's, let's say, a strong indication.
The fact is that I can't prevent any commits to the svn repo, so a "questionable" patch might be applied. This isn't an optimal situation close to the release, but it's manageable before and after (and has, in fact, happened). As a guide, the best time is from after the release to the end of the year; January is a bit critical.
I don't want to stress anyone just because of a warning message. This can absolutely wait. Thanks, Udi
On Fri, 6 Feb 2026 at 21:56, Udi Fogiel
The shipped box direction can be set explicitly, so we can get the warning even if bodydir and pagedir are the same:
\showthe\pagedir\showthe\bodydir \shipout\vbox bdir 1 {Test} \bye
This is LuaTeX, Version 1.22.0 (TeX Live 2025) restricted system commands enabled. (./test.tex
TLT. l.1 \showthe\pagedir \showthe\bodydir ? TLT. l.1 \showthe\pagedir\showthe\bodydir
? [1 warning (backend): pagedir differs from bodydir, the output may be placed wrongly on the page
I attached a diff withe a possible improvement.
done.
TexLive repo:
------------------------------------------------------------------------
r77943 | lscarso | 2026-02-18 17:11:12 +0100 (mer, 18 feb 2026) | 1 line
LuaTeX: better warning when box_dir(p) != page_direction_par (thanks to Udi
Fogiel)
------------------------------------------------------------------------
LuaTex repo:
commit be905bae7a0e830c3f8b55d2d4ae73f3e87137d4
Author: Luigi Scarso
participants (3)
-
luigi scarso -
Max Chernoff -
Udi Fogiel