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éterminer la trajectoire dans le repère \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.couvr...@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 <ota...@gmail.com 
> <mailto:ota...@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.couvr...@gmail.com 
> > <mailto:fabrice1.couvr...@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 <mailto:ntg-context@ntg.nl> / 
> > http://www.ntg.nl/mailman/listinfo/ntg-context 
> > <http://www.ntg.nl/mailman/listinfo/ntg-context>
> > webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
> > http://tex.aanhet.net <http://tex.aanhet.net/>
> > archive  : http://foundry.supelec.fr/projects/contextrev/ 
> > <http://foundry.supelec.fr/projects/contextrev/>
> > wiki     : http://contextgarden.net <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 <mailto:ntg-context@ntg.nl> / 
> http://www.ntg.nl/mailman/listinfo/ntg-context 
> <http://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
> http://tex.aanhet.net <http://tex.aanhet.net/>
> archive  : http://foundry.supelec.fr/projects/contextrev/ 
> <http://foundry.supelec.fr/projects/contextrev/>
> wiki     : http://contextgarden.net <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
___________________________________________________________________________________

Reply via email to