Re: [NTG-context] buffers inside startMPpage

2016-10-14 Thread Jan Willem Flamma
Thank you Wolfgang. This suits my needs just fine. Kind regards, Jan Willem Flamma > On 14 okt. 2016, at 10:34, Wolfgang Schuster > wrote: > >> Jan Willem Flamma 14. Oktober 2016 um 10:12 >> Dear list members, >> >> I create all my MetaFun drawings in a separa

Re: [NTG-context] buffers inside startMPpage

2016-10-14 Thread Wolfgang Schuster
Jan Willem Flamma 14. Oktober 2016 um 10:12 Dear list members, I create all my MetaFun drawings in a separate environment file where each individual drawing sits inside a start/stopbuffer. This allows me to easily use those drawings in all my documents using \pr

[NTG-context] buffers inside startMPpage

2016-10-14 Thread Jan Willem Flamma
Dear list members, I create all my MetaFun drawings in a separate environment file where each individual drawing sits inside a start/stopbuffer. This allows me to easily use those drawings in all my documents using \processMPbuffer[name]. Works just fine. However, I also wish to have all the d

[NTG-context] buffers writing CR only instead of proper newlines (LF)

2015-05-02 Thread Mojca Miklavec
Hi, The gnuplot module recently stopped working because the buffers now seem to write out the CR (0x0d) instead of the LF character for newlines. Here's a minimal example as shamelessly stolen from the module: \long\def\startXheader {\def\stopXheader{\ifx\savebuffer\undefined \else \savebuffer

Re: [NTG-context] buffers (append)

2013-01-15 Thread Sietse Brouwer
Hi Alan, >> > In addition to \startbuffer \stopbuffer >> > it would be nice to have \startappendbuffer \stopappendbuffer. >> > >> > I see that the lua function buffer.append() exists but I have not >> > worked-out how to add this functionality cleanly as conTeXt macros. Here you go! % We want to

Re: [NTG-context] buffers (append)

2013-01-14 Thread Alan BRASLAU
On Mon, 14 Jan 2013 09:34:08 +0100 Wolfgang Schuster wrote: > > Am 14.01.2013 um 09:00 schrieb Alan BRASLAU : > > > Hello, > > > > In addition to \startbuffer \stopbuffer > > it would be nice to have \startappendbuffer \stopappendbuffer. > > > > I see that the lua function buffer.append() exi

Re: [NTG-context] buffers (append)

2013-01-14 Thread Wolfgang Schuster
Am 14.01.2013 um 09:00 schrieb Alan BRASLAU : > Hello, > > In addition to \startbuffer \stopbuffer > it would be nice to have \startappendbuffer \stopappendbuffer. > > I see that the lua function buffer.append() exists but I have not > worked-out how to add this functionality cleanly as conTeXt

[NTG-context] buffers (append)

2013-01-14 Thread Alan BRASLAU
Hello, In addition to \startbuffer \stopbuffer it would be nice to have \startappendbuffer \stopappendbuffer. I see that the lua function buffer.append() exists but I have not worked-out how to add this functionality cleanly as conTeXt macros. I imagine that this might be quite trivial for our Te

Re: [NTG-context] Buffers vs. \def

2012-04-18 Thread Wolfgang Schuster
Am 18.04.2012 um 11:48 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: > Hello, > > a question - I'm just curious: > > What is advantage (or maybe intension) of using buffers over \def? > > Compare: > > > \def\BufA{This is buffer A.} > > \startbuffer[BufB] > This is buffer B. > \stopbu

Re: [NTG-context] Buffers vs. \def

2012-04-18 Thread Hans Hagen
On 18-4-2012 11:48, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, a question - I'm just curious: What is advantage (or maybe intension) of using buffers over \def? better test with \startlines test test \stoplines also, bufferes can be flushed verbatim, as tex, as ... while macros ar

[NTG-context] Buffers vs. \def

2012-04-18 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, a question - I'm just curious: What is advantage (or maybe intension) of using buffers over \def? Compare: \def\BufA{This is buffer A.} \startbuffer[BufB] This is buffer B. \stopbuffer \starttext \BufA \getbuffer[BufB] \ifx\BufC\undefined No buffer C.\else\BufC\fi \stopt

Re: [NTG-context] Buffers can’t be loaded as figure

2011-02-18 Thread Hans Hagen
On 17-2-2011 6:22, Wolfgang Schuster wrote: Hi Hans, buffers in \externalfigure are broken. \startbuffer[foo] FOO \stopbuffer \starttext \externalfigure[foo][type=buffer] \stoptext Wolfgang ok, fixed btw, 'type' is obsolete, but 'method' stayed, so method=buffer --

[NTG-context] Buffers can’t be loaded as figure

2011-02-17 Thread Wolfgang Schuster
Hi Hans, buffers in \externalfigure are broken. \startbuffer[foo] FOO \stopbuffer \starttext \externalfigure[foo][type=buffer] \stoptext Wolfgang ___ If your question is of interest to others as well, please add an

Re: [NTG-context] buffers and expansion order

2010-12-13 Thread Wolfgang Schuster
Am 13.12.2010 um 12:04 schrieb Yury G. Kudryashov: > Hi! > > Why the following doesn't work? > > \def\mybuf{\startbuffer[a]b\stopbuffer} \def\mybuf{\setbuffer[a]b\endbuffer} Wolfgang ___ If your question is of i

[NTG-context] buffers and expansion order

2010-12-13 Thread Yury G. Kudryashov
Hi! Why the following doesn't work? \def\mybuf{\startbuffer[a]b\stopbuffer} \mybuf Actually, I need slightly more advanced command, but this is the minimal example. ___ If your question is of interest to others as

Re: [NTG-context] Buffers and commands with optional arguments

2008-06-02 Thread Wolfgang Schuster
On Mon, Jun 2, 2008 at 10:05 AM, Hans Hagen <[EMAIL PROTECTED]> wrote: > Wolfgang Schuster wrote: > >> I will now include a modified version from the \flushbufferline macro >> with my package in will look for the first person with a problem. > > keep in mind that such low level macros are not part

Re: [NTG-context] Buffers and commands with optional arguments

2008-06-02 Thread Hans Hagen
Wolfgang Schuster wrote: > I will now include a modified version from the \flushbufferline macro > with my package in will look for the first person with a problem. keep in mind that such low level macros are not part of the official interface and their name and/or the way of calling them may ch

Re: [NTG-context] Buffers and commands with optional arguments

2008-06-01 Thread Wolfgang Schuster
On Sat, May 31, 2008 at 12:51 PM, Hans Hagen <[EMAIL PROTECTED]> wrote: > Wolfgang Schuster wrote: >> Hi Hans, >> >> I got yesterday a bug report for my letter module if the \startletter >> command takes no arguments. >> >> The following example show the problem without the module. >> >> \def\start

Re: [NTG-context] Buffers and commands with optional arguments

2008-05-31 Thread Wolfgang Schuster
Hi Hans, On Sat, May 31, 2008 at 12:33 PM, Hans Hagen <[EMAIL PROTECTED]> wrote: > Wolfgang Schuster wrote: > >> \doifsomething{#1} >>{\tmpblockstartedtrue >> %\immediate\write\tmpblocks{\string#1}}% >> \immediate\write\tmpblocks{#1}}% > > i have no problem with the \l

Re: [NTG-context] Buffers and commands with optional arguments

2008-05-31 Thread Hans Hagen
Wolfgang Schuster wrote: > Hi Hans, > > I got yesterday a bug report for my letter module if the \startletter > command takes no arguments. > > The following example show the problem without the module. > > \def\startletter > {\dosingleempty\dostartletter} > > \def\dostartletter[#1]% > {\do

Re: [NTG-context] Buffers and commands with optional arguments

2008-05-31 Thread Hans Hagen
Wolfgang Schuster wrote: > \doifsomething{#1} >{\tmpblockstartedtrue > %\immediate\write\tmpblocks{\string#1}}% > \immediate\write\tmpblocks{#1}}% i have no problem with the \long but changing the \string ... it's there for a reason so i need to look into it >

[NTG-context] Buffers and commands with optional arguments

2008-05-31 Thread Wolfgang Schuster
Hi Hans, I got yesterday a bug report for my letter module if the \startletter command takes no arguments. The following example show the problem without the module. \def\startletter {\dosingleempty\dostartletter} \def\dostartletter[#1]% {\dostartbuffer[letter][startletter][stopletter]} \s

Re: [NTG-context] Buffers (gone) in MK IV (was: MK IV & Lilypond)

2007-08-26 Thread Mojca Miklavec
On 8/25/07, David Wooten wrote: > Greetings, > > Did we end up with a working solution for t-lilypond? I'm sorry. The file is attached. The only line added is \ifx\savebuffer\undefined \else \savebuffer[lilypond-\the\lily!figures]\fi and one probably needs the latest ConTeXt. Mojca -

Re: [NTG-context] Buffers (gone) in MK IV (was: MK IV & Lilypond)

2007-08-25 Thread David Wooten
Greetings, Did we end up with a working solution for t-lilypond? I've tinkered a bit Hans' response, too, but without luck. Dave On Aug. 21, 2007, at Aug 21, 3:53 PM, Mojca Miklavec wrote: > On 8/21/07, Hans Hagen wrote: >> Mojca Miklavec wrote: >>> On 8/21/07, David Wooten wrote: Greeti

Re: [NTG-context] Buffers (gone) in MK IV

2007-08-22 Thread Hans Hagen
Mojca Miklavec wrote: > \def\PDF{texmfstart --ifchanged=\lily!filename.eps pstopdf > \lily!filename.eps} > \beginLUATEX > \savebuffer[lilypond-\the\lily!figures]% > \endLUATEX \beginLUATEX is not to be used in a macro \beginLUATEX message to screen bla bla \endLU

Re: [NTG-context] Buffers (gone) in MK IV (was: MK IV & Lilypond)

2007-08-21 Thread Mojca Miklavec
On 8/21/07, Hans Hagen wrote: > Mojca Miklavec wrote: > > On 8/21/07, David Wooten wrote: > >> Greetings all, > >> > >> Has anyone had any luck getting the lilypond module to work with mkiv/ > >> luatex engine? It fails for me (works fine with mkii/pdftex). I can > >> send along some log info if ot

Re: [NTG-context] Buffers (gone) in MK IV (was: MK IV & Lilypond)

2007-08-21 Thread Hans Hagen
Mojca Miklavec wrote: > On 8/21/07, David Wooten wrote: >> Greetings all, >> >> Has anyone had any luck getting the lilypond module to work with mkiv/ >> luatex engine? It fails for me (works fine with mkii/pdftex). I can >> send along some log info if others have found it to work. > > Hans has me

[NTG-context] Buffers (gone) in MK IV (was: MK IV & Lilypond)

2007-08-21 Thread Mojca Miklavec
On 8/21/07, David Wooten wrote: > Greetings all, > > Has anyone had any luck getting the lilypond module to work with mkiv/ > luatex engine? It fails for me (works fine with mkii/pdftex). I can > send along some log info if others have found it to work. Hans has mentioned several times that buffer

Re: [NTG-context] buffers

2006-08-08 Thread Hans Hagen
Aditya Mahajan wrote: > Hans, was this fixed. There is a typo in core-buf.tex and it is still > present in latest "updateable" version (2006.08.02). > ok done Hans - Hans Hagen | PRAGMA

Re: [NTG-context] buffers

2006-08-07 Thread Aditya Mahajan
On Mon, 31 Jul 2006, Aditya Mahajan wrote: > On Mon, 31 Jul 2006, Hans van der Meer wrote: > >> The ConTeXt manual tells me on page 237: >> >> You can define your own buffer with: >> \definebuffer[...] >> ... name >> After this command /getbuffer and \typebuffer are available w

Re: [NTG-context] buffers

2006-08-01 Thread Hans van der Meer
On Aug 1, 2006, at 0:21, Aditya Mahajan wrote: > On Mon, 31 Jul 2006, Hans van der Meer wrote: > >> The ConTeXt manual tells me on page 237: >> >> You can define your own buffer with: >> \definebuffer[...] >> ... name >> After this command /getbuffer and \typebuffer are availa

Re: [NTG-context] buffers

2006-07-31 Thread Aditya Mahajan
On Mon, 31 Jul 2006, Hans van der Meer wrote: > The ConTeXt manual tells me on page 237: > > You can define your own buffer with: > \definebuffer[...] > ... name > After this command /getbuffer and \typebuffer are available where > buffer is the name of the buffer. > > I d

[NTG-context] buffers

2006-07-31 Thread Hans van der Meer
The ConTeXt manual tells me on page 237: You can define your own buffer with: \definebuffer[...] ... name After this command /getbuffer and \typebuffer are available where buffer is the name of the buffer.I do: \definebuffer[left] \startbuffer[left] left\crlf \stopbuffer \typeleftand it gives me th

Re: [NTG-context] buffers and mathml

2005-06-02 Thread Taco Hoekwater
I tried defining a command [...] but that is plain wrong... You are quite close. This works: \edef\Wea { .. } (note the \edef) and then: \expandafter \startbuffer \Wea \stopbuffer The added \expandafter expands \Wea before \startbuffer comes into play. I am puzzled as to why you

[NTG-context] buffers and mathml

2005-06-02 Thread jimarin
Hi all, I hope not to be posing a silly question. I am trying something like: usemodule[mathml] \starttext \def\open {<} \def\close {>} \startbuffer \open math display="block"\close \open apply\close \open sin/\close \open apply\close \open plus/\close \open cn\close 2 \open /cn\close \open c