[tex-k] Horizontal positioning of an hbox in a right-to-left bidi document doesn't work as expected

Evan Aad oddeveneven at gmail.com
Fri Nov 18 08:59:59 CET 2022


On Fri, Nov 18, 2022 at 9:40 AM <Laurence.Finston at gmx.net> wrote:
> If you would explain exactly what you want to accomplish and provide an example of how it's not working, preferably including the PDF output, I will try to see if I can get it to work with e-tex and plain TeX.

Certainly. Please find attached the PDF file resulting from processing
my original example with the XeTeX typesetting engine.

Here's a commentary on the PDF file:

The first line of text is meant to visualize the length of the text
area, as well as its start and end points. Beyond this point, to the
left and to the right, are the left and right margins, respectively.
The second and third lines of text are considerably shorter than the
length of the text area. They are properly indented 3cm left of the
right margin. These lines are meant to show that as long as a line's
length is sufficiently short that the indentation does not cause it to
exceed the text area, the indentation works as expected.
The fourth line demonstrates the bug. It is as long as the text area
itself. Despite the fact that the LaTeX code instructed that it should
be indented 3cm like the previous two lines, it remains unindented. If
it had been indented, it would exceed the text area, and its left edge
would protrude into the left margin, which is the desired behavior. It
is also the expected behavior: when the bidi package is not loaded,
the last line of text is indented by 3cm, and protrudes beyond the
(right) margin.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pdf
Type: application/pdf
Size: 4622 bytes
Desc: not available
URL: <https://tug.org/pipermail/tex-k/attachments/20221118/3d493e12/attachment.pdf>


More information about the tex-k mailing list.