From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/23766 Path: news.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Re[2]: Two framed texts on the same line Date: Fri, 25 Nov 2005 15:20:04 +0100 Message-ID: <1382468175.20051125152004@iol.it> References: <1191176180.20051125121527@iol.it> <43870BDE.1080601@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 1132928537 462 80.91.229.2 (25 Nov 2005 14:22:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 25 Nov 2005 14:22:17 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 25 15:22:16 2005 Return-path: 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 1EfeRG-0004pN-Sq for gctc-ntg-context-518@m.gmane.org; Fri, 25 Nov 2005 15:20:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 980581286F; Fri, 25 Nov 2005 15:20:33 +0100 (CET) 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 05126-06-3; Fri, 25 Nov 2005 15:20:28 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B7AAC127CC; Fri, 25 Nov 2005 15:20:28 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7E48F127CC for ; Fri, 25 Nov 2005 15:20:27 +0100 (CET) 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 05126-06-2 for ; Fri, 25 Nov 2005 15:20:26 +0100 (CET) Original-Received: from mbox.dmi.unict.it (mbox.dmi.unict.it [151.97.252.131]) by ronja.ntg.nl (Postfix) with ESMTP id 8384B127BB for ; Fri, 25 Nov 2005 15:20:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by mbox.dmi.unict.it (Postfix) with ESMTP id CD78D518D5 for ; Fri, 25 Nov 2005 15:20:25 +0100 (CET) Original-Received: from mbox.dmi.unict.it ([127.0.0.1]) by localhost (mbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06772-05 for ; Fri, 25 Nov 2005 15:20:24 +0100 (CET) Original-Received: from oblomov.dmi.unict.it (oblomov.dmi.unict.it [151.97.252.27]) by mbox.dmi.unict.it (Postfix) with ESMTP id AFC3D518D6 for ; Fri, 25 Nov 2005 15:20:24 +0100 (CET) X-Mailer: The Bat! (v3.5.25) Professional X-Priority: 3 (Normal) Original-To: mailing list for ConTeXt users In-Reply-To: <43870BDE.1080601@wxs.nl> X-Virus-Scanned: by amavisd-new at dmi.unict.it X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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:23766 Archived-At: Friday, November 25, 2005 Hans Hagen wrote: > depends a bit on the usage; the following shows you a few tricks > \defineframedtext > [gb] > [align=raggedright, > width=.5\textwidth, > offset=0pt, > frame=off, > before=, > after=] > \startbuffer[left] > \startgb[none] > \input tufte > \stopgb > \stopbuffer > \startbuffer[right] > \startgb[none] > \input zapf > \stopgb > \stopbuffer > \starttext > \input tufte > \definepairedbox[gb][location={right,top}] > \startbaselinecorrection > \placepairedbox[gb] > {\getbuffer[left]} > {\getbuffer[right]} > \stopbaselinecorrection > \input zapf > \stoptext Oh, interesting this pairedbox thing (it's undocumented, though). I was hoping to be able to do it like this: \defineframedtext[lepi][align=raggedright,width=fit,offset=0pt,frame=off,location=left] \defineframedtext[repi][align=raggedright,width=fit,offset=0pt,frame=off,location=right] \definepairedbox[epi][location={right,top}] \placepairedbox[epi] {\startlepi {\bf Coordinatore}\par prof. F.~Nicolosi \stoplepi} {\startrepi {\bf Tutor}\par prof. G.~Russo \stoprepi} But it won't work because the second box (repi) gets placed with its LEFT margin on the right margin of the page, whereas I needed to be with its right margin at the right margin of the page. I think the problem is that, from what I get by reading the source, in paired boxes are not treated equally. Basically, the rpbolem seems to be that the width of the lepi framed text is not the 'natural width' of the text, despite the width=fit command ... why is this so? -- Giuseppe "Oblomov" Bilotta