From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45503 Path: news.gmane.org!not-for-mail From: "Bart C. Wise" Newsgroups: gmane.comp.tex.context Subject: Re: Kerning Date: Wed, 12 Nov 2008 10:03:56 -0700 Message-ID: <200811121003.56433.bntgcontext@wiseguysweb.com> References: <200811120848.15165.bntgcontext@wiseguysweb.com> <5512CC7E-8B7C-4C11-881B-CC184866FD87@gmail.com> <200811120928.40138.bntgcontext@wiseguysweb.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1226509650 3449 80.91.229.12 (12 Nov 2008 17:07:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Nov 2008 17:07:30 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 12 18:08:30 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 1L0JCG-0004Pu-EE for gctc-ntg-context-518@m.gmane.org; Wed, 12 Nov 2008 18:08:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 237D91FBAA; Wed, 12 Nov 2008 18:06:53 +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 27908-01; Wed, 12 Nov 2008 18:05:52 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5FF5E1FB7E; Wed, 12 Nov 2008 18:05:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A6AEA1FB7E for ; Wed, 12 Nov 2008 18:05:50 +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 13232-04 for ; Wed, 12 Nov 2008 18:05:15 +0100 (CET) Original-Received: from out01.mta.xmission.com (out01.mta.xmission.com [166.70.13.231]) by ronja.ntg.nl (Postfix) with ESMTP id F2CCC1FB6D for ; Wed, 12 Nov 2008 18:05:14 +0100 (CET) Original-Received: from mx04.mta.xmission.com ([166.70.13.214]) by out01.mta.xmission.com with esmtp (Exim 4.62) (envelope-from ) id 1L0J9b-00070t-Tm for ntg-context@ntg.nl; Wed, 12 Nov 2008 10:05:19 -0700 Original-Received: from bwise1.provo.novell.com ([137.65.171.141] helo=bwise1.localnet) by mx04.mta.xmission.com with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1L0J8S-0003rO-3X for ntg-context@ntg.nl; Wed, 12 Nov 2008 10:05:22 -0700 User-Agent: KMail/1.10.3 (Linux/2.6.27-7-generic; KDE/4.1.3; x86_64; ; ) In-Reply-To: <200811120928.40138.bntgcontext@wiseguysweb.com> Content-Disposition: inline X-XM-SPF: eid=; ; ; mid=; ; ; hst=mx04.mta.xmission.com; ; ; ip=137.65.171.141; ; ; frm=bntgcontext@wiseguysweb.com; ; ; spf=none X-SA-Exim-Connect-IP: 137.65.171.141 X-SA-Exim-Rcpt-To: ntg-context@ntg.nl X-SA-Exim-Mail-From: bntgcontext@wiseguysweb.com X-Spam-DCC: XMission; sa05 1397; Body=2 Fuz1=2 Fuz2=2 X-Spam-Combo: ;ntg-context@ntg.nl X-Spam-Relay-Country: X-SA-Exim-Version: 4.2.1 (built Thu, 07 Dec 2006 04:40:56 +0000) X-SA-Exim-Scanned: Yes (on mx04.mta.xmission.com) 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:45503 Archived-At: 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? On Wednesday 12 November 2008 09:28:39 am Bart C. Wise wrote: > Wolfgang, > > It works! > > Thanks, > Bart > > On Wednesday 12 November 2008 08:54:49 am Wolfgang Schuster wrote: > > Am 12.11.2008 um 16:48 schrieb Bart C. Wise: > > > I am trying to change the spacing of a chapter title head. I found > > > the > > > "\kern" command; however, I could not get that to work over a string > > > of text. > > > > > > Then I found the following code: > > > \def\dolist{\afterassignment\dodolist\let\next= } > > > \def\dodolist{\ifx\next\endlist \let\next\relax > > > \else \\\let\next\dolist \fi > > > \next} > > > \def\endlist{\endlist} > > > \def\track#1\by#2{\def\\{\next\kern#2}% > > > \leavevmode \hbox{\expandafter\dolist#1\endlist}} > > > > > > Then I tried: > > > > > > def\MyChapterCommand#1#2{ > > > \framed[align=center,frame=off,width=\textwidth]{ > > > \vbox{ > > > \track{This is a Test} \by{.2em} > > > \track #2 \by{.2em} > > > } > > > } > > > \setuphead[chapter][ > > > command=\MyChapterCommand > > > } > > > > > > The output from the \track{This is a Test} \by{.2em} works. > > > However, the > > > second track command (\track #2 \by{0.2em}) fails. > > > > > > I spent many hours last night trying to change the kerning. What I > > > want is > > > something like: \kern{TEXT}{KERNING AMOUNT}. > > > > > > What's available, or how do I fix the track command above. By the > > > way,I'm > > > running mkii. > > > > Search for \stretched and \stretchednormalcase. > > > > http://archive.contextgarden.net/message/20080815.074940.ae67f770.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 > > _________________________________________________________________________ > >__ ________ > > ___________________________________________________________________________ >________ 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 > ___________________________________________________________________________ >________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________