[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-30 Thread Henning Hraban Ramm
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

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Hans Hagen
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

Re: [NTG-context] Concatenate buffers without newline

2021-06-22 Thread Wolfgang Schuster
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

Re: [NTG-context] Styling of included buffers or files

2020-05-18 Thread Wolfgang Schuster
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

Re: [NTG-context] Styling of included buffers or files

2020-05-18 Thread Jan U. Hasecke
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

Re: [NTG-context] Styling of included buffers or files

2020-05-17 Thread Marco Patzer
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

Re: [NTG-context] ASCII mode within \footnote

2019-11-04 Thread Wolfgang Schuster
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

Re: [NTG-context] source code and result side by side

2017-08-03 Thread Henning Hraban Ramm
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://

[NTG-context] problem with buffer

2014-09-15 Thread Kenny
e{\examshowsolutions}{yes} {\defineenumeration[SOLUTION] % display the solutions [text=\Word{solution},number=no, after={\vskip1ex}]} {\definebuffer[SOLUTION] % hide solutions, \setupbuffer[SOLUTION][local=yes

Re: [NTG-context] Hiding text

2013-03-22 Thread Sietse Brouwer
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

Re: [NTG-context] Hiding text

2013-03-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
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

Re: [NTG-context] Hiding text

2013-03-22 Thread Sietse Brouwer
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

Re: [NTG-context] \startmode and \startcomment inside of \def

2010-11-07 Thread Aditya Mahajan
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

Re: [NTG-context] \startmode and \startcomment inside of \def

2010-11-07 Thread Wolfgang Schuster
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

Re: [NTG-context] \startmode and \startcomment inside of \def

2010-11-07 Thread Vedran Miletić
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

Re: [NTG-context] \startmode and \startcomment inside of \def

2010-11-07 Thread Wolfgang Schuster
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

[NTG-context] change affecting MPgraphic?

2010-09-24 Thread Marko Schütz Schmuck
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

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
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

Re: [NTG-context] \getbuffer question

2006-01-19 Thread Taco Hoekwater
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

Re: [NTG-context] \stopbuffer in macro

2005-06-02 Thread Hans Hagen
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

Re: [NTG-context] \stopbuffer in macro

2005-06-02 Thread Taco Hoekwater
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

Re: [NTG-context] \stopbuffer in macro

2005-06-02 Thread Peter Münster
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

Re: [NTG-context] \stopbuffer in macro

2005-05-30 Thread Hans Hagen
\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

Re: [NTG-context] \stopbuffer in macro

2005-05-30 Thread Taco Hoekwater
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