From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: buffer error
Date: Fri, 16 Feb 2007 10:57:19 -0500 (EST) [thread overview]
Message-ID: <alpine.WNT.0.82.0702161051320.4088@nqvgln> (raw)
In-Reply-To: <op.tnulgbl2nx1yh1@walayah-main>
On Fri, 16 Feb 2007, Idris Samawi Hamid wrote:
> Hi gang,
>
> Here is something strange:
>
> [snip]
>
> will not compile:
>
> ==================
> ! Missing number, treated as zero.
> <to be read again>
> \@@vnmetanoten
> \dochecknote ...\relax \ifnum \noteparameter \c!n
> =\zerocount
> \settextnotes ...
>
> \dodoflushnotes ...zeropoint \bgroup \dochecknote
> \ifendnotes \else
> \scratch...
>
> \next1 #1,->\doprocessnotes {\dodoflushnotes }{#1}
> \doprocesscommaitem
> \doprocesscommalist ...item \gobbleoneargument #1,
> ]\relax \global \advance
> \...
>
> \doflushnotes ...rt \processnotes \dodoflushnotes
> \global \setfalse
> \postpon...
> ...
> l.56
Well, a simple minimal example
\starttext
{ \definenote[metanote][conversion=set 2]
Test\metanote{test}
}
\stoptext
Since the note is defined in a group, its meaning is lost when you go
out of the group. But the note in actually inserted at the end of the
current-page, by which time, tex has no idea of counter of the note,
hence the error.
I am not sure if this is the "correct" behaviour or should definenote
should change to make sure that something like this works. I tend to
think that this is the correct behaviour. Do you really need to define
the note inside a group?
(In your example the group is being created by the braces in
{\typebuffer \getbuffer})
Aditya
next prev parent reply other threads:[~2007-02-16 15:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-16 15:32 Idris Samawi Hamid
2007-02-16 15:57 ` Aditya Mahajan [this message]
2007-02-16 16:34 ` Hans Hagen
2007-02-16 16:41 ` Idris Samawi Hamid
2007-02-16 16:45 ` Idris Samawi Hamid
2007-02-16 16:19 ` 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=alpine.WNT.0.82.0702161051320.4088@nqvgln \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/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).