From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1246 Path: main.gmane.org!not-for-mail From: Marc van Dongen Newsgroups: gmane.comp.tex.context Subject: Problem with buffers in combination with textreference Date: Mon, 15 Nov 1999 15:30:49 +0000 (GMT) Sender: owner-ntg-context@let.uu.nl Message-ID: <199911151530.PAA23296@interzone.ucc.ie> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035392077 31106 80.91.224.250 (23 Oct 2002 16:54:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:54:37 +0000 (UTC) Original-To: ntg-context@ntg.nl (ConTeXt) Xref: main.gmane.org gmane.comp.tex.context:1246 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1246 Hello again, Below there is one macro (no arguments) which if used at a certain position in the text causes a problem. When replacing the macro call by its definition, will resolve the problem..... I have managed to reduce the problem to the odd 23 lines which are appended together with the error message below. Replacing \beginanswer in tmp.tex by its definition resolves the problem. It should be noted that changing the line: \textreference[Answer]{Answer}% in m-tmp.tex to some ordinary text also gets rid of the error. I cannot see what's causing the problem below. Is this a bug? Thanks in advance. Marc van Dongen BTW Should I post such questions to this forum or is there a more appropriate way of doing things? _______________________________________________________ Marc van Dongen, CS Dept | phone: +353 21 903578 University College Cork, NUIC | Fax: +353 21 903113 College Road, Cork, Ireland | Email: dongen@cs.ucc.ie _______________________________________________________ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Main source: tmp.tex % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usemodule[tmp] \starttext \beginquestion \beginanswer % !! Replace by definition of % \beginanswer and it's fine !! \stopbuffer % !! !! !! has to be fixed !! !! !! \endgroup % !! !! !! has to be fixed !! !! !! % % !! !! !! Because I would !! !! !! % % !! !! !! like to use \endanswer here. !! \endquestion \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Module: m-tmp.tex % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\beginanswer{% \begingroup \startbuffer[Answerbuffer] \textreference[Answer]{Answer} } %\endanswer{\endbuffer\endgroup\page[yes]} \def\beginquestion{% \begingroup Blah. } \def\endquestion{\endgroup} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Error message % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ! Argument of \dodostartbuffer has an extra }. \par } \doifnot ...f \!!stringa {#1}\edef \!!stringb {#2} \unless \ifx \!!stringa \!... \writetmpblock ... \write \tmpblocks {\string #1}} \fi \next ...mpblock {\textreference [Answer]{Answer}} \copyblockline l.6 \beginanswer