[texhax] One (more) question about \halign
Donald Arseneau
asnd at triumf.ca
Thu Jan 28 01:07: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 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?
Put it inside the vbox and use \llap instead of \rlap.
\vbox{...\noindent\llap{1.2\ \ \ }\strut #...
(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.)
--
Donald Arseneau asnd at triumf.ca
More information about the texhax
mailing list