Hello list,

this is an example of footnotes with two different markers (and counters): numbers for editor's footnotes, stars for author's footnotes.

The footnotes are typeset together, in the order they appear in the text, so number and star markers are interspersed.

The two counters are reset every page (way=bypage).

-----

\setupnotation[footnote][way=bypage]

 

\definecounter[authornote][way=bypage]

 

% taken and adapted from https://www.mail-archive.com/ntg-context@ntg.nl/msg56637.html

\define[1]\authorNote{\bgroup%

\savecounter[footnote]%

\setcounter[footnote][{\rawcountervalue[authornote]}]%

\setupnotation[footnote][numberconversion=set 1]%

\footnote{#1}%

\restorecounter[footnote]%

\incrementcounter[authornote]%

\egroup}

 

\starttext

 

First footnote\footnote{First footnote}.

First author's footnote\authorNote{First author's footnote}.

Second footnote\footnote{Second footnote}.

Second author's footnote\authorNote{Second author's footnote}.

 

\page

 

First footnote\footnote{First footnote}.

First author's footnote\authorNote{First author's footnote}.

Second footnote\footnote{Second footnote}.

Second author's footnote\authorNote{Second author's footnote}.

 

\stoptext

-----

 

The problem: the first authorNote of the second page has its counter set to 3 instead of 1 (you see 3 stars as marker).

The second authorNote has the right value of 2 (2 stars as marker).

This means that "way=bypage" works for the authornote counter too, but one step late.

What am I missing? Some \iftrialtypesetting?

 

Greetings,

Massi