On Fri, 12 Sep 2025, Wolfgang Schuster wrote:
> Am 12.09.2025 um 19:14 schrieb Aditya Mahajan:
> > 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.
>
> Only when you use \startrawsetups you get a space at the end of line,
> otherwise line endings are ignored.
Ah, thanks. I had forgotten about rawsetups. So, here is a complete example
using setups:
\pushcatcodetable
\obeylines
\startrawsetups[imprint]
\startlines
© \currentdate[year] Publisher
foo bar baz
blah blah
\stoplines
\stoprawsetups
\popcatcodetable
\starttext
\samplefile{knuth}
\setup{imprint}
\stoptext
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________