[Tex/LaTex] Problem: Resetting section counter in appendix with apa6 class

apa6appendices

I aim to have two separate appendices that start with "Appendix A" at the end of my document (the first is an appendix, the second a supplementary material). The solution is usually to use \setcounter{section}{0} in between appendices.

What I want is

Appendix A: First One

Supplement A: Second one

But what I get is

Appendix A: First One

Supplement B: Second one

Here is a minimal code example

\documentclass[a4paper,man]{apa6}
\usepackage[utf8]{inputenc}

\begin{document}

  \title{\textbf{The title of the article}}
  \shorttitle{Short title}
  \author{Me}
  \twoaffiliations{Department of X, Y}
  \journal{Journalname}

  \section{Introduction}
  Text Text Text

  \appendix
  \section{First One}
   Some text for first appendix

  \setcounter{section}{0}
  \renewcommand\appendixname{Supplement}
  \section{Second One}
   Some text for my second freshly started appendix

\end{document}

Can anybody help me out?

I tried using \begin{appendices} ... \end{appendices} of the appendix package, but could not make this work. Any ideas?

Best Answer

The apa6.cls redefines \section within \appendix and defines a counter appendix. The new \section macro does not use \refstepcounter{section} any longer, so \setcounter{section}{0} does effectively nothing.

In addition, there is a \oneappendixfalse switch.

Of course, references are confusing for such a scheme and hyperref (if used) will also be confused!

\documentclass[a4paper,man]{apa6}
\usepackage[utf8]{inputenc}
\oneappendixfalse
\begin{document}

  \title{\textbf{The title of the article}}
  \shorttitle{Short title}
  \author{Me}
  \twoaffiliations{Department of X, Y}
  \journal{Journalname}

  \section{Introduction}
  Text Text Text

  \appendix
  \section{First One}
   Some text for first appendix

  \setcounter{appendix}{0}
  \section{Second One}
   Some text for my second freshly started appendix

\end{document}