[texhax] One (more) question about \halign
Wolfgang Schuster
schuster.wolfgang at googlemail.com
Wed Feb 3 21:48:22 CET 2010
Am 03.02.10 21:21, schrieb Rodolfo Medina:
> 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?
>
you can use nested boxes like this (untested)
\def\tocentry#1#2#3% #1: section number, #2: text, #3: pagenumber
{\endgraf
\noindent\hbox to \hsize
{\hbox to 2em{#1\hss}%
\vtop
{\hsize\dimexpr\hsize-2em\relax
#2\nobreak\hskip.5em\leaders\hbox to
.5em{\hss.\hss}\hfill\hskip.5em\relax
\hbox{#3}}}
\endgraf}
Wolfgang
More information about the texhax
mailing list