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
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
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 ___________________________________________________________________________________
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
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
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
___________________________________________________________________________________
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
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
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
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 ___________________________________________________________________________________
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
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
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
___________________________________________________________________________________
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
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 -----------------------------------------------------------------
Thanks Hans! I wikified your tip: http://wiki.contextgarden.net/autoinsertnextspace Best regards: OK
On 27 Aug 2015, at 20:42, Hans Hagen
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
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 ___________________________________________________________________________________
participants (4)
-
Fabrice Couvreur
-
Hans Hagen
-
Otared Kavian
-
Peter Münster