From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92441 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: No space after a closing delimiter Date: Thu, 27 Aug 2015 13:17:29 +0200 Message-ID: <94A4EA22-6DD9-4E33-843C-274E654D6933@gmail.com> References: <42F8ECAC-F8A1-4F72-900C-7FCD46AB14D1@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Content-Type: multipart/mixed; boundary="===============0922198079==" X-Trace: ger.gmane.org 1440674314 17686 80.91.229.3 (27 Aug 2015 11:18:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Aug 2015 11:18:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 27 13:18:22 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZUvCB-0008Em-NZ for gctc-ntg-context-518@m.gmane.org; Thu, 27 Aug 2015 13:18:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EE60410200 for ; Thu, 27 Aug 2015 13:18:14 +0200 (CEST) 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 iOtUBuCwrOgc for ; Thu, 27 Aug 2015 13:18:13 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 23A921023A for ; Thu, 27 Aug 2015 13:17:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4D96110200 for ; Thu, 27 Aug 2015 13:17:36 +0200 (CEST) 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 FxBHxY0JTUC5 for ; Thu, 27 Aug 2015 13:17:35 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 01C40101F6 for ; Thu, 27 Aug 2015 13:17:34 +0200 (CEST) Original-Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) by filter3-utr.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t7RBHXSs004699 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 27 Aug 2015 13:17:33 +0200 Original-Received: by wicne3 with SMTP id ne3so593124wic.0 for ; Thu, 27 Aug 2015 04:17:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=EVTjHHPzN2lMx4eNx+zHzfDLyGY5dhmGhKiEEd7vJvI=; b=GrEU1gOwFhtWb4H/Sv6TS27DekrRFNHnFeqwR141sp0pSaZ9c4TLEms6ApL1SrZqne u9Yyn3jyoamAxkGwHAaxWR1ipZSsN6pyP3DMjfvVNhTXSMkWv2zcH3tVlgIlWZO+YzMn qydZpdQOmIEiG1LYeLe9S9luRDPhZ/Lu81u3RXq/1TYhd34UlUNkgG933FqUmByts2Z3 mC3MmsHtc4fVkNkNNIFT7tC3oyxAfJdBMQs7J+BD5ugfidDaLAsmQfgIOwEDsEvE+lHe gqKon1JtWFlC6HsMMR9W8QX8X1h1In7GPXiW14oCmt1A9H0S+8fC+XKQmfvIWAQ7GM67 6pWw== X-Received: by 10.180.99.170 with SMTP id er10mr18654460wib.65.1440674253384; Thu, 27 Aug 2015 04:17:33 -0700 (PDT) Original-Received: from [192.168.0.102] (lns-bzn-26-82-254-112-86.adsl.proxad.net. [82.254.112.86]) by smtp.gmail.com with ESMTPSA id ma4sm2575378wjb.38.2015.08.27.04.17.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Aug 2015 04:17:32 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.2104) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::229; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08P9LhxIG - 0eb9ef5c1102 - 20150827 Received-SPF: pass (filter3-utr.mf.surf.net: domain of otared@gmail.com designates 2a00:1450:400c:c05::229 as permitted sender) receiver=filter3-utr.mf.surf.net; client-ip=2a00:1450:400c:c05::229; envelope-from=; helo=mail-wi0-x229.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:92441 Archived-At: --===============0922198079== Content-Type: multipart/alternative; boundary="Apple-Mail=_0713A2BF-056F-431B-9AE8-81A314423104" --Apple-Mail=_0713A2BF-056F-431B-9AE8-81A314423104 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Fabrice, If you use your command \repere more often in the middle of a sentence = you can slightly modify the definition of your macro in order to have a = space after \repere. However, when your command is used at the end of a = sentence, you have to add \unskip after your command, as in the = following example: \define\repere{$\bigl(O\,;I,J\bigr)$\space} \starttext \dorecurse{2}{blabla} \repere \dorecurse{2}{blabla} D=C3=A9terminer la trajectoire dans le rep=C3=A8re \repere\unskip. \dorecurse{2}{Blabla} \repere\ \dorecurse{2}{blabla} \dorecurse{2}{blabla} $\bigl(O\,;I,J\bigr)$ \dorecurse{2}{blabla} \stoptext Best regards: OK > On 27 Aug 2015, at 12:52, Fabrice Couvreur = wrote: >=20 > Hi Otared, > I did not know it because, before migrating to context, I used latex = with this : \newcommand{\repere}{$\bigl(O\,;I,J\bigr)$. > It's not very convenient to add \ every time ! > Thanks, > Fabrice >=20 > 2015-08-27 11:30 GMT+02:00 Otared Kavian >: > Hi Fabrice, >=20 > This is a normal behaviour of TeX macro commands. You should use your = command by invoking it like the following: >=20 > \repere\ blabla blabal >=20 > Best regards: OK >=20 > > On 27 Aug 2015, at 10:06, Fabrice Couvreur = > = wrote: > > > > Hi, > > The macro \repere does not create a space between the closing = delimiter and the following text, why ? > > Thanks, > > Fabrice > > > > \def\repere{$\bigl(O\,;I,J\bigr)$} > > > > \starttext > > \dorecurse{2}{blabla} \repere \dorecurse{2}{blabla} > > > > \dorecurse{2}{blabla} $\bigl(O\,;I,J\bigr)$ \dorecurse{2}{blabla} > > > > \stoptext > > = __________________________________________________________________________= _________ > > 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 > > = __________________________________________________________________________= _________ >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_0713A2BF-056F-431B-9AE8-81A314423104 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi Fabrice,

If you use your command \repere more often in the middle of a = sentence you can slightly modify the definition of your macro in order = to have a space after \repere. However, when your command is used at the = end of a sentence, you have to add \unskip after your command, as in the = following example:

\define\repere{$\bigl(O\,;I,J\bigr)$\space}

\starttext
\dorecurse{2}{blabla} \repere \dorecurse{2}{blabla}

D=C3=A9terminer la = trajectoire dans le rep=C3=A8re \repere\unskip.

\dorecurse{2}{Blabla} \repere\ = \dorecurse{2}{blabla}

\dorecurse{2}{blabla} $\bigl(O\,;I,J\bigr)$ = \dorecurse{2}{blabla}

\stoptext

Best regards: OK

On 27 Aug 2015, at 12:52, Fabrice Couvreur <fabrice1.couvreur@gmail.com> wrote:

Hi Otared,
I did not know it because, before migrating to context, I used latex with this :  = \newcommand{\repere}{
$\bigl(O\,;I,J\bigr)$.
It's = not very convenient to = add \ every time !
Thanks,
Fabrice

2015-08-27 11:30 GMT+02:00 Otared Kavian <otared@gmail.com>:
Hi Fabrice,

This is a normal behaviour of TeX macro commands. You should use your = command by invoking it like the following:

        \repere\ blabla blabal

Best regards: OK

> On 27 Aug 2015, at 10:06, Fabrice Couvreur <fabrice1.couvreur@gmail.com> wrote:
>
> Hi,
> The macro \repere does not create a space between the closing = delimiter and the following text, why ?
> Thanks,
> Fabrice
>
> \def\repere{$\bigl(O\,;I,J\bigr)$}
>
> \starttext
> \dorecurse{2}{blabla} \repere \dorecurse{2}{blabla}
>
> \dorecurse{2}{blabla} $\bigl(O\,;I,J\bigr)$ = \dorecurse{2}{blabla}
>
> \stoptext
> = __________________________________________________________________________= _________
> 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
> = __________________________________________________________________________= _________

= __________________________________________________________________________= _________
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
= __________________________________________________________________________= _________

= __________________________________________________________________________= _________
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
_______________________________________________________________= ____________________

= --Apple-Mail=_0713A2BF-056F-431B-9AE8-81A314423104-- --===============0922198079== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0922198079==--