Re: [NTG-context] counter values as label names

2011-01-04 Thread Daniel Schopper
Thomas and Aditya, thank you both for your replies! As Thomas already suspected it was a mere typo that \advance\entrycounter lied outside of the macro definition - sorry for the unnecessary confusion. I tried to compile Aditya's attempt (MKIV ver: 2010.12.31) but receive the following errors:

[NTG-context] counter values as label names

2011-01-03 Thread Daniel Schopper
Dear list, this seems a really basic question (and probably not even strictly ConTeXt-focused) - so please accept my apologies… I'm trying to construct a macro which first creates two labels in the text (\start/stopline and \pagereference) with the value of a counter as the label name and

Re: [NTG-context] counter values as label names

2011-01-03 Thread Thomas A. Schmitz
On Jan 3, 2011, at 3:11 PM, Daniel Schopper wrote: Dear list, this seems a really basic question (and probably not even strictly ConTeXt-focused) - so please accept my apologies… I'm trying to construct a macro which first creates two labels in the text (\start/stopline and

Re: [NTG-context] counter values as label names

2011-01-03 Thread Daniel Schopper
First of all thanks for the advice and sorry for my naïve posting! Here's a test file for what I try to do. The problem is that the page- and linenumbers printed by \placefootnotes all take the values of the last reference. \setupfootnotes[ location=text,

Re: [NTG-context] counter values as label names

2011-01-03 Thread Thomas A. Schmitz
On Jan 3, 2011, at 7:09 PM, Daniel Schopper wrote: \setupfootnotes[ location=text, numberconversion=empty, paragraph=, ] \newcount\entrycounter \entrycounter=0 \def\appentry#1#2{% \startline[line:\the\entrycounter]%

Re: [NTG-context] counter values as label names

2011-01-03 Thread Aditya Mahajan
On Mon, 3 Jan 2011, Daniel Schopper wrote: First of all thanks for the advice and sorry for my naïve posting! Here's a test file for what I try to do. The problem is that the page- and linenumbers printed by \placefootnotes all take the values of the last reference. \setupfootnotes[