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.
Udidiff --git a/source/texk/web2c/luatexdir/pdf/pdfshipout.c b/source/texk/web2c/luatexdir/pdf/pdfshipout.c
index 3716e7aec..dc759ba67 100644
--- a/source/texk/web2c/luatexdir/pdf/pdfshipout.c
+++ b/source/texk/web2c/luatexdir/pdf/pdfshipout.c
@@ -96,7 +96,7 @@ void ship_out(PDF pdf, halfword p, shipping_mode_e shipping_mode)
}
/*tex Ship out box |p|:*/
if (shipping_mode == SHIPPING_PAGE && box_dir(p) != page_direction_par)
- normal_warning("backend","pagedir differs from bodydir, the output may be placed wrongly on the page");
+ normal_warning("backend","shipped box direction differs from page direction, the output may be placed wrongly on the page");
/*tex
Update the values of |max_h| and |max_v|; but if the page is too large,
|goto done|. Sometimes the user will generate a huge page because other
_______________________________________________
dev-luatex mailing list -- [email protected]
To unsubscribe send an email to [email protected]