[texhax] One (more) question about \halign

Wolfgang Schuster schuster.wolfgang at googlemail.com
Wed Jan 27 17:08:42 CET 2010


Am 27.01.10 16:55, schrieb Rodolfo Medina:
> Hi all.
>
> In plain TeX, I have the following problem:
>
> I have the following alignment (for a table of contents):
>
>
> \halign to \hsize{%
>          \rm\rlap{1.2}\ \ \ \ \ \ \
>          \vbox{\parindent=0pt\hsize=105mm\hangindent 0em\strut%
>                #\hfill\strut}%
>        \tabskip=0cm plus20cm minus20cm&\hfil#\tabskip=0pt\cr
>        bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
>        bla bla bla bla bla bla bla bla bla bla bla bla bla&bnbnbnbnb\cr}
>
>
> Now, I want that, when the first argument is very long and continues over a
> second line (as in the above example), then
>
>         \rm\rlap{1.2}\ \ \ \ \ \ \
>
> is put on the first line (in the above example it is put on the second line,
> instead).
>    
Replace \vbox with \vtop.

Wolfgang



More information about the texhax mailing list