From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47004 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: Centering a defined text frame Date: Sat, 24 Jan 2009 20:47:52 +0100 Message-ID: <59F6C301-D139-4E5B-8527-88AB5AB994F0@boede.nl> References: <200901240730.02216.bntgcontext@wiseguysweb.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232826612 22900 80.91.229.12 (24 Jan 2009 19:50:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Jan 2009 19:50:12 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 24 20:51:24 2009 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 lo.gmane.org with esmtp (Exim 4.50) id 1LQoXL-0007FP-P4 for gctc-ntg-context-518@m.gmane.org; Sat, 24 Jan 2009 20:51:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2895B1FE29; Sat, 24 Jan 2009 20:50:04 +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 20483-02-2; Sat, 24 Jan 2009 20:48:59 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5E4381FB8C; Sat, 24 Jan 2009 20:48:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8DF431FB95 for ; Sat, 24 Jan 2009 20:48:56 +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 22887-02-6 for ; Sat, 24 Jan 2009 20:47:57 +0100 (CET) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by ronja.ntg.nl (Postfix) with ESMTP id A33A31FE1E for ; Sat, 24 Jan 2009 20:47:56 +0100 (CET) Original-Received: from mail.7values.nl (pluto.digitpaint.nl [83.98.197.3]) by filter2-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0OJlsLL016795 for ; Sat, 24 Jan 2009 20:47:56 +0100 Original-Received: from localhost (dp5.intern.digitpaint.nl [192.168.0.7]) by mail.7values.nl (Postfix) with ESMTP id 87F7218164 for ; Sat, 24 Jan 2009 20:47:53 +0100 (CET) Original-Received: from mail.7values.nl ([192.168.0.1]) by localhost (dp5.digitpaint.nl [192.168.0.7]) (amavisd-new, port 10024) with LMTP id zqmEyTbsozbw for ; Sat, 24 Jan 2009 20:47:52 +0100 (CET) Original-Received: from [192.168.0.17] (a80-126-172-1.adsl.xs4all.nl [80.126.172.1]) by mail.7values.nl (Postfix) with ESMTP id 59A2B18162 for ; Sat, 24 Jan 2009 20:47:53 +0100 (CET) In-Reply-To: <200901240730.02216.bntgcontext@wiseguysweb.com> X-Mailer: Apple Mail (2.753.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.98.197.3; country=NL; region=07; city=Hilversum; latitude=52.2333; longitude=5.1833; http://maps.google.com/maps?q=52.2333,5.1833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 170046460 - 807fef8683f0 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:47004 Archived-At: In analogy to \framedtext after a define of a framedtext I expect that that you should use \CenteredText{...} And indeed. \defineframedtext[CenteredText][width=fit] % This one fails! \startalignment[center] \dontleavehmode \CenteredText{ \startlines The quick brown fox jumps over the lazy dog. \stoplines} %\stopCenteredText Willi On Jan 24, 2009, at 3:30 PM, Bart C. Wise wrote: > \defineframedtext[CenteredText][width=fit] > > \starttext > > % This one works! > \startalignment[center] > \dontleavehmode > \framedtext[width=fit]{ > \startlines > The quick brown fox jumps over the lazy dog. > \stoplines > } > \stopalignment > > % This one fails! > \startalignment[center] > \dontleavehmode > \startCenteredText > \startlines > The quick brown fox jumps over the lazy dog. > \stoplines > \stopCenteredText > > \stoptext ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________