From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52033 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: I can't change startitemize[n]--> startitemize[1] Date: Thu, 23 Jul 2009 17:57:50 +0200 Message-ID: References: <4A685239.1090601@telefonica.net> <99771342-5FD0-4A61-97F8-E49B383CD6EE@gmail.com> <4A686E0D.7000505@wxs.nl> <4A6874AB.2000301@telefonica.net> <4A6875B3.6090200@wxs.nl> <3771A7EB-58A6-4A0A-8AA2-C733BC889781@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1740450179==" X-Trace: ger.gmane.org 1248364749 1074 80.91.229.12 (23 Jul 2009 15:59:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jul 2009 15:59:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 23 17:59:02 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 1MU0h9-0008Bk-RW for gctc-ntg-context-518@m.gmane.org; Thu, 23 Jul 2009 17:58:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 293651FB5B; Thu, 23 Jul 2009 17:58:59 +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 11267-08-3; Thu, 23 Jul 2009 17:58:02 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 993471FBA8; Thu, 23 Jul 2009 17:58:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6E1B51FBA8 for ; Thu, 23 Jul 2009 17:58:01 +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 11267-08-2 for ; Thu, 23 Jul 2009 17:57:51 +0200 (CEST) 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 950FA1FB5B for ; Thu, 23 Jul 2009 17:57:51 +0200 (CEST) Original-Received: from mail-ew0-f217.google.com (mail-ew0-f217.google.com [209.85.219.217]) by filter2-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n6NFvoma026488 for ; Thu, 23 Jul 2009 17:57:51 +0200 Original-Received: by ewy17 with SMTP id 17so1095618ewy.2 for ; Thu, 23 Jul 2009 08:57:50 -0700 (PDT) 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; bh=GEAkg+2R492xHEbAE+lpudBqt+M+1AQafdqib9stemA=; b=J7wKEN4ZNgrQ2mpyih00vMIAIxL5QU46G1h1miqor4+JfanwctLPm5ZjtlbbMvDBfb SFA82ZJ/wagA9BFC9ppaG3YtYcRVLSF46+LtgRK8c+vTVB1Sma5WpMOsOPrbu8DOzktF Tmlc48M44y/zEux2SdO1/at2LRJ7Au/NSq0Kk= 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; b=Xr/YIbW9roNplQrOIML3GK7V6J4i86YnaNTn5A3Hnyr83s4HIyf50IEAupZCDn3jRI YPyHjCXJ3FnhPj3V7ra7Xlg79sBY87E+7LCJj4LhMtHjlbSPBjAU/A09vzbmr1A74oB4 MrL9rGrZDyu0GfUrosJz+8r9FO2w1E/eixZTE= Original-Received: by 10.216.39.194 with SMTP id d44mr690992web.116.1248364670504; Thu, 23 Jul 2009 08:57:50 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.217; 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: 265054436 - 380e37a664ff - 20090723 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:52033 Archived-At: --===============1740450179== Content-Type: multipart/alternative; boundary=0016365ee0babc513a046f618cc5 --0016365ee0babc513a046f618cc5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Thu, Jul 23, 2009 at 5:52 PM, Aditya Mahajan wrote: > On Thu, 23 Jul 2009, Wolfgang Schuster wrote: > > >> Am 23.07.2009 um 17:05 schrieb Aditya Mahajan: >> >> I think an easier thing to do will be to follow latex's style of >>> \newcommand and \renewcommand. That is, all \definecommands should check if >>> the macro is previously defined or not. If it is defined, issue a warning or >>> an error. >>> >> >> There is \define and \redefine. >> > > I know. What I am asking is that the core macros like \definedescription, > \defineitemgroups, \definehead, which have the general form > > \def\defineSOMETHING% > {\dodoubleargument\dodefineSOMETHING} > > \def\dodefineSOMETHING[#1][#2]% > {\setvalue{#1}{\dododefineSOMETHING[#2]} > > should do some check before the \setvalue. Maybe a universal solution will > be to change \setvalue so that it uses \define (or a check like define) > internally. Or maybe \Usersetvalue I think to an "user-space" and a "kernel-space" -- luigi --0016365ee0babc513a046f618cc5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Thu, Jul 23, 2009 at 5:52 PM, Aditya = Mahajan <adityam@= umich.edu> wrote:
On Thu, 23 Jul 2009, Wolfgang Schuster wrote:


Am 23.07.2009 um 17:05 schrieb Aditya Mahajan:

I think an easier thing to do will be to follow latex's style of \newco= mmand and \renewcommand. That is, all \definecommands should check if the m= acro is previously defined or not. If it is defined, issue a warning or an = error.

There is \define and \redefine.

I know. What I am asking is that the core macros like \definedescription, \= defineitemgroups, \definehead, which have the general form

\def\defineSOMETHING%
=C2=A0{\dodoubleargument\dodefineSOMETHING}

\def\dodefineSOMETHING[#1][#2]%
=C2=A0{\setvalue{#1}{\dododefineSOMETHING[#2]}

should do some check before the \setvalue. Maybe a universal solution will = be to change \setvalue so that it uses \define (or a check like define) int= ernally.
Or maybe
\Usersetvalue
I=C2=A0 think to an = "user-space"
and a "kernel-space"
=C2=A0
--
luigi

--0016365ee0babc513a046f618cc5-- --===============1740450179== 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 ___________________________________________________________________________________ --===============1740450179==--