From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43844 Path: news.gmane.org!not-for-mail From: "Goebel, Juergen" Newsgroups: gmane.comp.tex.context Subject: defining (new) macros with optional arguments Date: Wed, 10 Sep 2008 11:54:16 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1075283827==" X-Trace: ger.gmane.org 1221040570 28048 80.91.229.12 (10 Sep 2008 09:56:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2008 09:56:10 +0000 (UTC) To: Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 10 11:57:05 2008 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 1KdMRS-0006MJ-1n for gctc-ntg-context-518@m.gmane.org; Wed, 10 Sep 2008 11:56:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 92B761FE58; Wed, 10 Sep 2008 11:55:49 +0200 (CEST) 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 01646-04-12; Wed, 10 Sep 2008 11:55:03 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E61491FDF5; Wed, 10 Sep 2008 11:55:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BABE11FDF5 for ; Wed, 10 Sep 2008 11:54:57 +0200 (CEST) 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 07963-01-2 for ; Wed, 10 Sep 2008 11:54:18 +0200 (CEST) Original-Received: from mailde1.eads.com (mailde1.eads.com [80.156.44.82]) by ronja.ntg.nl (Postfix) with ESMTP id 3D8061FC43 for ; Wed, 10 Sep 2008 11:54:18 +0200 (CEST) Original-Received: from de-gate2.mailhub.intra.corp ([53.154.243.34]) by mailde1.eads.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 10 Sep 2008 11:54:59 +0200 Original-Received: from deimsg51.de.net.world ([149.207.23.51]) by de-gate2.mailhub.intra.corp with Microsoft SMTPSVC(5.0.2195.6713); Wed, 10 Sep 2008 11:58:14 +0200 Original-Received: from deimsg12.de.net.world ([149.207.23.219]) by deimsg51.de.net.world with Microsoft SMTPSVC(6.0.3790.3959); Wed, 10 Sep 2008 11:54:17 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: defining (new) macros with optional arguments Thread-Index: AckTKzB2ICIhLV+QS/a6IoYTPAO0dw== X-OriginalArrivalTime: 10 Sep 2008 09:54:17.0641 (UTC) FILETIME=[3095B990:01C9132B] X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:43844 Archived-At: This is a multi-part message in MIME format. --===============1075283827== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C9132B.3024FBE2" This is a multi-part message in MIME format. ------_=_NextPart_001_01C9132B.3024FBE2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Does something like \newcommand exist in ConTeXt?=20 My questions aims especially at the optional argument with a predefined value. So, how do I realize=20 \newcommand{\test}[2][A]{foo} with ConTeXt. In the fine manual I found an index entry \definecommand, but in the 'rest' of the manual it was never mentioned (print and screen version alike)! Regards, Juergen ------_=_NextPart_001_01C9132B.3024FBE2 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable defining (new) macros with optional arguments

Hi,

Does something like \newcommand exist = in ConTeXt?
My questions aims especially at the = optional argument
with a predefined value.  So, how = do I realize

\newcommand{\test}[2][A]{foo}

with ConTeXt. In the fine manual I = found an index entry
\definecommand, but in the 'rest' of = the manual it was
never mentioned (print and screen = version alike)!

Regards,

Juergen

------_=_NextPart_001_01C9132B.3024FBE2-- --===============1075283827== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1075283827==--