Am 12.06.2025 um 16:40 schrieb Pablo Rodriguez via ntg-context:
The other one is mainly a question about `compressmethod` behaviour in
linennotes.
I thought that `compressmethod=separator` adds the command defined in
`compressseparator` between the compressed notes, and
`compressmethod=stopper` adds the command from `compressstoper` only
after the compressed notes.
Could you confirm this? I’m afraid that both options add the command
between and after the compressed notes
(https://mailman.ntg.nl/archives/list/ntg-context@ntg.nl/thread/VAHLDB6KVDJHUWZDTI3MRFRUJDJV4Q7O/#VAHLDB6KVDJHUWZDTI3MRFRUJDJV4Q7O).
You need something like this:
\newconditional\NoNumber \NoNumber \conditionalfalse
\newconditional\FirstEntry \FirstEntry\conditionaltrue
\define[1]\LineNoteCommand
{\doiftextelse{#1}{\NoNumber\conditionalfalse}{\NoNumber\conditionaltrue}%
\ifconditional\NoNumber
,\space
\else
\ifconditional\FirstEntry
\iftrialtypesetting\else
\global\FirstEntry\conditionalfalse
\fi
\else
\space
\fi
#1%
\fi}
\setuplinenote
[paragraph=yes,
compress=yes,
compressseparator=,
compressdistance=0pt]
\setupnotation
[linenote]
[alternative=serried,
headcommand=\LineNoteCommand]
\starttext
\startlinenumbering
\dorecurse{25}{a\linenote{b}}
\stoplinenumbering
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
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
___________________________________________________________________________________