At 11:39 PM 6/21/2002 +0200, Patrick Gundlach wrote:
>Idris S Hamid <[EMAIL PROTECTED]> writes:
>
> > Dear folks,
> >
> > In the following example, \midalign is not placing its argument in the
> center
> > of the line but rather offset to the right a bit.
>
>this is because \midalign (and other alignment macros) do not look at
>the \leftskip and the \rightskip the \startnarrow sets. If you run
>(pdf)etex you can try this code before the \midalign:
>
>
>\def\doalignline#1#2% \\ == newline
> {\bgroup
> \def\\{\egroup\par\doalignline{#1}{#2}\bgroup}%
> \dowithnextbox
> {\noindent\hbox to \dimexpr(\hsize - \rightskip - \leftskip)
> {\strut#1\unhbox\nextbox#2}\egroup}
> \hbox}
>
>
>Hans should fix this. Sorry I don't have the time to put this into
>bugzilla.
better is:
\def\doalignline#1#2% \\ == newline
{\bgroup
\setlocalhsize % new
\def\\{\egroup\par\doalignline{#1}{#2}\bgroup}%
\dowithnextbox
{\noindent\hbox to \localhsize{\strut#1\unhbox\nextbox#2}\egroup}
\hbox}
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------