ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Spurious space in \definestartstop
@ 2018-01-30  1:54 Henri Menke
  2018-01-30  8:17 ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Henri Menke @ 2018-01-30  1:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

the title says it all.  Please add \ignorespaces in a place you deem
appropriate.  MWE is below.

Cheers, Henri

---

\definestartstop
  [spurious space]

\starttext

Hello World

Hello \start[spurious space] World \stop
%                          ^^^ spurious space here!

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Spurious space in \definestartstop
  2018-01-30  1:54 Spurious space in \definestartstop Henri Menke
@ 2018-01-30  8:17 ` Hans Hagen
  2018-01-30 10:34   ` Henri Menke
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2018-01-30  8:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Henri Menke

On 1/30/2018 2:54 AM, Henri Menke wrote:
> Dear list,
> 
> the title says it all.  Please add \ignorespaces in a place you deem
> appropriate.  MWE is below.

sometimes you will also add \removeuwantedspaces in the stop

> Cheers, Henri
> 
> ---
> 
> \definestartstop
>    [spurious space]
> 
> \starttext
> 
> Hello World
> 
> Hello \start[spurious space] World \stop
> %                          ^^^ spurious space here!
> 
> \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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Spurious space in \definestartstop
  2018-01-30  8:17 ` Hans Hagen
@ 2018-01-30 10:34   ` Henri Menke
  2018-01-30 10:58     ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Henri Menke @ 2018-01-30 10:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 01/30/2018 09:17 PM, Hans Hagen wrote:
> On 1/30/2018 2:54 AM, Henri Menke wrote:
>> Dear list,
>>
>> the title says it all.  Please add \ignorespaces in a place you deem
>> appropriate.  MWE is below.
> 
> sometimes you will also add \removeuwantedspaces in the stop

I'm confused.  Does that mean there is going to be a fix?

> 
>> Cheers, Henri
>>
>> ---
>>
>> \definestartstop
>>    [spurious space]
>>
>> \starttext
>>
>> Hello World
>>
>> Hello \start[spurious space] World \stop
>> %                          ^^^ spurious space here!
>>
>> \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://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Spurious space in \definestartstop
  2018-01-30 10:34   ` Henri Menke
@ 2018-01-30 10:58     ` Hans Hagen
  2018-01-30 20:12       ` Henri Menke
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2018-01-30 10:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Henri Menke

On 1/30/2018 11:34 AM, Henri Menke wrote:
> On 01/30/2018 09:17 PM, Hans Hagen wrote:
>> On 1/30/2018 2:54 AM, Henri Menke wrote:
>>> Dear list,
>>>
>>> the title says it all.  Please add \ignorespaces in a place you deem
>>> appropriate.  MWE is below.
>>
>> sometimes you will also add \removeuwantedspaces in the stop
> 
> I'm confused.  Does that mean there is going to be a fix?

no, why should there be? spaces are never ignored after the last [...] 
that is checked for unless a command has an explicit \ignorespaces
>>> Cheers, Henri
>>>
>>> ---
>>>
>>> \definestartstop
>>>     [spurious space]
>>>
>>> \starttext
>>>
>>> Hello World
>>>
>>> Hello \start[spurious space] World \stop
>>> %                          ^^^ spurious space here!
>>>
>>> \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://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Spurious space in \definestartstop
  2018-01-30 10:58     ` Hans Hagen
@ 2018-01-30 20:12       ` Henri Menke
  2018-01-30 20:24         ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Henri Menke @ 2018-01-30 20:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 2018-01-30 at 11:58 +0100, Hans Hagen wrote:
> On 1/30/2018 11:34 AM, Henri Menke wrote:
> > 
> > On 01/30/2018 09:17 PM, Hans Hagen wrote:
> > > 
> > > On 1/30/2018 2:54 AM, Henri Menke wrote:
> > > > 
> > > > Dear list,
> > > > 
> > > > the title says it all.  Please add \ignorespaces in a place you deem
> > > > appropriate.  MWE is below.
> > > sometimes you will also add \removeuwantedspaces in the stop
> > I'm confused.  Does that mean there is going to be a fix?
> no, why should there be? spaces are never ignored after the last [...] 
> that is checked for unless a command has an explicit \ignorespaces

I'm not convinced.  Both "before" and "commands" see a \relax and therefore
\ignorespaces is dropped.  I can put \removeunwantedspaces there but that
deletes the space before \start.  The \framed command correctly drops the space
after the options.

---

\definestartstop
  [spurious space a]
  [before=\ignorespaces,
   after=\removeunwantedspaces]

\definestartstop
  [spurious space b]
  [before=\removeunwantedspaces,
   after=\removeunwantedspaces]

\starttext

Hello Foo Bar World

Hello \start[spurious space a] Foo Bar \stop\ World
%   ^^^ neither space        ^^^ is skipped

Hello \start[spurious space b] Foo Bar \stop\ World
%   ^^^ skips this space     ^^^ instead of this

Hello \startframed[offset=overlay] Foo Bar \stopframed\ World
% That's the behaviour I'm looking for.

\stoptext

> > 
> > > 
> > > > 
> > > > Cheers, Henri
> > > > 
> > > > ---
> > > > 
> > > > \definestartstop
> > > >     [spurious space]
> > > > 
> > > > \starttext
> > > > 
> > > > Hello World
> > > > 
> > > > Hello \start[spurious space] World \stop
> > > > %                          ^^^ spurious space here!
> > > > 
> > > > \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-c
> > > > ontext
> > > > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > > > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > > > 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-conte
> > xt
> > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Spurious space in \definestartstop
  2018-01-30 20:12       ` Henri Menke
@ 2018-01-30 20:24         ` Wolfgang Schuster
  2018-01-30 20:46           ` Henri Menke
  2018-01-30 21:06           ` Alan Braslau
  0 siblings, 2 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2018-01-30 20:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


> Henri Menke <mailto:henrimenke@gmail.com>
> 30. Januar 2018 um 21:12
> On Tue, 2018-01-30 at 11:58 +0100, Hans Hagen wrote:
>> On 1/30/2018 11:34 AM, Henri Menke wrote:
>>> On 01/30/2018 09:17 PM, Hans Hagen wrote:
>>>> On 1/30/2018 2:54 AM, Henri Menke wrote:
>>>>> Dear list,
>>>>>
>>>>> the title says it all.  Please add \ignorespaces in a place you deem
>>>>> appropriate.  MWE is below.
>>>> sometimes you will also add \removeuwantedspaces in the stop
>>> I'm confused.  Does that mean there is going to be a fix?
>> no, why should there be? spaces are never ignored after the last [...] 
>> that is checked for unless a command has an explicit \ignorespaces
>
> I'm not convinced.  Both "before" and "commands" see a \relax and therefore
> \ignorespaces is dropped.  I can put \removeunwantedspaces there but that
> deletes the space before \start.  The \framed command correctly drops the space
> after the options.
>
> ---
>
> \definestartstop
>    [spurious space a]
>    [before=\ignorespaces,
>     after=\removeunwantedspaces]
>
> \definestartstop
>    [spurious space b]
>    [before=\removeunwantedspaces,
>     after=\removeunwantedspaces]
>
> \starttext
>
> Hello Foo Bar World
>
> Hello \start[spurious space a] Foo Bar \stop\ World
> %   ^^^ neither space        ^^^ is skipped
>
> Hello \start[spurious space b] Foo Bar \stop\ World
> %   ^^^ skips this space     ^^^ instead of this
>
> Hello \startframed[offset=overlay] Foo Bar \stopframed\ World
> % That's the behaviour I'm looking for.
>
> \stoptext
>
You assume \start[<...>] ... \stop is linked to \definestartstop but 
this isn’t the case,
what the environment does is to generate a start-command with the argument
but this works for every environment, e.g. \start[itemize] ... \stop 
does the same
as \startitemize ... \stopitemize.

Adding the \ignorespace is not an option in this case because it would 
effect
all environments which you use with the argument for \start.

Wolfgang

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

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Spurious space in \definestartstop
  2018-01-30 20:24         ` Wolfgang Schuster
@ 2018-01-30 20:46           ` Henri Menke
  2018-01-31 14:08             ` Wolfgang Schuster
  2018-01-30 21:06           ` Alan Braslau
  1 sibling, 1 reply; 9+ messages in thread
From: Henri Menke @ 2018-01-30 20:46 UTC (permalink / raw)
  To: ntg-context

On Tue, 2018-01-30 at 21:24 +0100, Wolfgang Schuster wrote:
> 
> > Henri Menke 30. Januar 2018 um 21:12
> > On Tue, 2018-01-30 at 11:58 +0100, Hans Hagen wrote:
> > > On 1/30/2018 11:34 AM, Henri Menke wrote:
> > > > On 01/30/2018 09:17 PM, Hans Hagen wrote:
> > > > > On 1/30/2018 2:54 AM, Henri Menke wrote:
> > > > > > Dear list,
> > > > > > 
> > > > > > the title says it all.  Please add \ignorespaces in a place you deem
> > > > > > appropriate.  MWE is below.
> > > > > sometimes you will also add \removeuwantedspaces in the stop
> > > > I'm confused.  Does that mean there is going to be a fix?
> > > no, why should there be? spaces are never ignored after the last [...] 
> > > that is checked for unless a command has an explicit \ignorespaces
> > I'm not convinced.  Both "before" and "commands" see a \relax and therefore
> > \ignorespaces is dropped.  I can put \removeunwantedspaces there but that
> > deletes the space before \start.  The \framed command correctly drops the
> > space
> > after the options.
> > 
> > ---
> > 
> > \definestartstop
> >   [spurious space a]
> >   [before=\ignorespaces,
> >    after=\removeunwantedspaces]
> > 
> > \definestartstop
> >   [spurious space b]
> >   [before=\removeunwantedspaces,
> >    after=\removeunwantedspaces]
> > 
> > \starttext
> > 
> > Hello Foo Bar World
> > 
> > Hello \start[spurious space a] Foo Bar \stop\ World
> > %   ^^^ neither space        ^^^ is skipped
> > 
> > Hello \start[spurious space b] Foo Bar \stop\ World
> > %   ^^^ skips this space     ^^^ instead of this
> > 
> > Hello \startframed[offset=overlay] Foo Bar \stopframed\ World
> > % That's the behaviour I'm looking for.
> > 
> > \stoptext
> > 
>  You assume \start[<...>] ... \stop is linked to \definestartstop but this
> isn’t the case,
> what the environment does is to generate a start-command with the argument
> but this works for every environment, e.g. \start[itemize] ... \stop does the
> same
> as \startitemize ... \stopitemize.

I'm not asking to add \ignorespaces to the definition of \start.  I'm rather
asking, where I have to but \ignorespaces in the setup to eat the space after
the options I pass to \start.

> 
> Adding the \ignorespace is not an option in this case because it would effect
> all environments which you use with the argument for \start.
> 
> Wolfgang
> ______________________________________________________________________________
> _____
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Spurious space in \definestartstop
  2018-01-30 20:24         ` Wolfgang Schuster
  2018-01-30 20:46           ` Henri Menke
@ 2018-01-30 21:06           ` Alan Braslau
  1 sibling, 0 replies; 9+ messages in thread
From: Alan Braslau @ 2018-01-30 21:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Might I add that the use of a command containing spaces in its name is
spurious. Try: \definestartstop[spuriusspacea] \startspuriusspacea ...
\stopspuriuspsacea, and then come up with a better name!

Alan

On Tue, 30 Jan 2018 21:24:41 +0100
Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:

> > Henri Menke <mailto:henrimenke@gmail.com>
> > 30. Januar 2018 um 21:12
> > On Tue, 2018-01-30 at 11:58 +0100, Hans Hagen wrote:  
> >> On 1/30/2018 11:34 AM, Henri Menke wrote:  
> >>> On 01/30/2018 09:17 PM, Hans Hagen wrote:  
> >>>> On 1/30/2018 2:54 AM, Henri Menke wrote:  
> >>>>> Dear list,
> >>>>>
> >>>>> the title says it all.  Please add \ignorespaces in a place you
> >>>>> deem appropriate.  MWE is below.  
> >>>> sometimes you will also add \removeuwantedspaces in the stop  
> >>> I'm confused.  Does that mean there is going to be a fix?  
> >> no, why should there be? spaces are never ignored after the last
> >> [...] that is checked for unless a command has an explicit
> >> \ignorespaces  
> >
> > I'm not convinced.  Both "before" and "commands" see a \relax and
> > therefore \ignorespaces is dropped.  I can put
> > \removeunwantedspaces there but that deletes the space before
> > \start.  The \framed command correctly drops the space after the
> > options.
> >
> > ---
> >
> > \definestartstop
> >    [spurious space a]
> >    [before=\ignorespaces,
> >     after=\removeunwantedspaces]
> >
> > \definestartstop
> >    [spurious space b]
> >    [before=\removeunwantedspaces,
> >     after=\removeunwantedspaces]
> >
> > \starttext
> >
> > Hello Foo Bar World
> >
> > Hello \start[spurious space a] Foo Bar \stop\ World
> > %   ^^^ neither space        ^^^ is skipped
> >
> > Hello \start[spurious space b] Foo Bar \stop\ World
> > %   ^^^ skips this space     ^^^ instead of this
> >
> > Hello \startframed[offset=overlay] Foo Bar \stopframed\ World
> > % That's the behaviour I'm looking for.
> >
> > \stoptext
> >  
> You assume \start[<...>] ... \stop is linked to \definestartstop but 
> this isn’t the case,
> what the environment does is to generate a start-command with the
> argument but this works for every environment, e.g.
> \start[itemize] ... \stop does the same
> as \startitemize ... \stopitemize.
> 
> Adding the \ignorespace is not an option in this case because it
> would effect
> all environments which you use with the argument for \start.
> 
> Wolfgang

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Spurious space in \definestartstop
  2018-01-30 20:46           ` Henri Menke
@ 2018-01-31 14:08             ` Wolfgang Schuster
  0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2018-01-31 14:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


> Henri Menke <mailto:henrimenke@gmail.com>
> 30. Januar 2018 um 21:46
> On Tue, 2018-01-30 at 21:24 +0100, Wolfgang Schuster wrote:
>>> Henri Menke 30. Januar 2018 um 21:12
>>> On Tue, 2018-01-30 at 11:58 +0100, Hans Hagen wrote:
>>>> On 1/30/2018 11:34 AM, Henri Menke wrote:
>>>>> On 01/30/2018 09:17 PM, Hans Hagen wrote:
>>>>>> On 1/30/2018 2:54 AM, Henri Menke wrote:
>>>>>>> Dear list,
>>>>>>>
>>>>>>> the title says it all.  Please add \ignorespaces in a place you deem
>>>>>>> appropriate.  MWE is below.
>>>>>> sometimes you will also add \removeuwantedspaces in the stop
>>>>> I'm confused.  Does that mean there is going to be a fix?
>>>> no, why should there be? spaces are never ignored after the last [...] 
>>>> that is checked for unless a command has an explicit \ignorespaces
>>> I'm not convinced.  Both "before" and "commands" see a \relax and therefore
>>> \ignorespaces is dropped.  I can put \removeunwantedspaces there but that
>>> deletes the space before \start.  The \framed command correctly drops the
>>> space
>>> after the options.
>>>
>>> ---
>>>
>>> \definestartstop
>>>    [spurious space a]
>>>    [before=\ignorespaces,
>>>     after=\removeunwantedspaces]
>>>
>>> \definestartstop
>>>    [spurious space b]
>>>    [before=\removeunwantedspaces,
>>>     after=\removeunwantedspaces]
>>>
>>> \starttext
>>>
>>> Hello Foo Bar World
>>>
>>> Hello \start[spurious space a] Foo Bar \stop\ World
>>> %   ^^^ neither space        ^^^ is skipped
>>>
>>> Hello \start[spurious space b] Foo Bar \stop\ World
>>> %   ^^^ skips this space     ^^^ instead of this
>>>
>>> Hello \startframed[offset=overlay] Foo Bar \stopframed\ World
>>> % That's the behaviour I'm looking for.
>>>
>>> \stoptext
>>>
>>   You assume \start[<...>] ... \stop is linked to \definestartstop but this
>> isn’t the case,
>> what the environment does is to generate a start-command with the argument
>> but this works for every environment, e.g. \start[itemize] ... \stop does the
>> same
>> as \startitemize ... \stopitemize.
>
> I'm not asking to add \ignorespaces to the definition of \start.  I'm rather
> asking, where I have to but \ignorespaces in the setup to eat the space after
> the options I pass to \start.
>
Why do use insinst on the use of \start, when you create a new 
command/environment
with \definestartstop you get additional commands for the instance where 
the space
at the begin of the environment are gobbled.

\definestartstop[Highlight][style=italic,color=red]

\starttext

Text \Highlight{Text} Text

\blank

\input ward\par

\startHighlight
\input ward
\stopHighlight

\input ward

\stoptext

To answer your question where you can add \ignorespace, there is no way 
to add it.

Wolfgang

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

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2018-01-31 14:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-30  1:54 Spurious space in \definestartstop Henri Menke
2018-01-30  8:17 ` Hans Hagen
2018-01-30 10:34   ` Henri Menke
2018-01-30 10:58     ` Hans Hagen
2018-01-30 20:12       ` Henri Menke
2018-01-30 20:24         ` Wolfgang Schuster
2018-01-30 20:46           ` Henri Menke
2018-01-31 14:08             ` Wolfgang Schuster
2018-01-30 21:06           ` Alan Braslau

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).