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
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]
Author by
Village
Updated on August 01, 2022Comments
-
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 over 6 yearsHave you had a look at wiki.contextgarden.net/Footnotes especially the section about Footnote Numbering?
-
Village over 6 yearsYes, I tried changing
way=bypage
andway=bysection
, but it does not get the correct results, which is to have the numbers reset each time\placefootnotes
is called. Asbypage
andbysection
both don't do that, I need to be able to manually adjust the numbering. -
Dr. Manuel Kuehner over 6 yearsDoes the latex solution work in context? \setcounter{footnote}{0}
-
Village over 6 yearsI found changing that solution to a ConTeXt-style syntax,
\setupcounter[footnote][0]
works.
-