ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Concatenate buffers without newline
@ 2021-06-22 18:21 Pascal Pascali
  2021-06-22 18:29 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Pascal Pascali @ 2021-06-22 18:21 UTC (permalink / raw)
  To: ntg-context

Hello!

Is there a way to concatenate predefined blocks or buffers without ConTeXt printing newlines between them?

I'd like to have something like:

\startBitOfData [name1]
Some part of paragraph here. 
\stopBitOfData

\startBitOfData [name2]
Some more going on here. 
\stopBitOfData


And then:

\getBitOfData [name1]
\getBitOfData [name2]

Outputting: 
Some part of paragraph here. Some more going on here. 

Not outputting:
Some part of paragraph here. 
Some more going on here. 


Thank you for any tip!

Best regards,

Pascal


___________________________________________________________________________________
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] 2+ messages in thread

* Re: Concatenate buffers without newline
  2021-06-22 18:21 Concatenate buffers without newline Pascal Pascali
@ 2021-06-22 18:29 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2021-06-22 18:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Pascal Pascali schrieb am 22.06.2021 um 20:21:
> Hello!
> 
> Is there a way to concatenate predefined blocks or buffers without ConTeXt printing newlines between them?
> 
> I'd like to have something like:
> 
> \startBitOfData [name1]
> Some part of paragraph here.
> \stopBitOfData
> 
> \startBitOfData [name2]
> Some more going on here.
> \stopBitOfData
> 
> 
> And then:
> 
> \getBitOfData [name1]
> \getBitOfData [name2]
> 
> Outputting:
> Some part of paragraph here. Some more going on here.
> 
> Not outputting:
> Some part of paragraph here.
> Some more going on here.
> 
> 
> Thank you for any tip!

Please send a *working* minimal example next time.

\starttext

\startbuffer[first]
First paragraph.
\stopbuffer

\startbuffer[second]
Second paragraph.
\stopbuffer

\start
   \setupbuffer[before=,after=]
   \getbuffer[first]%
   \getbuffer[second]
\stop

\blank

\getbuffer[first,second]

\stoptext

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] 2+ messages in thread

end of thread, other threads:[~2021-06-22 18:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-22 18:21 Concatenate buffers without newline Pascal Pascali
2021-06-22 18:29 ` Wolfgang Schuster

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