Am 17.10.2009 um 22:29 schrieb Andreas Harder:
Hi all,
now that \inline[ref] etc. work—whereas in the case of \someline
[ref] \inline[ref] always jumps to the else-branch of its definition
and outputs the same line twice—I tried, obviously naive, to realize
the following functionality (attachment).
It seems that the (wrong?) use of \starbuffer in a macro is the
cause of the error: ! File ended while scanning use of
\dododowithbuffer.
Can someone provide a correction?
1. This \doifelsesamelinereference macro in page-lin.mkiv should be
changed to:
\def\doifelsesamelinereference#1#2#3%
{\doifreferencefoundelse{lr:b:#1}
{\edef\fline{\currentreferencedefault}% was \currentreferencetext
\doifreferencefoundelse{lr:e:#1}
{\edef\tline{\currentreferencedefault}% was
\currentreferencetext
\ifx\fline\tline#2\else#3\fi}
{\unknownreference{#1}#2}}
{\unknownreference{#1}#2}}
2. You can't hide start/stopbuffer.
Before I help you provide us with more information, e.g. should the
text in the buffer
appear also in the complete text or do you it only in the snippet?
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________