From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54564 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: How to not gobble space after a command Date: Fri, 20 Nov 2009 11:30:22 +0100 Message-ID: References: <20091120102352.GZ3418@katherina.student.utwente.nl> 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 1258713049 2709 80.91.229.12 (20 Nov 2009 10:30:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Nov 2009 10:30:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 20 11:30:42 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NBQl8-0000Gn-IV for gctc-ntg-context-518@m.gmane.org; Fri, 20 Nov 2009 11:30:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3D2E0C9ADD; Fri, 20 Nov 2009 11:28:00 +0100 (CET) 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 f6MxVtasllu6; Fri, 20 Nov 2009 11:27:56 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CDECBC9AAA; Fri, 20 Nov 2009 11:27:56 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DF890C9AAA for ; Fri, 20 Nov 2009 11:27:54 +0100 (CET) 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 YXO-JPNojV0o for ; Fri, 20 Nov 2009 11:27:52 +0100 (CET) Original-Received: from mail-bw0-f220.google.com (mail-bw0-f220.google.com [209.85.218.220]) by balder.ntg.nl (Postfix) with ESMTP id 55238C9A9C for ; Fri, 20 Nov 2009 11:27:52 +0100 (CET) Original-Received: by bwz20 with SMTP id 20so2115356bwz.34 for ; Fri, 20 Nov 2009 02:30:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=Op7/JVtBv3JBfct8V543HqxKC5Pci2I/UWGUwkg7okU=; b=mnp5eTgIMTJLWPNLUYeaDjaqokQs2voHc0xAXzI/kFbmsBl5Vw9XEP9Z6a/AYgZclR LfC5ADgplognMnVHclTTuQihGl8a8z/wtsK8lAtNdKm34tGqNWlgLAbCrBPbKwEmv2xw gXtYJF815ia5PL+AyXBa2ludET32vU9lqDy3Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=fbr5Tt2b4CUM2aoZ4Fgt8HKvLgI2NAXJ3gyWv74QARw8KMF6KbbKmWCzjSJXO9on6Z zb4XNN06C+pwU7Jl65KWDm1vgZlRtH2Fm8dgSSZBSGmE7nKryUsFCTUBNXNngwTU1fh0 NMdyLMTxYJBRMy0MM5ebw1lladAfceJr2Wjxw= Original-Received: by 10.204.11.3 with SMTP id r3mr1128842bkr.107.1258713022275; Fri, 20 Nov 2009 02:30:22 -0800 (PST) In-Reply-To: <20091120102352.GZ3418@katherina.student.utwente.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:54564 Archived-At: On Fri, Nov 20, 2009 at 11:23 AM, Matthijs Kooijman wrote: > Hi all, > > I'm working with a few custom macros to simplify typing a bit, like: > > \def\VHDL{\small{VHDL}} > > However, when I use this macro in text, like \VHDL this, it gobbles the space > after it. I've seen some references that say to solve this by writing \VHDL{} > instead, but that is of course very unpretty. I've tried to put all kinds of > stuff ({}, \mbox{}, \obeyedspace, etc.) inside the \VHDL macro, but it seems > the space is already gone there, so that didn't work. (Note that just putting > a space inside the macro won't work, for cases where I use \VHDL, like this) > > It seems that latex has an xspace package that does some guesswork about > whether a space is required, but it looks mightily scary. Does ConTeXt provide > for any way to solve this problem in a nice way? Or is this just so > fundamental in TeX that there is no real solution? I don't know the answer. But I remember that a similar question time ago trigged to me to know more about \futurelet and I consider it a real gain for my own personal macro. Maybe can be the same for you. -- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________