From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61628 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: tex placeholder for use in metapost/metafun Date: Sat, 11 Sep 2010 06:18:39 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1284178748 10808 80.91.229.12 (11 Sep 2010 04:19:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Sep 2010 04:19:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 11 06:19:06 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OuHYN-00081a-Ou for gctc-ntg-context-518@m.gmane.org; Sat, 11 Sep 2010 06:19:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 32643CA6FF; Sat, 11 Sep 2010 06:19:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zhWQHfixSfFW; Sat, 11 Sep 2010 06:19:01 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 77E66CA640; Sat, 11 Sep 2010 06:18:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 59D92CA714 for ; Sat, 11 Sep 2010 06:18:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eO6QaJzapHGN for ; Sat, 11 Sep 2010 06:18:44 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 50C7FCA708 for ; Sat, 11 Sep 2010 06:18:44 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o8B4IhuC026766 for ; Sat, 11 Sep 2010 06:18:43 +0200 Original-Received: by fxm3 with SMTP id 3so2743463fxm.14 for ; Fri, 10 Sep 2010 21:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=KQTf6fNHK4evAd9Jerad3bnnb5wShz0+KIvWMllvMrI=; b=riVO2VYy7a/AyUPvbwdmG2TYln2xniohNrHv/UYYmpQ1iXvwrXYc90IgSKRPWCNYa+ iWBFkZsLEDfNkywC4OSGPd4u5DTYDbxmwPKnglV2vV9IrXjOoMGcMs/vN6FOXgp2Dbd7 IhGIfOt7Rom+QGdCewdl84Kc8FJLrrKk9Z5NU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=A1w2nJ3lqUFzjELfN4sc/6X7TIdtW4QZF6GqjLhoqB20BpOH/zk5bjUMB8t7A1VBLI lXXZkpXCsD3f8KtUVJmF5qMoFD03y0izPtJg0rhwQ2BwuyG6J1yRgntext0IA7XRSTOI q2zZUQSKQ0gJ1rkYsYlLVxVjtoPhwMb+RCazQ= Original-Received: by 10.223.126.79 with SMTP id b15mr551138fas.88.1284178723313; Fri, 10 Sep 2010 21:18:43 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B296544.dip.t-dialin.net [91.41.101.68]) by mx.google.com with ESMTPS id s20sm1707409faa.4.2010.09.10.21.18.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 10 Sep 2010 21:18:42 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; 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: 05D5giHAx - 9881ae313e8b - 20100911 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:61628 Archived-At: Am 10.09.2010 um 22:45 schrieb Martin 'golodhrim' Scholz: > Hi everybody, > > as I like to desing a CI for an publishing Cover for an Organisation, I > have a question about usage: > > What I wanna do is, having placeholders in the metapost coverpage, it > should work like > > \author{} > \title{} > \swlogo{} > > in the preamble > > and should be automatically placed in the metapost graphic at runtime.... > > what would be the best way to do that? > > I thought about > > \def\author{content} > > > and then in metapost \btex\author\etex > > but not sure if it will work, or is there a more ConTeXtian way to do > so... You can set the values with \setvariables [document] [author=..., title=..., logo=...] and access them with \getvariable{document}{author} You can also test for a content of the variable: \doifvariable{document}{logo}{\externalfigure[\getvariable{document}{logo}]} 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________