[luatex] The effect of \pardir on \leftskip versus \parshape

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Dec 6 23:42:05 CET 2012


Hello all,

Playing around with RTL primitives, I find something a bit strange, or
at least unexpected, with the treatment of paragraph parameters. In the
following, "\pardir TRT" swaps the effect of \leftskip and \rightskip,
which I can understand, but leaves the indent set up by \parshape on the
'absolute' left (\hangindent is the same). Is this deliberate, and if so
is it documented (Omega manual?).

Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.

\vskip 5 em %

\pardir TLT
\leftskip 5 em %
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.

\leftskip 0 em %
\parshape 1 5 em 250 pt
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.

\vskip 5 em %

\pardir TRT
\rightskip 5 em %
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.

\leftskip 0 em %
\parshape 1 5 em 250 pt
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.
Hello world. Hello world. Hello world. Hello world.

\bye
-- 
Joseph Wright


More information about the luatex mailing list