From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/8326 Path: main.gmane.org!not-for-mail From: Patrick Gundlach Newsgroups: gmane.comp.tex.context Subject: Re: midalignment Date: 21 Jun 2002 23:39:40 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <87ofe4s44j.fsf@gundla.ch> References: <200206152115.47518.ishamid@attbi.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035398740 26630 80.91.224.250 (23 Oct 2002 18:45:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:45:40 +0000 (UTC) Cc: Giuseppe Bilotta Original-To: ntg-context@ntg.nl In-Reply-To: <200206152115.47518.ishamid@attbi.com> Xref: main.gmane.org gmane.comp.tex.context:8326 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:8326 Idris S Hamid 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 Subject: Misalignment in narrower. To: ntg-context@ntg.nl Date: Mon, 15 Apr 2002 16:47:14 +0200 Reply-To: Giuseppe Bilotta 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