From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46921 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Defining a function Date: Wed, 21 Jan 2009 13:28:21 +0100 Message-ID: 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 1232541018 7796 80.91.229.12 (21 Jan 2009 12:30:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2009 12:30:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 21 13:31:28 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 1LPcEu-0007FB-Ap for gctc-ntg-context-518@m.gmane.org; Wed, 21 Jan 2009 13:31:24 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 226801FDF0; Wed, 21 Jan 2009 13:30: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 30369-03-3; Wed, 21 Jan 2009 13:29:02 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E9ED61FDDA; Wed, 21 Jan 2009 13:29:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 37A151FDDA for ; Wed, 21 Jan 2009 13:29:00 +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 30369-03-2 for ; Wed, 21 Jan 2009 13:28:24 +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 1A0371FDCF for ; Wed, 21 Jan 2009 13:28:24 +0100 (CET) Original-Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.249]) by filter2-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0LCSM69024100 for ; Wed, 21 Jan 2009 13:28:23 +0100 Original-Received: by rv-out-0708.google.com with SMTP id f25so3917568rvb.14 for ; Wed, 21 Jan 2009 04:28:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=/LN1NWoazy+LKt0gIkcOFC2LMMyAXL02lYAYHOpqr5s=; b=QpUD8JChtrhzj5Q7DK9/36wVgZwtxucJwbpGtEwncHSVNBObk1HlpjnL1NeiyS0prR 5cLYGLsMXNY+gxAQEJIPg1iQi11hXf7nwmXWaDPjS75dO05g1RE0cN5M4fM89ENy3wCE BJEHSeiCDSzLsT9C/Dqg2OCGfoifId2GaFOO4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=Ll3VMLWLgeYiA/Ewjx0goSujiP78Y6QcXbh1J2afMN0MGnydbm3i0OYj32YH+Q6a2k AlUxOgC0LwGCEzIze7ZjbaDZh0bRDiFu4PjcaXeT0TUHEaJwRwL3mPw+uGDnUhXbaBpe nFMG4peiSOSdXUPjIiGmG7sPNUsJoAebALLzY= Original-Received: by 10.141.152.9 with SMTP id e9mr3952374rvo.189.1232540901569; Wed, 21 Jan 2009 04:28:21 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.198.249; 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: 168503068 - f0d8aa559e20 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:46921 Archived-At: I defined a command as descriped in http://wiki.contextgarden.net/Processing_Lists. (\def\IHaveTo#1#2{I have to #1 on #2.\par}) If I define it in the tex-file that is processed it works. But when I put the definition in the template file that is used, it does not work. What do I need to do to define a command in a template file? -- Cecil Westerhof ___________________________________________________________________________________ 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 ___________________________________________________________________________________