Hi: Recently, I had some data I wanted set using tabulate but in 7 individual buffers. I wanted to use a macro to both create the buffers and do the \starttabulate...\stoptabulate stuff. I found that my macro could create the .tmp file for each buffer but that the files were all empty. Why would this happen, and is there a way to make this work? example: \define[5]\MyBuffers{ \startbuffer[#1] \starttabulate[|l|l|] \NC #2 \NC #3 \NR \NC #4 \NC #5 \stoptabulate \stopbuffer } Best Wishes, Matthew Huggett
At 08:22 PM 11/15/2002 +0900, you wrote:
Hi:
Recently, I had some data I wanted set using tabulate but in 7 individual buffers. I wanted to use a macro to both create the buffers and do the \starttabulate...\stoptabulate stuff. I found that my macro could create the .tmp file for each buffer but that the files were all empty. Why would this happen, and is there a way to make this work?
example:
\define[5]\MyBuffers{ \startbuffer[#1] \starttabulate[|l|l|] \NC #2 \NC #3 \NR \NC #4 \NC #5 \stoptabulate \stopbuffer }
this is because buffers do a copy based on grabbing lines; in your case, use \setbuffer[#1]...\endbuffer (you're lucky, the next release will provide \usememorybuffers, since a few days back we needed something similar) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Matthew Huggett