From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47035 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Centering a defined text frame Date: Mon, 26 Jan 2009 18:57:23 +0100 Message-ID: <122E2EDF-3A6B-4D38-9853-2C31B692F019@gmail.com> References: <200901240730.02216.bntgcontext@wiseguysweb.com> <200901260711.43247.bart@wiseguysweb.com> <115224fb0901260714t44f90104p68da9933b7424744@mail.gmail.com> <200901260951.39306.bntgcontext@wiseguysweb.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232994299 15141 80.91.229.12 (26 Jan 2009 18:24:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Jan 2009 18:24:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 26 19:26:13 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 1LRW9s-0007qF-6Y for gctc-ntg-context-518@m.gmane.org; Mon, 26 Jan 2009 19:26:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C4C821FB8E; Mon, 26 Jan 2009 19:24:38 +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-01-2; Mon, 26 Jan 2009 19:23:34 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D6B8E1FCAF; Mon, 26 Jan 2009 19:23:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B865D1FCAF for ; Mon, 26 Jan 2009 19:23:32 +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-01 for ; Mon, 26 Jan 2009 19:22:54 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id 4BCBA1FB8E for ; Mon, 26 Jan 2009 18:58:11 +0100 (CET) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0QHwAWh002137 for ; Mon, 26 Jan 2009 18:58:10 +0100 Original-Received: by nf-out-0910.google.com with SMTP id c10so909477nfd.44 for ; Mon, 26 Jan 2009 09:58:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=uorcyfdH7F5NNZ7Qi7EDUAlG53r5uIvKPGrHYlOa/DQ=; b=udw1eoy1rKb/e2eL1Nwse/Bl4OeuzYF0AMGX5gA40WPgHxlHR43NBcvclruZ7tBAEY 1cq2E9XZVkBPXkwbE4gRf5AHn+d9lS76u37VnVQR5L+deXgUSq0a3qVGFIoZS+9+Q+H6 kuzUoRLqQ+7KZiy1H2oP3JQZ2Fi/LHcqLLajg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=aLg1pn3aHPxH3kPF/C7ILALtElCDEjRTSf48A1Pe8zFgj/xpaL1nJr6anfjNbTt4JO XzvxKCOG5XZe8jgQJzhiiaise/IFWFESaDkZN/cZ4Q5z8/txIaxwVY6cE0NHhiQprf9C jWiygkC5skW3mrBWeB1E8Kx3s0AZH5sPcK/20= Original-Received: by 10.86.4.14 with SMTP id 14mr1720203fgd.76.1232992690237; Mon, 26 Jan 2009 09:58:10 -0800 (PST) Original-Received: from ?10.40.95.228? (8.121.113.82.net.de.o2.com [82.113.121.8]) by mx.google.com with ESMTPS id e11sm238763fga.29.2009.01.26.09.58.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 26 Jan 2009 09:58:09 -0800 (PST) In-Reply-To: <200901260951.39306.bntgcontext@wiseguysweb.com> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=64.233.182.185; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 170712356 - 42f75cbe0fa2 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:47035 Archived-At: 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 Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________