0

Is there a way to reset the footnote counter every page without getting errors and warnings?

If I use \usepackage[perpage]{footmisc} I get an error.
If I use \usepackage{perpage} \MakePerPage{footnote} I get a warning.

MWE

\documentclass{article}
\usepackage{paracol}
\footnotelayout{m}

\usepackage{blindtext}

\begin{document}

  \blindtext{1}

  \begin{paracol}{2} % left column
  \textbf{Hello, I'm column one.}\footnote{I'm a footnote.}
  \blindtext{1}
  \switchcolumn % right column
  \textbf{Hello, I'm column two.}\footnote{I'm a footnote.}
  \blindtext{1}
  \end{paracol}

  \blindtext{1}

  \blindtext{1}

  \begin{paracol}{2} % left column
  \textbf{Hello, I'm column one.}\footnote{I'm a footnote.}
  \blindtext{1}
  \switchcolumn % right column
  \textbf{Hello, I'm column two.}\footnote{I'm a footnote.}
  \blindtext{1}
  \end{paracol}

\end{document}
3

After some research I found an easy solution:

\usepackage{everypage}
\AddEverypageHook{\setcounter{footnote}{0}} % resets footnote counter on every page

MWE

\documentclass{article}
\usepackage{paracol}
\footnotelayout{m}

\usepackage{everypage}
\AddEverypageHook{\setcounter{footnote}{0}}

\usepackage{blindtext}

\begin{document}

  \blindtext{1}

  \begin{paracol}{2} % left column
  \textbf{Hello, I'm column one.}\footnote{I'm a footnote.}
  \blindtext{1}
  \switchcolumn % right column
  \textbf{Hello, I'm column two.}\footnote{I'm a footnote.}
  \blindtext{1}
  \end{paracol}

  \blindtext{1}

  \blindtext{1}

  \begin{paracol}{2} % left column
  \textbf{Hello, I'm column one.}\footnote{I'm a footnote.}
  \blindtext{1}
  \switchcolumn % right column
  \textbf{Hello, I'm column two.}\footnote{I'm a footnote.}
  \blindtext{1}
  \end{paracol}

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.