Normally, the glossaries-extra
package displays the long form of an abbreviation only the first time.
I would like to set the number of times that the long form of abbreviations are shown, before it starts showing the short form.
For example:
\documentclass{article}
\usepackage{glossaries-extra}
\setabbreviationstyle{long-only-short-only}
\glssetcategoryattribute{shortperiod}{discardperiod}{true}
\glssetcategoryattribute{shortperiod}{retainfirstuseperiod}{true}
\newabbreviation[category=shortperiod]{etc}{etc.}{etcetera}
\begin{document}
\gls{etc}. \gls{etc}. \gls{etc}. \gls{etc}.
\end{document}
Results in:
etcetera. etc. etc. etc.
However, I would like to set the number of times that the long form is displayed. E.g., if I set the long form to be shown three times, the output would be:
etcetera. etcetera. etcetera. etc.