From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32272 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Spacing after defined word: beginner's question Date: Mon, 25 Dec 2006 19:04:33 +0100 Message-ID: <20061225190433.58e3ce07.schuster.wolfgang@googlemail.com> References: <862F542D-05D3-4BE7-8EE8-421E845F55DB@mac.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1167071845 32209 80.91.229.10 (25 Dec 2006 18:37:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Dec 2006 18:37:25 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 25 19:37:23 2006 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 dough.gmane.org with esmtp (Exim 4.50) id 1GyuhO-0001gm-T3 for gctc-ntg-context-518@m.gmane.org; Mon, 25 Dec 2006 19:37:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5EE7A1FD83; Mon, 25 Dec 2006 19:35:33 +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 00638-06-7; Mon, 25 Dec 2006 19:35:25 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 90B501FD62; Mon, 25 Dec 2006 19:35:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 48BBF1FA60 for ; Mon, 25 Dec 2006 19:35: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 00638-06-5 for ; Mon, 25 Dec 2006 19:35:14 +0100 (CET) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by ronja.ntg.nl (Postfix) with SMTP id 48A201FE3D for ; Mon, 25 Dec 2006 19:03:03 +0100 (CET) Original-Received: by nf-out-0910.google.com with SMTP id l37so3953549nfc for ; Mon, 25 Dec 2006 10:04:42 -0800 (PST) Original-Received: by 10.49.90.4 with SMTP id s4mr17861047nfl.1167069881837; Mon, 25 Dec 2006 10:04:41 -0800 (PST) Original-Received: from unknown ( [62.180.205.152]) by mx.google.com with ESMTP id r34sm40048779nfc.2006.12.25.10.04.39; Mon, 25 Dec 2006 10:04:41 -0800 (PST) Original-To: ntg-context@ntg.nl In-Reply-To: <862F542D-05D3-4BE7-8EE8-421E845F55DB@mac.com> X-Mailer: Sylpheed version 2.2.10 (GTK+ 2.6.10; i686-pc-mingw32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:32272 Archived-At: On Mon, 25 Dec 2006 16:45:15 +0000 cormullion@mac.com wrote: > This must be a beginner's question, but I can't find the answer to it > in the manuals... > > Take this ConTeXt source: > > -- > \def\Acme{% > {\ss\sc ACME}} > > Welcome from \Acme. \Acme make fine products. > -- > > When this is made into a PDF, it looks like this: > > -- > Welcome from ACME. ACMEmake fine products. > -- > > - because I didn't have a space in the definition, I don't get a > space in the second sentence, but the period didn't interfere with > the execution of the first occurrence. But if I put a space in the > definition after the 'E', I get this: > > -- > Welcome from ACME . ACME make fine products. > -- > > - and there's a space after the first 'E', which I don't want, even > though there is now a space after the second... > > What am I doing wrong? Hi ???, TeX ignores spaces after commands. This is now problem when your command is before an period, comma ...,but it will it up the next space in a sentence. You can write you sentence in the following ways: Welcome from \Acme. \Acme\ make fine products. Welcome from \Acme. \Acme{} make fine products. Welcome from \Acme. {\Acme} make fine products. There is also a predefined command to define and setup your own abbreviations and syonyms. You can find an example at page 55 in the beginners manual (ma-cb-en.pdf). Wolfgang