From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28073 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: textbackground and midaligned Date: Fri, 19 May 2006 10:30:39 -0400 (EDT) Message-ID: References: <446DBD82.8040509@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1148048948 4499 80.91.229.2 (19 May 2006 14:29:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 May 2006 14:29:08 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri May 19 16:29:06 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fh5yE-0001oT-5Q for gctc-ntg-context-518@m.gmane.org; Fri, 19 May 2006 16:28:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8A9351279F; Fri, 19 May 2006 16:28:49 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10024-05-3; Fri, 19 May 2006 16:28:44 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8F9EB1277F; Fri, 19 May 2006 16:28:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BC2881277F for ; Fri, 19 May 2006 16:28:42 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10024-05-2 for ; Fri, 19 May 2006 16:28:40 +0200 (CEST) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by ronja.ntg.nl (Postfix) with SMTP id 46C4812778 for ; Fri, 19 May 2006 16:28:39 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY skycaptain.mr.itd.umich.edu ID 446DD616.8C17A.9906 ; 19 May 2006 10:28:38 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: <446DBD82.8040509@wxs.nl> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:28073 Archived-At: On Fri, 19 May 2006, Hans Hagen wrote: > Aditya Mahajan wrote: >> I encountered a very strange problem. The very presence of >> \definetextbackground changed the meaning of \midaligned (and >> \rightaligned). Attached are the minimal example that illustrate the >> problem. The first file, nobackground.tex has no background and works >> as expected. The second file background.tex has a textbackground and >> \midaligned is no longer middle aligned. >> >> Any insight into this strange behaviour? > \def\doalignline#1#2% \\ == newline > {\begingroup > \setlocalhsize % new > \def\\{\egroup\par\doalignline{#1}{#2}\bgroup}% > \dowithnextbox > {\noindentation % change this line in core-spa.tex > \hbox to \localhsize > {\ifcase\alignstrutmode\or\strut\fi > #1\unhbox\nextbox#2}\endgroup} > \hbox} Thank you! This takes care of the problem. Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008