From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46925 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Re: Defining a function Date: Wed, 21 Jan 2009 14:36:50 +0100 Message-ID: References: <115224fb0901210443p737889d1gdaf93bce9f6f0c30@mail.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 1232545131 22031 80.91.229.12 (21 Jan 2009 13:38:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2009 13:38:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 21 14:40:03 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 1LPdJJ-0001aF-QM for gctc-ntg-context-518@m.gmane.org; Wed, 21 Jan 2009 14:40:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A0D9A1FE0D; Wed, 21 Jan 2009 14:38:42 +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 08256-03; Wed, 21 Jan 2009 14:37:32 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 06A731FDF2; Wed, 21 Jan 2009 14:37:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C1ECC1FDF2 for ; Wed, 21 Jan 2009 14:37:29 +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 08218-05-5 for ; Wed, 21 Jan 2009 14:36:53 +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 0BAA31FDDF for ; Wed, 21 Jan 2009 14:36:53 +0100 (CET) Original-Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.240]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0LDaoCo017142 for ; Wed, 21 Jan 2009 14:36:51 +0100 Original-Received: by rv-out-0708.google.com with SMTP id f25so3942059rvb.14 for ; Wed, 21 Jan 2009 05:36:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=PyJ7mawAcyRmymchlLVe/Me/YdjlIFiUkxnzcrrExww=; b=dvlo4EwHA+93dCObYNpbREQSKOGr6sqNt4OgVfqXWRyXiBCUA/KP2rMOLsETJJtwSR iKrVJFwGxtwmfX3CwsLSVh4DYeL6gb9kRjubPpPQozm/N6W977BU9duCVOEgMCCBaGWy x894oVkZOj4wGn5oB/DnI95+pIT8LnI9wsshI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=RExtjnpYIkesAFMwN6Qo9/3HM7sUQeI1TOQprsD/1v54drf/YHGGuLvbaI6m05oKjm OgpESR5TiA4nAOVfHEKdFeA4gOnDaItgICpM3EyDpM82MxU2Apb562hC/mrm5Do1KlpZ NT4nOQQl2bJBStUou4aOgXVCy2TaUOasGWy5I= Original-Received: by 10.141.42.10 with SMTP id u10mr3977218rvj.241.1232545010315; Wed, 21 Jan 2009 05:36:50 -0800 (PST) In-Reply-To: <115224fb0901210443p737889d1gdaf93bce9f6f0c30@mail.gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.198.240; 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: 168545765 - 45700b31d4c6 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:46925 Archived-At: 2009/1/21 Wolfgang Schuster : > On Wed, Jan 21, 2009 at 1:28 PM, Cecil Westerhof wrote: >> 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? > > How do you load your template file? With \usemodule. But I allready found the problem. I used a template I found on the internet. This started with \protect and ended with \unprotect. It should be the other way around. I changed that and now it works. -- 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 ___________________________________________________________________________________