From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15125 Path: main.gmane.org!not-for-mail From: "Vit Zyka" Newsgroups: gmane.comp.tex.context Subject: bug in alignbox Date: Fri, 14 May 2004 10:53:10 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <005201c43994$2a322950$3c02000a@spekoun> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C439A1.A5E2AB30" X-Trace: sea.gmane.org 1084526354 15666 80.91.224.253 (14 May 2004 09:19:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 May 2004 09:19:14 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Fri May 14 11:19:04 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BOYqO-0006IT-00 for ; Fri, 14 May 2004 11:19:04 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id C16A110B50; Fri, 14 May 2004 11:14:41 +0200 (MEST) Original-Received: from smtp.casablanca.cz (smtp.casablanca.cz [81.0.225.254]) by ref.ntg.nl (Postfix) with ESMTP id F390B10B2F for ; Fri, 14 May 2004 11:12:11 +0200 (MEST) Original-Received: from spekoun ([82.208.31.82]) by smtp.casablanca.cz (8.12.9/8.12.9) with SMTP id i4E9TelV023676 for ; Fri, 14 May 2004 11:29:40 +0200 Original-To: "ConTeXt" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:15125 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15125 This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C439A1.A5E2AB30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hallo Hans, I have played with positioning text in layers. I noticed that parameter = "location=3Dt"=20 \setlayer[MyLayer][...,location=3Dt,...]{...} behaves the same way as "location=3Dc". It seems to me it is the bug in = optimized definition of=20 \alignedbox. If I use commented version of \alignedbox from source file = core-box.tex it is OK. Can you look at it, please? Test file: ------------------------------------------------------------------ \definelayer[PositionText][position=3Dno,corner=3Dbuttom,height=3D\texthe= ight,option=3Dtest] \def\PosText(#1,#2)[#3]#4{% \setlayer[PositionText][x=3D#1,y=3D#2,location=3D#3]{#4}% \ignorespaces} \setupbackgrounds[text][background=3D{PositionText}] \switchtobodyfont[20pt] \starttext \PosText(.3\textwidth,.3\textheight)[c]{Center} \PosText(.3\textwidth,.3\textheight)[t]{Top} \PosText(.3\textwidth,.3\textheight)[b]{Bottom} \PosText(.3\textwidth,.5\textheight)[l]{Left} \PosText(.3\textwidth,.5\textheight)[r]{Right} \PosText(.7\textwidth,.5\textheight)[tl]{TopLeft} \PosText(.7\textwidth,.5\textheight)[tr]{TopRight} \PosText(.7\textwidth,.5\textheight)[bl]{BottomLeft} \PosText(.7\textwidth,.5\textheight)[br]{BottomRight} Ap\hskip1.5em \alignedbox[b]\hbox{ApB}\hskip1.5em \alignedbox[c]\hbox{ApC}\hskip1.5em \alignedbox[t]\hbox{ApT} \stoptext ------=_NextPart_000_0007_01C439A1.A5E2AB30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hallo Hans,
 
I have played with positioning text in = layers. I=20 noticed that parameter "location=3Dt" 
 =20 \setlayer[MyLayer][...,location=3Dt,...]{...}
behaves the same way as "location=3Dc". It seems to me it is the bug in optimized = definition of=20
\alignedbox. If I use commented version = of=20 \alignedbox from source file core-box.tex
it is OK. Can you look at it, = please?
 
Test file:
----------------------------------------------------------------= --
\definelayer[PositionText][position=3Dno,corner=3Dbuttom,height=3D= \textheight,option=3Dtest]
\def\PosText(#1,#2)[#3]#4{%
 =20 \setlayer[PositionText][x=3D#1,y=3D#2,location=3D#3]{#4}%
 =20 \ignorespaces}
\setupbackgrounds[text][background=3D{PositionText}]
 
\switchtobodyfont[20pt]
\starttext
 
\PosText(.3\textwidth,.3\textheight)[c]{Center}
\PosText(.3\t= extwidth,.3\textheight)[t]{Top}
\PosText(.3\textwidth,.3\textheight)[b= ]{Bottom}
\PosText(.3\textwidth,.5\textheight)[l]{Left}
\PosText(.3= \textwidth,.5\textheight)[r]{Right}
\PosText(.7\textwidth,.5\textheigh= t)[tl]{TopLeft}
\PosText(.7\textwidth,.5\textheight)[tr]{TopRight}
= \PosText(.7\textwidth,.5\textheight)[bl]{BottomLeft}
\PosText(.7\textw= idth,.5\textheight)[br]{BottomRight}
 
Ap\hskip1.5em
\alignedbox[b]\hbox{ApB}\hskip1.5em
\aligned= box[c]\hbox{ApC}\hskip1.5em
\alignedbox[t]\hbox{ApT}
 
\stoptext
------=_NextPart_000_0007_01C439A1.A5E2AB30--