0

Same question as this one but regarding the acro package.

How shall I prevent expansion in section, title and ToC?

enter image description here

MWE

%\documentclass{book} 
\documentclass{article} 
\usepackage{acro}

\DeclareAcronym{asset}{% short=asset, long= underlying asset, }

\DeclareAcronym{assetclass}{% short=asset class, long=asset class, }

\begin{document}

%\acresetall \tableofcontents

%\chapter{\Ac{asset} vs \ac{assetclass}}

\section{Don't get confused between \ac{asset} and \ac{assetclass}}

This is the demonstration of the usage of \ac{asset}---which is not to be confused with \ac{assetclass}.

\printacronyms

\end{document}

JeT
  • 3,020

1 Answers1

1

With a comment from the author of the package, everything is easier :)

Problem solved with the "star" version of \ac* \Ac*, \Acs, etc commands

enter image description here

\documentclass{article} 
\usepackage{acro}

\DeclareAcronym{asset}{% short=asset, long= underlying asset, }

\DeclareAcronym{assetclass}{% short=asset class, long=asset class, }

\begin{document}

%\acresetall \tableofcontents

\section{Don't get confused between \acs{asset} and \acs{assetclass}}

This is the demonstration of the usage of \ac{asset}---which is not to be confused with \ac{assetclass}.

\printacronyms

\end{document}

JeT
  • 3,020