From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45504 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Kerning Date: Wed, 12 Nov 2008 18:17:35 +0100 Message-ID: <643EDA65-4829-4FE8-8681-04BD4BE01891@gmail.com> References: <200811120848.15165.bntgcontext@wiseguysweb.com> <5512CC7E-8B7C-4C11-881B-CC184866FD87@gmail.com> <200811120928.40138.bntgcontext@wiseguysweb.com> <200811121003.56433.bntgcontext@wiseguysweb.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1226510375 6521 80.91.229.12 (12 Nov 2008 17:19:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Nov 2008 17:19:35 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 12 18:20:36 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 1L0JOH-0001mq-Di for gctc-ntg-context-518@m.gmane.org; Wed, 12 Nov 2008 18:20:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D7AF21FB60; Wed, 12 Nov 2008 18:19:18 +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 11311-04; Wed, 12 Nov 2008 18:18:21 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EF5A11FB7F; Wed, 12 Nov 2008 18:18:20 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0813E1FB7F for ; Wed, 12 Nov 2008 18:18:20 +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 15833-02-2 for ; Wed, 12 Nov 2008 18:17:45 +0100 (CET) Original-Received: from yx-out-1718.google.com (yx-out-1718.google.com [74.125.44.153]) by ronja.ntg.nl (Postfix) with ESMTP id A5BB81FB4E for ; Wed, 12 Nov 2008 18:17:44 +0100 (CET) Original-Received: by yx-out-1718.google.com with SMTP id 3so222196yxi.74 for ; Wed, 12 Nov 2008 09:17:43 -0800 (PST) Original-Received: by 10.86.59.18 with SMTP id h18mr1705720fga.77.1226510262464; Wed, 12 Nov 2008 09:17:42 -0800 (PST) Original-Received: from ?10.40.27.200? (8.121.113.82.net.de.o2.com [82.113.121.8]) by mx.google.com with ESMTPS id 4sm112537fgg.4.2008.11.12.09.17.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 12 Nov 2008 09:17:41 -0800 (PST) In-Reply-To: <200811121003.56433.bntgcontext@wiseguysweb.com> X-Mailer: Apple Mail (2.929.2) 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:45504 Archived-At: Am 12.11.2008 um 18:03 schrieb Bart C. Wise: > Okay, it works until I place an an argument in the stretched command. > > def\MyChapterCommand#1#2{ > \framed[align=center,frame=off,width=\textwidth]{ > \vbox{ > fails--> \stretched{#2} > works--> \stretched{This is a Test} > } > } > \setuphead[chapter][ > command=\MyChapterCommand > } > > > I get the following error when I run texexec: > > ! Missing \endcsname inserted. > > \let > \nextprocessedtoken ...oup \ifincolor \ifcsname #1 > #3\endcsname \let > \dostopa... > > \dodoprocesstokens ...token \let \before \between > \fi \let > \nextprocessedtok... > This is a test: \dostartattributes > {\??ko \v!title }\c!style > \c!c... > > \processtokens ...fore \before \doprocesstokens #5 > \lastcharacter > \endgroup > \stretched ... \relax \hss \relax {\hss \hss }{#1} > \egroup > ... > > How can I use the #1 & #2 arguments in the stretched command? You could use it only with \deeptextcommand, here is a old mail with a example from Hans (you could ignore the other code). http://archive.contextgarden.net/message/20060113.102321.bf24d7ca.en.html 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 ___________________________________________________________________________________