[texhax] One (more) question about \halign

Rodolfo Medina rodolfo.medina at gmail.com
Wed Feb 3 21:21:20 CET 2010


Rodolfo Medina <rodolfo.medina at gmail.com> writes:

>> >>> \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&bnbnbnbnb\cr}
>> 
>> In other words, I want
>> 
>>          \rm\rlap{1.2}\ \ \ \ \ \ \
>>
>> to be on the first line, and `bnbnbnbnb' (the second alignment argument) on
>> the second line.  Is that possible, and with what trick?



Donald Arseneau <asnd at triumf.ca> writes:

> Put it inside the vbox and use \llap instead of \rlap.
>
> \vbox{...\noindent\llap{1.2\ \ \ }\strut #...


Well, I need the alignment correspondent to \rlap.



> (Actually, for a TOC it is better to use paragraph parameters and no
> boxes or alignments. Then you have to pre-measure your page numbers
> and section numbers, but that is inevitable even with halign because
> you have to set the \hsize.)


Thanks for your suggestion.  However, I'm not able to build a TOC structure
otherwise.  Can you suggest how to do that with paragraph parameters?

Bye
Rodolfo



More information about the texhax mailing list