[texhax] A question about \halign

Oleg Katsitadze olegkat at gmail.com
Fri Jul 3 22:53:46 CEST 2009


On Fri, Jul 03, 2009 at 10:14:57PM +0100, Rodolfo Medina wrote:
> But now, suppose that I want a third argument of the alignment to stay on the
> first line, instead:
>
>
> \halign to \hsize{%
>       \quad\rm\ \ \ \ \llap{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}
>
>
>
> \bye
>
>
> I want that `\quad\rm\ \ \ \ \llap{1.2}\ ' stays on the first line and
> `bnbnbnbn' on the second line.

\halign to \hsize{%
      \vbox{\parindent=0pt\hsize=105mm\hangindent 0em
      \strut\rm\llap{1.2 }#\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}

HTH,
Oleg


More information about the texhax mailing list