From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84740 Path: news.gmane.org!not-for-mail From: "Ciro A. Soto" Newsgroups: gmane.comp.tex.context Subject: Re: \def\MyChapterCommand#1#2 error... Date: Fri, 11 Oct 2013 17:45:06 -0400 Message-ID: References: <52586B2C.8090702@wxs.nl> Reply-To: ciro@kavyata.com, mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1842502249==" X-Trace: ger.gmane.org 1381527911 30817 80.91.229.3 (11 Oct 2013 21:45:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Oct 2013 21:45:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 11 23:45:17 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VUkWI-0002UD-EL for gctc-ntg-context-518@m.gmane.org; Fri, 11 Oct 2013 23:45:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9A38D10193; Fri, 11 Oct 2013 23:42:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2wUnGrl9acAF; Fri, 11 Oct 2013 23:42:35 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 5C1DA101DE; Fri, 11 Oct 2013 23:42:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ADEE9101DE for ; Fri, 11 Oct 2013 23:42:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id rXomdLFVxT3M for ; Fri, 11 Oct 2013 23:42:32 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 38CA710193 for ; Fri, 11 Oct 2013 23:42:32 +0200 (CEST) Original-Received: from mail-wg0-x234.google.com (mail-wg0-x234.google.com [IPv6:2a00:1450:400c:c00::234]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r9BLj6Rt007574 for ; Fri, 11 Oct 2013 23:45:07 +0200 Original-Received: by mail-wg0-f52.google.com with SMTP id m15so4944502wgh.19 for ; Fri, 11 Oct 2013 14:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=/wY6z4wckdm2yRVzqdS8iPU1HlDFRD+RLcigQSaObwk=; b=hoiiz/+HFrSE4KVOP03uJ2Uw7h7qFkgvIkWwMPCTOcJ0Z5SZefSvlW1A3jtfcQU+P5 tXufw8TyudwtLxzEHL15AVTVbcHlATMxYGRVe8gFHXvq4YDnJOZk8bc7m0dc38pNdqZr GU83e32Pe3rAsAslsUVCCdR718EmTfGz/cfT9GOWjclLafbe7VsbtVhGBZQvfaujUV5n cL9C1gDqVHiU29CBkhrBI+vZidt1Is4qL3seX3UWWCN0no9Re/QMv16o4fxPQOo8wevd j1vLY5kB6tpHQYpoDk9IUryyjFEgsPUj1x9BIhQhImLnjBKDH5EppItl5fs0plLGUt3g 5Gag== X-Received: by 10.194.174.36 with SMTP id bp4mr18661546wjc.7.1381527906445; Fri, 11 Oct 2013 14:45:06 -0700 (PDT) Original-Received: by 10.227.92.6 with HTTP; Fri, 11 Oct 2013 14:45:06 -0700 (PDT) In-Reply-To: <52586B2C.8090702@wxs.nl> X-Google-Sender-Auth: MFi9Ccer41Dqx-SS9OLbI_qFLeo X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c00::234; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07KzVJ7a2 - 7c9b24eba0f9 - 20131011 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:84740 Archived-At: --===============1842502249== Content-Type: multipart/alternative; boundary=089e0141a0ae1c716e04e87e085c --089e0141a0ae1c716e04e87e085c Content-Type: text/plain; charset=ISO-8859-1 thank you again. (\unexpanded was not needed 5 years ago...) ciro ciro Books you should read: [image: Lead, Follow & Suceed] [image: The Guitar Maker] [image: La Vida, El Amor, La Mujer] My social profile: [image: Facebook] [image: Twitter] On Fri, Oct 11, 2013 at 5:18 PM, Hans Hagen wrote: > On 10/11/2013 11:13 PM, Ciro A. Soto wrote: > >> I am not able to use #1#2 arguments... Don't know what is going on. >> thank you for your help >> >> ciro >> ------------------------------**--- >> >> >> *Case 1) * >> >> \setuphead[chapter][command=\**MyChapterCommand] >> \def\MyChapterCommand{} >> >> \starttext >> \chapter{first chapter} >> \stoptext >> >> *output:* no error message, pdf file produced. Everything as expected. >> >> *Case 2)* >> >> \setuphead[chapter][command=\**MyChapterCommand] >> \def\MyChapterCommand#1#2{{#1} : {#2}} >> > > \unexpanded\def .... > > > \starttext >> \chapter{first chapter} >> \stoptext >> >> *output:* >> >> . >> . >> . >> fonts > 'fallback modern rm 12pt' is loaded >> structure > sectioning > chapter @ level 2 : 0.1 -> first chapter >> ! Argument of \MyChapterCommand has an extra }.. >> >> >> system > tex > error on line 6 in file >> /home/ciro/Desktop/TGM_**SpanishTranslation/test2.tex: Argument of ... >> >> 1 \setuphead[chapter][command=\**MyChapterCommand] >> 2 %\def\MyChapterCommand{} >> 3 \def\MyChapterCommand#1#2{{#1} : {#2} >> 4 } >> 5 \starttext >> 6 >> \chapter{first chapter} >> 7 \stoptext >> 8 >> >> >> >> >> >> ______________________________**______________________________** >> _______________________ >> 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 : http://foundry.supelec.fr/**projects/contextrev/ >> wiki : http://contextgarden.net >> ______________________________**______________________________** >> _______________________ >> >> > > -- > > ------------------------------**------------------------------**----- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > ------------------------------**------------------------------**----- > ______________________________**______________________________** > _______________________ > 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 : http://foundry.supelec.fr/**projects/contextrev/ > wiki : http://contextgarden.net > ______________________________**______________________________** > _______________________ > --089e0141a0ae1c716e04e87e085c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
thank you again.=A0
(\unexpanded was not needed 5 year= s ago...)

ciro

ciro


Books you should read:

3D"Lead,=A0 3D"The==A0=A03D"La

My social = profile: 3D"Face= 3D"Twitter"


On Fri, Oct 11, 2013 at 5:18 PM, Hans Ha= gen <pragma@wxs.nl> wrote:
On 10/11/2013 11:13 PM, Ciro A. Soto wrote:
I am not able to use #1#2 arguments... Don't know what is going on.
thank you for your help

ciro
---------------------------------


*Case 1) *

\setuphead[chapter][command=3D\MyChapterCommand]
\def\MyChapterCommand{}

\starttext
\chapter{first chapter}
\stoptext

*output:* no error message, pdf file produced. Everything as expected.

*Case 2)*

\setuphead[chapter][command=3D\MyChapterCommand]
\def\MyChapterCommand#1#2{{#1} : {#2}}

\unexpanded\def ....


\starttext
\chapter{first chapter}
\stoptext

*output:*

.
.
.
fonts =A0 =A0 =A0 =A0 =A0 > 'fallback modern rm 12pt' is loaded<= br> structure =A0 =A0 =A0 > sectioning > chapter @ level 2 : 0.1 -> fi= rst chapter
! Argument of \MyChapterCommand has an extra }..


system =A0 =A0 =A0 =A0 =A0> tex > error on line 6 in file
/home/ciro/Desktop/TGM_SpanishTranslation/test2.tex: Argument of =A0= ...

1 =A0 =A0 \setuphead[chapter][command=3D\MyChapterCommand]
2 =A0 =A0 %\def\MyChapterCommand{}
3 =A0 =A0 \def\MyChapterCommand#1#2{{#1} : {#2}
4 =A0 =A0 }
5 =A0 =A0 \starttext
6 >> =A0\chapter{first chapter}
7 =A0 =A0 \stoptext
8





_____________________________________________________________= ______________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0:
http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: http://foundry.supelec.fr/projects/contextrev/ wiki =A0 =A0 : http:= //contextgarden.net
_____________________________________________________________= ______________________



--

-------------------------------------------------------------= ----
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 Hans Hagen | PRAGMA ADE
=A0 =A0 =A0 =A0 =A0 =A0 =A0 Ridderstraat 27 | 8061 GH Hasselt | The Netherl= ands
=A0 =A0 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0| ww= w.pragma-pod.nl
-------------------------------------------------------------= ----
_____________________________________________________________= ______________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0:
http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: http://foundry.supelec.fr/projects/contextrev/ wiki =A0 =A0 : http:= //contextgarden.net
_____________________________________________________________= ______________________

--089e0141a0ae1c716e04e87e085c-- --===============1842502249== 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1842502249==--