[Tex/LaTex] acro vs. acronym – capitalization and reintroduction of acronyms

acroacronyms

I browsed the internet for quite some time, but have not found a solution to the following problem pertaining to the use of acronyms.

  1. I want to use capitalization of acronyms as provided by the acro package, e.g. \Ac{bla}.

  2. I want that acronyms are "reintroduced" in, say, every section or chapter, as provided by the acronym package.

Is there any possibility to get this "combined" functionality, for example by adapting either the acro or the acronym package?

Many thanks for your help in advance!

Cheers, from a desperate university dude.

Best Answer

You can use etoolbox' \preto to add acro's \acresetall to every call of \chapter or \section:

\documentclass{scrartcl}
\usepackage{acro}
\DeclareAcronym{foo}{
  short = foo ,
  long  = the description of foo
}

\usepackage{etoolbox}
\preto\section{\acresetall}

\begin{document}

\section{One}
\Ac{foo}, now short: \ac{foo}.

\section{two}
\Ac{foo}, now short: \ac{foo}.

\end{document}

enter image description here