ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* No space after a closing delimiter
@ 2015-08-27  8:06 Fabrice Couvreur
  2015-08-27  9:30 ` Otared Kavian
  0 siblings, 1 reply; 8+ messages in thread
From: Fabrice Couvreur @ 2015-08-27  8:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 300 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 806 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: No space after a closing delimiter
  2015-08-27  8:06 No space after a closing delimiter Fabrice Couvreur
@ 2015-08-27  9:30 ` Otared Kavian
  2015-08-27 10:52   ` Fabrice Couvreur
  0 siblings, 1 reply; 8+ messages in thread
From: Otared Kavian @ 2015-08-27  9:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: No space after a closing delimiter
  2015-08-27  9:30 ` Otared Kavian
@ 2015-08-27 10:52   ` Fabrice Couvreur
  2015-08-27 11:17     ` Otared Kavian
  2015-08-27 11:32     ` Peter Münster
  0 siblings, 2 replies; 8+ messages in thread
From: Fabrice Couvreur @ 2015-08-27 10:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1930 bytes --]

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
>
> ___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 3945 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: No space after a closing delimiter
  2015-08-27 10:52   ` Fabrice Couvreur
@ 2015-08-27 11:17     ` Otared Kavian
  2015-08-27 11:32     ` Peter Münster
  1 sibling, 0 replies; 8+ messages in thread
From: Otared Kavian @ 2015-08-27 11:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3704 bytes --]

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.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 <mailto: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 <mailto: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 <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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 7155 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: No space after a closing delimiter
  2015-08-27 10:52   ` Fabrice Couvreur
  2015-08-27 11:17     ` Otared Kavian
@ 2015-08-27 11:32     ` Peter Münster
  2015-08-27 12:39       ` Fabrice Couvreur
  1 sibling, 1 reply; 8+ messages in thread
From: Peter Münster @ 2015-08-27 11:32 UTC (permalink / raw)
  To: ntg-context

On Thu, Aug 27 2015, Fabrice Couvreur wrote:

> I did not know it because, before migrating to context, I used latex with
> this :  \newcommand{\repere}{$\bigl(O\,;I,J\bigr)$.

In LaTeX there is no space neither:

--8<---------------cut here---------------start------------->8---
\newcommand{\repere}{$\bigl(O\,;I,J\bigr)$}
\documentclass{article}
\begin{document}
x \repere x
\end{document}
--8<---------------cut here---------------end--------------->8---

-- 
           Peter
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: No space after a closing delimiter
  2015-08-27 11:32     ` Peter Münster
@ 2015-08-27 12:39       ` Fabrice Couvreur
  2015-08-27 18:42         ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Fabrice Couvreur @ 2015-08-27 12:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1384 bytes --]

In fact, you are both right, write the macro differently.


\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

Thanks,
Fabrice

2015-08-27 13:32 GMT+02:00 Peter Münster <pmlists@free.fr>:

> On Thu, Aug 27 2015, Fabrice Couvreur wrote:
>
> > I did not know it because, before migrating to context, I used latex with
> > this :  \newcommand{\repere}{$\bigl(O\,;I,J\bigr)$.
>
> In LaTeX there is no space neither:
>
> --8<---------------cut here---------------start------------->8---
> \newcommand{\repere}{$\bigl(O\,;I,J\bigr)$}
> \documentclass{article}
> \begin{document}
> x \repere x
> \end{document}
> --8<---------------cut here---------------end--------------->8---
>
> --
>            Peter
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2662 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: No space after a closing delimiter
  2015-08-27 12:39       ` Fabrice Couvreur
@ 2015-08-27 18:42         ` Hans Hagen
  2015-08-27 19:39           ` Otared Kavian
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2015-08-27 18:42 UTC (permalink / raw)
  To: ntg-context

On 8/27/2015 2:39 PM, Fabrice Couvreur wrote:
> In fact, you are both right, write the macro differently.
>
>
> \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

you can add \autoinsertnextspace to macros

> Thanks,
> Fabrice
>
> 2015-08-27 13:32 GMT+02:00 Peter Münster <pmlists@free.fr
> <mailto:pmlists@free.fr>>:
>
>     On Thu, Aug 27 2015, Fabrice Couvreur wrote:
>
>     > I did not know it because, before migrating to context, I used latex with
>     > this :  \newcommand{\repere}{$\bigl(O\,;I,J\bigr)$.
>
>     In LaTeX there is no space neither:
>
>     --8<---------------cut here---------------start------------->8---
>     \newcommand{\repere}{$\bigl(O\,;I,J\bigr)$}
>     \documentclass{article}
>     \begin{document}
>     x \repere x
>     \end{document}
>     --8<---------------cut here---------------end--------------->8---
>
>     --
>                 Peter
>     ___________________________________________________________________________________
>     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
>     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
> ___________________________________________________________________________________
>


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: No space after a closing delimiter
  2015-08-27 18:42         ` Hans Hagen
@ 2015-08-27 19:39           ` Otared Kavian
  0 siblings, 0 replies; 8+ messages in thread
From: Otared Kavian @ 2015-08-27 19:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thanks Hans!
I wikified your tip:
	http://wiki.contextgarden.net/autoinsertnextspace

Best regards: OK

> On 27 Aug 2015, at 20:42, Hans Hagen <pragma@wxs.nl> wrote:
> 
> On 8/27/2015 2:39 PM, Fabrice Couvreur wrote:
>> In fact, you are both right, write the macro differently.
>> 
>> 
>> \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
> 
> you can add \autoinsertnextspace to macros
> 
>> Thanks,
>> Fabrice
>> 
>> 2015-08-27 13:32 GMT+02:00 Peter Münster <pmlists@free.fr
>> <mailto:pmlists@free.fr>>:
>> 
>>    On Thu, Aug 27 2015, Fabrice Couvreur wrote:
>> 
>>    > I did not know it because, before migrating to context, I used latex with
>>    > this :  \newcommand{\repere}{$\bigl(O\,;I,J\bigr)$.
>> 
>>    In LaTeX there is no space neither:
>> 
>>    --8<---------------cut here---------------start------------->8---
>>    \newcommand{\repere}{$\bigl(O\,;I,J\bigr)$}
>>    \documentclass{article}
>>    \begin{document}
>>    x \repere x
>>    \end{document}
>>    --8<---------------cut here---------------end--------------->8---
>> 
>>    --
>>                Peter
>>    ___________________________________________________________________________________
>>    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
>>    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
>> ___________________________________________________________________________________
>> 
> 
> 
> -- 
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                             | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-08-27 19:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-27  8:06 No space after a closing delimiter Fabrice Couvreur
2015-08-27  9:30 ` Otared Kavian
2015-08-27 10:52   ` Fabrice Couvreur
2015-08-27 11:17     ` Otared Kavian
2015-08-27 11:32     ` Peter Münster
2015-08-27 12:39       ` Fabrice Couvreur
2015-08-27 18:42         ` Hans Hagen
2015-08-27 19:39           ` Otared Kavian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).