From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47289 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: \define was: Section format using /def Date: Thu, 5 Feb 2009 20:06:26 +0100 Message-ID: References: <0E733E69-AD62-4DFC-BD9E-B415B4EF9C65@gmail.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 1233860963 25475 80.91.229.12 (5 Feb 2009 19:09:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2009 19:09:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 05 20:10:38 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 1LV9cT-0006fE-JW for gctc-ntg-context-518@m.gmane.org; Thu, 05 Feb 2009 20:10:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E4D1C1FC0B; Thu, 5 Feb 2009 20:09:12 +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 23930-02-3; Thu, 5 Feb 2009 20:07:48 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 857BE1FB5A; Thu, 5 Feb 2009 20:07:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9BFB41FB14 for ; Thu, 5 Feb 2009 20:07:46 +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 16710-10-3 for ; Thu, 5 Feb 2009 20:07:08 +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 75FA51FBE8 for ; Thu, 5 Feb 2009 20:07:08 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by filter2-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n15J77C8018880 for ; Thu, 5 Feb 2009 20:07:07 +0100 Original-Received: by fg-out-1718.google.com with SMTP id e21so266772fga.8 for ; Thu, 05 Feb 2009 11:07:07 -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=8arP7lGH7SzfvONckoGl1JcPPfaj45d80RadwtYpJow=; b=OhMzYPpttSDIoDY0KSxPvpwYjohGJDJXU7txwuAbPRDoZfgYKDj1NY8FPzs24Udall gHPZEasiMtZi81XqOy6diwl5+XNWWs7IAbQGxgqJswI8S/12PpIFIs9Z6VkoUpP/GOg9 7R3VGBtP1lVTIxYUg2+MwysEUdJkO5b+LcC+Y= 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=l8+97WSHXa+Ek1lbTu2LgzUIvSZlSE8u4TKUFpfan9/CMStwkZB3Mlm/VRjhwrNMqo mYyBe87xkIaW3iDDthjk46HZ4h8q2vB8/rGTrxON1wedK2bEz1JaKt6weg4w/oUtxhy9 7yrC5HiIq9+L4B+FIP9kFoGc7L8t5oJrHZRUw= Original-Received: by 10.86.84.18 with SMTP id h18mr517625fgb.22.1233860827357; Thu, 05 Feb 2009 11:07:07 -0800 (PST) Original-Received: from ?10.40.69.177? (8.121.113.82.net.de.o2.com [82.113.121.8]) by mx.google.com with ESMTPS id e11sm823782fga.30.2009.02.05.11.07.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 05 Feb 2009 11:07:07 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.14.220.154; 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: 175737361 - 0a549f34687f 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:47289 Archived-At: Am 05.02.2009 um 19:45 schrieb Michael Bynum: > Ah, I think I see. So "\define[1]\mysectionhead{\bfa > \WORD{\underbar{#1}}}" would also be valid. Is \define a context > equivalent to the \def command for tex? I couldn't find much > documentation on it. \define is ConTeXt's equivalent to \newcommand in LaTeX, you can set with the optional parameter the number of arguments. It makes a check if the command you create is already defined and writes a message to the terminal. Usage: \define\commanda {First Command} \define[1]\commandb{Second command: #1} \define[2]\commandc{Third command: #1 #2} \starttext \commanda \commandb{text} \commandc{text}{text} \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 ___________________________________________________________________________________