Am 11.01.2012 um 12:52 schrieb Meer, H. van der:
On 11 jan. 2012, at 11:33, luigi scarso wrote:
On Wed, Jan 11, 2012 at 11:11 AM, Hans van der Meer
<havdmeer@xs4all.nl> wrote:
Something must have been changed with buffers between the versions:
ConTeXt ver: 2011.11.29 18:47 MKIV fmt: 2011.12.31
and
Formerly this was ok:
\startbuffer[abc]
whatever
\stopbuffer
Now I get: ! Missing } inserted.
Because running this in isolation goes without a problem, I suspect the change has to do with the project structure in which I use the buffer. But again, it worked in the past.
Does it works with
\setbuffer[abc]
whatever
\endbuffer
?
It works with these macros, yes. Thanks.
But is \setbuffer..\endbuffer something new?
No, it’s a old command but not very useful for a user.
I do not see it on the Reference page of the wiki.
The original source for the reference pages didn’t provide a way to describe the syntax for \setbuffer but there are also many commands which are undocumented.
Also it doesn't seem in line with ConTeXt's regular naming scheme of \startsomething..\stopsomething.
Can you give somewhat more information, for examle what is the difference between \setbuffer and \startbuffer?
\setbuffer can’t be nested like \startbuffer and not a command which should be used in a document. It’s useful for internal use when one write macros where the regular buffer environment can’t be used.