[texhax] One (more) question about \halign

Rodolfo Medina rodolfo.medina at gmail.com
Wed Jan 27 18:19:06 CET 2010


Am 27.01.10 16:55, schrieb Rodolfo Medina:

>> 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).



Wolfgang Schuster <schuster.wolfgang at googlemail.com> writes:

> Replace \vbox with \vtop.



Thanks: but maybe I should have said that I want the second argument instead to
stay on the second line, where it is now; whereas what you suggest would move
it on the first line.

Rodolfo



More information about the texhax mailing list