From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34075 Path: news.gmane.org!not-for-mail From: Vyatcheslav Yatskovsky Newsgroups: gmane.comp.tex.context Subject: Re: anaemic spacing around in-line typed text Date: Sun, 1 Apr 2007 22:49:34 +0300 Message-ID: <545155197.20070401224934@gmail.com> References: <294950001.20070327003807@gmail.com> <4608E8C5.1040608@elvenkind.com> <1589470894.20070401154050@gmail.com> <20070401152221.be679d3d.schuster.wolfgang@googlemail.com> Reply-To: Yatskovsky , mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0986289861==" X-Trace: sea.gmane.org 1175457132 6737 80.91.229.12 (1 Apr 2007 19:52:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Apr 2007 19:52:12 +0000 (UTC) To: "ntg-context-request@ntg.nl" Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 01 21:52:05 2007 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 1HY65s-0001B8-Of for gctc-ntg-context-518@m.gmane.org; Sun, 01 Apr 2007 21:52:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EE91C20364; Sun, 1 Apr 2007 21:52: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 22710-04-2; Sun, 1 Apr 2007 21:51:49 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 65FF720351; Sun, 1 Apr 2007 21:51:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6EB6720346 for ; Sun, 1 Apr 2007 21:51:43 +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 22710-04 for ; Sun, 1 Apr 2007 21:51:30 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by ronja.ntg.nl (Postfix) with ESMTP id D906020351 for ; Sun, 1 Apr 2007 21:49:28 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id m2so1525709uge for ; Sun, 01 Apr 2007 12:49:28 -0700 (PDT) Original-Received: by 10.66.249.16 with SMTP id w16mr3935357ugh.1175456968626; Sun, 01 Apr 2007 12:49:28 -0700 (PDT) Original-Received: from gavel.indulge.volia.net ( [77.122.215.114]) by mx.google.com with ESMTP id b36sm6288438ika.2007.04.01.12.49.27; Sun, 01 Apr 2007 12:49:27 -0700 (PDT) X-Mailer: The Bat! (v3.98.4) Professional X-Priority: 3 (Normal) In-Reply-To: <20070401152221.be679d3d.schuster.wolfgang@googlemail.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:34075 Archived-At: --===============0986289861== Content-Type: multipart/alternative; boundary="----------E1151ADB4DA435" ------------E1151ADB4DA435 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Hello Wolfgang, Thanks. \def\comm{\thinspace\groupedcommand\tt\thinspace} works quite well. From=20a newbie standpoint, I wonder why replacing \thinspace with \hspace[= medium] fails? (I had another version \def\comm#1{\hspace[medium]{\tt#1}\hspace[medium]} it worked.) Vystcheslav > On Sun, 1 Apr 2007 15:40:50 +0300 > Vyatcheslav Yatskovsky wrote: >> Hello Taco, >> Thanks, I came up with the following >> \def\comm#1{{\tt#1}\,} >> \starttext >> The \comm{rand} function generates pseudo-random numbers. >> \stoptext >> I quite satisfied with it, but maybe there is better way to typeset >> programming keywords? >> Best regards, >> Vyatcheslav Yatskovsky > There is a better way to define such a command in ConTeXt. > \def\comm > {\groupedcommand\tt\thinspace} > \starttext > The \comm{rand} function generates pseudo-random numbers. > The {\comm rand} function generates pseudo-random numbers. > \stoptext > Wolfgang --=20 Best regards, Vyatcheslav Yatskovsky ------------E1151ADB4DA435 Content-Type: text/html; charset=windows-1251 Content-Transfer-Encoding: quoted-printable

Hello Wolfgang,


Thanks.


\def\comm{\thinspace\groupedcommand\tt\thinspace}

 works quite well.


From a newbie standpoint, I wonder why replacing \thinspace with \hspace= [medium] fails?


(I had another version

 \def\comm#1{\hspace[medium]{\tt#1}\hspace[medium]}

it worked.)


Vystcheslav




> On Sun, 1 Apr 2007 15:40:50 +0300

> Vyatcheslav Yatskovsky <yatskovsky@gmail.com> wrote:


>> Hello Taco,


>> Thanks, I came up with the following


>> \def\comm#1{{\tt#1}\,}


>> \starttext

>> The \comm{rand} function generates pseudo-= random numbers.

>> \stoptext


>> I quite satisfied with it, but maybe there= is better way to typeset

>> programming keywords?


>> Best regards,

>> Vyatcheslav Yatskovsky



> There is a better way to define such a command = in ConTeXt.


> \def\comm

>   {\groupedcommand\tt\thinspace}


> \starttext


> The \comm{rand} function generates pseudo-rando= m numbers.


> The {\comm rand} function generates pseudo-rand= om numbers.


> \stoptext


> Wolfgang



-- 

Best regards,

Vyatcheslav Yatskovsky

------------E1151ADB4DA435-- --===============0986289861== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============0986289861==--