From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84735 Path: news.gmane.org!not-for-mail From: "Ciro A. Soto" Newsgroups: gmane.comp.tex.context Subject: \def\MyChapterCommand#1#2 error... Date: Fri, 11 Oct 2013 17:13:28 -0400 Message-ID: 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="===============1315735104==" X-Trace: ger.gmane.org 1381526010 11146 80.91.229.3 (11 Oct 2013 21:13:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Oct 2013 21:13:30 +0000 (UTC) To: context Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 11 23:13:36 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 1VUk1f-0007LD-Ob for gctc-ntg-context-518@m.gmane.org; Fri, 11 Oct 2013 23:13:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 949DA101E7; Fri, 11 Oct 2013 23:10:58 +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 fL+MHQmTKs6M; Fri, 11 Oct 2013 23:10:56 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 94B28101DE; Fri, 11 Oct 2013 23:10:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 20B44101DE for ; Fri, 11 Oct 2013 23:10:55 +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 KbxppAEpr6MZ for ; Fri, 11 Oct 2013 23:10:53 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id C726310193 for ; Fri, 11 Oct 2013 23:10:53 +0200 (CEST) Original-Received: from mail-we0-x22b.google.com (mail-we0-x22b.google.com [IPv6:2a00:1450:400c:c03::22b]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r9BLDSnG010511 for ; Fri, 11 Oct 2013 23:13:29 +0200 Original-Received: by mail-we0-f171.google.com with SMTP id t60so4744831wes.2 for ; Fri, 11 Oct 2013 14:13:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:date:message-id:subject:from:to :content-type; bh=bXt8xMcfp5PyNQEAVuRJVJX6dLC3WhPTWJMj3a5naq0=; b=gpVqyZhqSF97u2x6nlyRZQngI/k5V3gEq31snUnXjQQvGOfg914ZndJx6ZqWa3VYgb RJik5cSo8wlQknY0F5DrUNutD79+0wCOIBT1NeZQWtsu45nsnnoPF65v1yKBD5a8cVRb 3RlL2kj16HrHG0W+Ji5Voh9d0enygL+0R987ejxT8hFI2iZLfnAwBqH/nFFhf+b/eR38 I9SyeGnrHx7/HbDT8JM1G9MrdJdsxbJFmhReK5OQuTXiVeu8szqIc11XZy1mV7OOObbN QGhCjKY7KY18mcVRSZWmHwfL+jA+H+/ilXmqTR63qv0kfS8Q8Pj7ilazPcCXzLrq2zKh iTYw== X-Received: by 10.180.182.228 with SMTP id eh4mr4752371wic.45.1381526008761; Fri, 11 Oct 2013 14:13:28 -0700 (PDT) Original-Received: by 10.227.92.6 with HTTP; Fri, 11 Oct 2013 14:13:28 -0700 (PDT) X-Google-Sender-Auth: qBju4RFr1oYlgeYi_tBbDNBl5ig X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c03::22b; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03KzVdsXe - 4df7820048ef - 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:84735 Archived-At: --===============1315735104== Content-Type: multipart/alternative; boundary=089e016347fa00117904e87d978e --089e016347fa00117904e87d978e Content-Type: text/plain; charset=ISO-8859-1 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}} \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 --089e016347fa00117904e87d978e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I am not able to use #1#2 arguments... Don't know what= is going on.
thank you for your help

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


Case 1) =A0
\setuphead[chapter][command=3D\MyChapterComman= d]
\def\MyChapterCommand{}<= /div>

\starttext
\chapter{first chapter}
\stoptext

<= /font>
output: no error message, p= df file produced. Everything as expected.

Case 2)
\setuphead[chapter][command=3D\MyChapterComma= nd]
\def\MyChapterCommand#1#2{{#1} : {#2}}<= /div>

\starttext
\chapter{first cha= pter}
\stoptext

output:
.
.
.
fon= ts =A0 =A0 =A0 =A0 =A0 > 'fallback modern rm 12pt' is loaded
structure =A0 =A0 =A0 > sectioning= > chapter @ level 2 : 0.1 -> first chapter
! Argument of \MyChapterCommand has an extra }= .

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

= 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 =A0 =A0=A0

=


--089e016347fa00117904e87d978e-- --===============1315735104== 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 ___________________________________________________________________________________ --===============1315735104==--