From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47036 Path: news.gmane.org!not-for-mail From: "Bart C. Wise" Newsgroups: gmane.comp.tex.context Subject: Re: Centering a defined text frame Date: Mon, 26 Jan 2009 11:33:38 -0700 Message-ID: <200901261133.38547.bart@wiseguysweb.com> References: <200901240730.02216.bntgcontext@wiseguysweb.com> <200901260951.39306.bntgcontext@wiseguysweb.com> <122E2EDF-3A6B-4D38-9853-2C31B692F019@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232994984 17842 80.91.229.12 (26 Jan 2009 18:36:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Jan 2009 18:36:24 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 26 19:37:37 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 1LRWKa-0003VL-5h for gctc-ntg-context-518@m.gmane.org; Mon, 26 Jan 2009 19:37:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4DA211FD79; Mon, 26 Jan 2009 19:35:45 +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 19705-02-2; Mon, 26 Jan 2009 19:34:36 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E14A61FD04; Mon, 26 Jan 2009 19:34:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E74521FD04 for ; Mon, 26 Jan 2009 19:34:34 +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 18638-06-3 for ; Mon, 26 Jan 2009 19:33:50 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by ronja.ntg.nl (Postfix) with ESMTP id 486C51FCFF for ; Mon, 26 Jan 2009 19:33:50 +0100 (CET) Original-Received: from out01.mta.xmission.com (out01.mta.xmission.com [166.70.13.231]) by filter1-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0QIXnGc017917 for ; Mon, 26 Jan 2009 19:33:49 +0100 Original-Received: from mx04.mta.xmission.com ([166.70.13.214]) by out01.mta.xmission.com with esmtp (Exim 4.62) (envelope-from ) id 1LRWHW-0008Ve-Jr for ntg-context@ntg.nl; Mon, 26 Jan 2009 11:33:58 -0700 Original-Received: from bwise.fttp.xmission.com ([166.70.232.60] helo=zeus.localnet) by mx04.mta.xmission.com with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1LRWHL-0003Hx-TM for ntg-context@ntg.nl; Mon, 26 Jan 2009 11:33:47 -0700 User-Agent: KMail/1.10.4 (Linux/2.6.27-11-generic; KDE/4.1.4; x86_64; ; ) In-Reply-To: <122E2EDF-3A6B-4D38-9853-2C31B692F019@gmail.com> Content-Disposition: inline X-XM-SPF: eid=; ; ; mid=; ; ; hst=mx04.mta.xmission.com; ; ; ip=166.70.232.60; ; ; frm=bart@wiseguysweb.com; ; ; spf=none X-XM-DomainKey: sender_domain=wiseguysweb.com; ; ; sender=bart@wiseguysweb.com; ; ; status=no signature X-SA-Exim-Connect-IP: 166.70.232.60 X-SA-Exim-Rcpt-To: ntg-context@ntg.nl X-SA-Exim-Mail-From: bart@wiseguysweb.com X-SA-Exim-Version: 4.2.1 (built Thu, 07 Dec 2006 04:40:56 +0000) X-SA-Exim-Scanned: No (on mx04.mta.xmission.com); Unknown failure X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=166.70.13.231; country=US; region=UT; city=Salt Lake City; latitude=40.7242; longitude=-111.8787; metrocode=770; areacode=801; http://maps.google.com/maps?q=40.7242,-111.8787&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 170725116 - 5fbbbf164752 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:47036 Archived-At: On Mon January 26 2009 10:57:23 am Wolfgang Schuster wrote: > Am 26.01.2009 um 17:51 schrieb Bart C. Wise: > > Thanks Wolfgang for the insight. > > Here is one that did exactly you wrote, nothing else. > > \defineframedtext[CenteredTextFrame][width=fit,location=middle] > > \def\startCenteredText > {\dosingleempty\dostartCenteredText} > > \def\dostartCenteredText[#1]% > {\bgroup > \iffirstargument > \def\docommand##1{\getparameters[][##1]}% > \processcommalist[#1]\docommand > \fi > \startCenteredTextFrame} > > \def\stopCenteredText > {\stopCenteredTextFrame > \egroup} > > \starttext > > \startCenteredText[myownparm="This is a test"] > \startlines > My own parm is: \myownparm > \stoplines > \stopCenteredText > > \stoptext > Yes, a much simpler solution, but I appreciate having both. Thanks, Bart ___________________________________________________________________________________ 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 ___________________________________________________________________________________