How to manually reset the footnote numbering in ConTeXt?

5,172

Solution 1

\starttext

This is some text\footnote{This is a footnote}.
This is some more text\footnote{This is another footnote}.
\resetcounter[footnote]
This is yet another text\footnote{This is some more footnote text}.

\stoptext

enter image description here

Solution 2

The LaTeX solution would be

\setcounter{footnote}{0} 

In the comments we found out that this also works for ConTeXt after adapting the syntax:

\setupcounter[footnote][0]
Share:
5,172
Village
Author by

Village

Updated on August 01, 2022

Comments

  • Village
    Village over 1 year

    I have a document with many footnotes, like this:

    This is some text\footnote{This is a footnote}.
    This is some more text\footnote{This is another footnote}.
    This is yet another text\footnote{This is some more footnote text}.
    

    This produces footnotes numbered 1, 2, 3, etc.

    I need to manually reset the footnote number back to 1. E.g.:

    This is some text\footnote{This is a footnote}.
    This is some more text\footnote{This is another footnote}.
    \resetfootnote
    This is yet another text\footnote{This is some more footnote text}.
    

    This should produce footnotes numbered 1, 2, then 1 again.

    How can I manually reset the footnote counter?

    • Dr. Manuel Kuehner
      Dr. Manuel Kuehner over 6 years
      Have you had a look at wiki.contextgarden.net/Footnotes especially the section about Footnote Numbering?
    • Village
      Village over 6 years
      Yes, I tried changing way=bypage and way=bysection, but it does not get the correct results, which is to have the numbers reset each time \placefootnotes is called. As bypage and bysection both don't do that, I need to be able to manually adjust the numbering.
    • Dr. Manuel Kuehner
      Dr. Manuel Kuehner over 6 years
      Does the latex solution work in context? \setcounter{footnote}{0}
    • Village
      Village over 6 years
      I found changing that solution to a ConTeXt-style syntax, \setupcounter[footnote][0] works.