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.

This should also answer a question from Giuseppe B.:

==================================================
From: Giuseppe Bilotta <[EMAIL PROTECTED]>
Subject: Misalignment in narrower.
To: [EMAIL PROTECTED]
Date: Mon, 15 Apr 2002 16:47:14 +0200
Reply-To: Giuseppe Bilotta <[EMAIL PROTECTED]>

Hello,

Please try the following:

\starttext

\input tufte

\startnarrower

\midaligned{some text which should be centered but is not}

\input tufte

\rightaligned{some text which should be right-aligned but is not}

\stopnarrower

\input tufte

\stoptext

Please note that the ...aligned text is shifted too much to the
right in both cases. Prefixing a \noindent is of no use.

==================================================


Patrick


-- 
I'll fade into the darkness

Reply via email to