On Fri, 12 Sep 2025, Henning Hraban Ramm wrote:
> Apparently, \startlines … \stoplines doesn’t work within a setup.
> Is this to be expected?
Yes. When \startsetups is encountered, you are in "normal catcode" regime, so
newline is same as space. So, when you call \setup{...} the newlines have
already been lost.
In principle it is possible to get it work by using some variation of
\obeylines\startsetups, but it is simpler to just use buffers
> \startbuffer[imprint]
> \startlines
> © \currentdate[year] Publisher
> foo bar baz
> blah blah
> \stoplines
> \stopbuffer
>
> \starttext
>
> \samplefile{knuth}
>
> \getbuffer[imprint]
>
> \stoptext
Aditya___________________________________________________________________________________
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
___________________________________________________________________________________