Am 29.07.23 um 23:16 schrieb Hans Hagen:
On 7/29/2023 10:35 PM, Henning Hraban Ramm wrote:
The setup for MyCode is not applied to \typeMyBuffer, and I don’t know
how it could; something like \typeMyBuffer[MyCode] doesn’t work.
These commands inherit from buffer, so \setupbuffer will work
the \fakewords macro shown (again not executed) as per the default for
typing.
The setup for MyCode is not applied to \typeMyBuffer, and I don’t know
how it could; something like \typeMyBuffer[MyCode] doesn’t work.
These commands inherit from buffer, so \setupbuffer will work. But as I
need
ample 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
Wol
now 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 wh
Am 17.05.20 um 19:04 schrieb Marco Patzer:
>>
>> 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:
>
> \setupbuff
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?
\setupbuff
ignored. As a result the asciimode
command
can't work because the text has already disappeared.
Other characters like $ are less problematic because there are ways to
change
their meaning afterwards (# can be tricky) but not comments because
nothing remains.
\setupbuffer
[befor
etCodeExample}}}
Oh, I overlooked something:
Can I get pretty printing back, like in \startTEX ... \stopTEX?
I couldn’t find any suitable setup options.
This doesn’t work:
\setupbuffer[CodeExampleB][before={\startTEX},after={\stopTEX}]
Greetlings, Hraban
---
http://
e{\examshowsolutions}{yes}
{\defineenumeration[SOLUTION] % display the solutions
[text=\Word{solution},number=no,
after={\vskip1ex}]}
{\definebuffer[SOLUTION] % hide solutions,
\setupbuffer[SOLUTION][local=yes
ine any buffer, and don't call \getbuffer[mybuffer]. Buffers
>> are not typeset, by default, until you get them. The below is
>> shamelessly adapted from Hans's \starthiding (which already exists):
>>
>> \definebuffer[Hidden]
>> % uncomment the below to turn this i
until you get them. The below is
shamelessly adapted from Hans's \starthiding (which already exists):
\definebuffer[Hidden]
% uncomment the below to turn this into a non-hiding buffer.
% \setupbuffer[Hidden][after={\getbuffer[Hidden]}]
\startHidden
asdf asdf
\stopHidden
Cheers,
Sietse
t them. The below is
shamelessly adapted from Hans's \starthiding (which already exists):
\definebuffer[Hidden]
% uncomment the below to turn this into a non-hiding buffer.
% \setupbuffer[Hidden][after={\getbuffer[Hidden]}]
\startHidden
asdf asdf
\s
On Sun, 7 Nov 2010, Wolfgang Schuster wrote:
Am 07.11.2010 um 20:49 schrieb Vedran Miletić:
How would I then do something like this?
\def\startSolution{\startmode[solutions]\startframedtext}
\def\stopSolution{\stopframedtext\stopmode}
\startmode[solution]
\setupbuffer[Solution][local=no
Am 07.11.2010 um 20:49 schrieb Vedran Miletić:
> How would I then do something like this?
>
> \def\startSolution{\startmode[solutions]\startframedtext}
> \def\stopSolution{\stopframedtext\stopmode}
\startmode[solution]
\setupbuffer[Solution][local=no,before=\startfram
le ended while scanning use
> of \dostopmode ...
> >
> > What's the proper way of doing this?
>
> Use \startmode[...] ... \stopmode in your document without your own
> Solution environment or define the environment as
>
> \definebuffer[Solution][local=yes
ing this?
Use \startmode[...] ... \stopmode in your document without your own Solution
environment or define the environment as
\definebuffer[Solution][local=yes]
\startmode[solutions]
\setupbuffer[Solution][local=no]
\stopmode
\starttext
...
\s
the default mode, the solution evironment should gobble its contents.
%D I copy the definition of \tex{starthiding} to {\em hide} the solutions.
\definebuffer [solution]
\setupbuffer [solution] [local=yes]
%D In solution mode, I redefine solution environment as an
%D enumeration without a
position][position][state][settings]
\setupblackrules[options]
\setupblank[options]
\setupblock[names][options]
\setupbodyfont[options]
\setupbodyfontenvironment[settings][settings]
\setupbottom[settings][settings]
\setupbottomtexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|ma
David Arnold wrote:
Then you do:
\getbuffer
will the setup be in a group, and only pertain to the stuff set with
\getbuffer?
No, normally they will live on (buffers often contain definitions).
But you can use
\setupbuffer[before=\begingroup,after=\endgroup]
Cheers, taco
ill in the commands etc. yourself of course.
Greetings, Taco
Peter Münster wrote:
On Tue, 31 May 2005, Hans Hagen wrote:
\definebuffer[crap]
\setupbuffer[crap][before=\blank\bgroup here we start,after=and here
we end\egroup\blank]
[...]
Hello Hans and Taco,
thank you for your hints, but
wrote:
\definebuffer[crap]
\setupbuffer[crap][before=\blank\bgroup here we start,after=and here we
end\egroup\blank]
[...]
Hello Hans and Taco,
thank you for your hints, but I think, I did not explain my question well
enough...
I fact, all I need is to know, how I could write some verbatim
On Tue, 31 May 2005, Hans Hagen wrote:
> \definebuffer[crap]
>
> \setupbuffer[crap][before=\blank\bgroup here we start,after=and here we
> end\egroup\blank]
[...]
Hello Hans and Taco,
thank you for your hints, but I think, I did not explain my question well
enough...
I fact, all
\definebuffer[crap]
\setupbuffer[crap][before=\blank\bgroup here we start,after=and here we
end\egroup\blank]
\starttext
\input tufte
\startcrap
oeps oeps oeps oeps oesp
oeps oeps oeps oeps oesp
oeps oeps oeps oeps oesp
oeps oeps oeps oeps oesp
\stopcrap
\input tufte
\getcrap
\input tufte
buffer content, as fetched by \getXXX
\setupbuffer[XXX][before={\beforeXXX},after={\afterXXX}]
% Do not call \getXXX directly, but use a special
% command to pass options to \beforeXXX and \afterXXX
\def\finishXXX{\dosingleempty\dofinishXXX}
\def\dofinishXXX[#1]{{\getparameters[XXX][Color=green
24 matches
Mail list logo