Am 08.05.2026 um 17:12 schrieb autumnus:
Recently, I was reading the latest ANSS, and I found a description of 
definestartstop in it.
So I checked the source code.

```
\tolerant\protected\def\syst_startstop_indeed_yes#1#*[#S#2]%
   {\groupedcommand
      {.....}%I omitted these irrelevant commands.
      {.....%
       \startstopparameter\c!inbetween\relax}}
```

It seems that this \c!inbetween should be at the end of the first parameter 
instead of the second parameter?

```
\definestartstop
[newcommand]
[left=!,right=@,color=red,inbetween=+]
\newcommand{contents}  % This is the result: !contents@+
```

Use cases for inbetween where it has to be at the end:

\definestartstop
  [Knuth]
  [style=bold,
   right=:,
   inbetween={\blank[medium]}]

\definestartstop
  [Zelensky]
  [style=bold,
   right=:,
   inbetween={\hspace[medium]}]

\starttext

\Knuth{Knuth}\samplefile{knuth-gpt}

\blank[2*line]

\Zelensky{Zelensky}\samplefile{zelensky}

\stoptext

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to