ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Marc van Dongen <dongen@cs.ucc.ie>
Subject: Problem with buffers in combination with textreference
Date: Mon, 15 Nov 1999 15:30:49 +0000 (GMT)	[thread overview]
Message-ID: <199911151530.PAA23296@interzone.ucc.ie> (raw)

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 }.
<inserted text> 
                \par 
<to be read again> 
                   }
\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


             reply	other threads:[~1999-11-15 15:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-15 15:30 Marc van Dongen [this message]
1999-11-15 17:12 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199911151530.PAA23296@interzone.ucc.ie \
    --to=dongen@cs.ucc.ie \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).