From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/18933 Path: news.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: Re: alignment questions Date: Mon, 14 Mar 2005 10:03:25 +0100 Message-ID: <4235535D.4080303@seznam.cz> References: <42348A3C.3060800@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1110790916 13882 80.91.229.2 (14 Mar 2005 09:01:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2005 09:01:56 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 14 10:01:55 2005 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 1DAlSL-0005lt-4v for gctc-ntg-context-518@m.gmane.org; Mon, 14 Mar 2005 10:01:45 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 04B7412797; Mon, 14 Mar 2005 10:02:45 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 04614-06-3; Mon, 14 Mar 2005 10:02:41 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DADCA12841; Mon, 14 Mar 2005 10:02:39 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1A45312841 for ; Mon, 14 Mar 2005 10:02:38 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 04614-06-2 for ; Mon, 14 Mar 2005 10:02:36 +0100 (CET) Original-Received: from smtp.seznam.cz (smtp.seznam.cz [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id AFCE512797 for ; Mon, 14 Mar 2005 10:02:36 +0100 (CET) Original-Received: (qmail 18805 invoked from network); 14 Mar 2005 09:02:32 -0000 Original-Received: from unknown (HELO ?127.0.0.1?) (vit.zyka@62.240.166.134) by smtp.seznam.cz with SMTP; 14 Mar 2005 09:02:32 -0000 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <42348A3C.3060800@wxs.nl> X-Antivirus: avast! (VPS 0510-0, 08.03.2005), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: by 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: by amavisd-new at ntg.nl X-MailScanner-From: ntg-context-bounces@ntg.nl X-MailScanner-To: gctc-ntg-context-518@m.gmane.org Xref: news.gmane.org gmane.comp.tex.context:18933 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:18933 h h extern wrote: > Patrick Gundlach wrote: > >> Hello *, >> >> >> inspired by Gerben's question, I did some experimenting with \framed. >> >> I'd like to get A[text]B, where text is some long thing in a framed >> box like \framed[width=5cm] {\input tufte \par}. >> >> There are three different ways of aligning the three objects: >> >> >> (A and B on the same baseline as the first row) >> >> A We thrive in information- B >> ------------------------------- >> thick worlds because of our >> marvelous and everyday ca- >> >> (A and B on the same baseline as the last row) >> >> from the chaff and seperate >> A the sheeps from the goats. B >> -------------------------------- >> >> I was unable to get any of these alignments. > > the other way is to use the following extensions (i made the dislocator > installable so that you can hook in your own code if needed) > > \unprotect > > \def\stoplocalframed > ... Everything works perfectly until the depth is greater then strut depth (still no real depth measurements): \starttext a \framed[location=bottom] {location=bottom \ruledhbox {A \framed[width=2cm,align=middle,location=bottom] {location\\equals\\bottom} \framed[width=2cm,align=middle,location=top] {location\\equals\\top} \framed[width=2cm,align=middle,location=lohi] {location\\equals\\lohi} B} } b \stoptext vit