On Sun, 17 May 2020 18:16:13 +0200
"Jan U. Hasecke"
I am currently writing a text where I want to include text snippets either by including files or including buffers.
What is the best way to style all these included buffers?
I know that I can do something like this:
\startcolumns \getbuffer[Muenchen] \stopcolumns
Or do something with \defineparagraph
Is it somehow possible to apply styles to all buffers that gets included via \getbuffer by defining a special getbuffer-style?
\setupbuffer has before and after keys which can be used. Example: \setupbuffer [before=\blank\blackrule\startnarrower\BufferStyle, after=\stopnarrower\blackrule\blank] %% alternatively define custom buffers \definebuffer [foobar] \setupblackrules [width=1cm, height=1pt, color=gray] \definehighlight [BufferStyle] [style=smallitalic, color=blue] \startbuffer \samplefile{knuth} \stopbuffer \starttext \samplefile{knuth} \getbuffer \samplefile{knuth} \stoptext Marco