How can I redefine the numbering style of footnotes in ConTeXt, such that is displays a combination of a number and letter (e.g. 1.A
, 1.B
, 1.C
) instead of the usual 1, 2, 3 sequence, e.g.:
This is some text.^1.A This is some more text.^1.B
This is yet some more text.^2.A This is the last text.^2.B
- The number needs to only be incremented when done so manually, e.g. with something like
\incrementnumber[footnote]
. - The letter needs to be incremented each time a new footnote is defined, and reset whenever the number is incremented, e.g.
1.A
,1.B
,1.C
,2.A
,2.B
,2.C
.
I have managed to create a partial solution:
\definenumber[prefixcounter]
\setnumber[prefixcounter]{1}
\def\footnoteprefix#1{\getnumber[prefixcounter].#1}
\setupnote[footnote][left=\footnoteprefix, numberconversion=set 2]
\starttext
This is some text.\footnote{This is a footnote.}
This is some more text.\footnote{This is another footnote.}
\incrementnumber[prefixcounter]
This is yet some more text.\footnote{This is yet another footnote.}
This is the last text.\footnote{This is the last footnote.}
\stoptext
This solution has several problems:
left=\footnoteprefix
is only appearing near the footnote, not in the document text as well.numberconversion
seems to have a limited number of options, such asset 1
,set 2
, I could not find any way to set this to useA
,B
,C
, etc., such as is available for enumerated lists according to the ConTeXt wiki.
How can footnotes be created which use this number-letter format?