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-- From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15133 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: bug in alignbox Date: Fri, 14 May 2004 18:09:41 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <6.0.1.1.2.20040514180847.02a9d698@server-1> References: <005201c43994$2a322950$3c02000a@spekoun> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1084551157 16864 80.91.224.253 (14 May 2004 16:12:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 May 2004 16:12:37 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Fri May 14 18:12:13 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 1BOfIC-0002Aw-00 for ; Fri, 14 May 2004 18:12:12 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id B290B10B2E; Fri, 14 May 2004 18:07:43 +0200 (MEST) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ref.ntg.nl (Postfix) with ESMTP id 1DD9510ACE for ; Fri, 14 May 2004 18:05:32 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i4EG9lO9019127 for ; Fri, 14 May 2004 18:09:47 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id E91FB17B4B; Fri, 14 May 2004 18:09:49 +0200 (CEST) Original-Received: from laptop-3.wxs.nl (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id C41E521582 for ; Fri, 14 May 2004 16:09:46 +0000 (UTC) X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Original-To: ntg-context@ntg.nl In-Reply-To: <005201c43994$2a322950$3c02000a@spekoun> Original-References: <005201c43994$2a322950$3c02000a@spekoun> X-Virus-Scanned: clamd / ClamAV version 0.70, clamav-milter version 0.70j 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:15133 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15133 At 10:53 14/05/2004, you wrote: >Hallo Hans, > >I have played with positioning text in layers. I noticed that parameter >"location=t" > \setlayer[MyLayer][...,location=t,...]{...} >behaves the same way as "location=c". It seems to me it is the bug in >optimized definition of >\alignedbox. If I use commented version of \alignedbox from source file >core-box.tex >it is OK. Can you look at it, please? ah, a real seious bug! You need to fix both b and t: \setvalue{\??ab\??ab b}{\bottombox} \setvalue{\??ab\??ab t}{\topbox} Hans From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15141 Path: main.gmane.org!not-for-mail From: pawcoo Newsgroups: gmane.comp.tex.context Subject: Re: layers (was bug in alignbox) Date: Sat, 15 May 2004 10:20:48 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <40A5D2E0.5020109@poczta.onet.pl> References: <005201c43994$2a322950$3c02000a@spekoun> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1084609510 17623 80.91.224.253 (15 May 2004 08:25:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 May 2004 08:25:10 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Sat May 15 10:25:00 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 1BOuTc-0002oW-00 for ; Sat, 15 May 2004 10:25:00 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 3891510B48; Sat, 15 May 2004 10:20:36 +0200 (MEST) Original-Received: from acchsh.com (dilbert.acchsh.krakow.pl [62.233.163.90]) by ref.ntg.nl (Postfix) with ESMTP id 30E2310B2D for ; Sat, 15 May 2004 10:18:50 +0200 (MEST) Original-Received: from poczta.onet.pl (unknown [::ffff:217.89.126.212]) by acchsh.com (Postfix) with ESMTP id 5ABFC1735AF for ; Sat, 15 May 2004 10:23:09 +0200 (CEST) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: <005201c43994$2a322950$3c02000a@spekoun> 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:15141 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15141 Vit Zyka wrote: > Hallo Hans, > > I have played with positioning text in layers. I noticed that parameter "location=t" > \setlayer[MyLayer][...,location=t,...]{...} > behaves the same way as "location=c". It seems to me it is the bug in optimized definition of > \alignedbox. If I use commented version of \alignedbox from source file core-box.tex > it is OK. Can you look at it, please? BTW, how to use context layers to produce PDF layers I can switch on and off using arobat 6? I've compiled the sample and the result doesn't contains PDF layers. Regards, Pawe/l