On 2012–12–15 Sietse Brouwer wrote:
But when I tried to write a minimal example, I couldn't get it to compile.
%% begin example \grabbufferdata[mybuffer][thisisthestart][thisistheend] \thisisthestart My friend, you would not tell with such high zest To children ardent for some desparate glory, The old Lie: Dulce et decorum est Pro patria mori. \thisistheend
\typebuffer[mybuffer] %% end example
What am I doing wrong?
You have to wrap it in a macro: \starttext \define\thisisthestart {\grabbufferdata[mybuffer][thisisthestart][thisistheend]} \let\thisistheend\relax %% not necessary \thisisthestart My friend, you would not tell with such high zest To children ardent for some desparate glory, The old Lie: Dulce et decorum est Pro patria mori. \thisistheend \typebuffer[mybuffer] \stoptext Marco