条目计数不适用于 \pgls (glossaries-prefix)

条目计数不适用于 \pgls (glossaries-prefix)

我想同时使用 glossaries-extra 和 glossaries-prefix。前者用于条目计数,并且仅使用命令显示文本中出现 3 次或更多次的首字母缩略词\GlsXtrEnableEntryCounting{acronym}{2}。后者用于对以 M、N、S 等开头的首字母缩略词使用正确的前缀(a vs an)。因此“an”用于缩写形式,而“a”用于这些首字母缩略词的全称形式。(这是 MNE 与跨国企业)。但 glossaries-prefix 似乎与命令不兼容\GlsXtrEnableEntryCounting{acronym}{2}。那么如何实现呢?

这是我的 MWE:

\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}

\usepackage[%
    xindy,              % sorting
    acronym,            % additional acronyms list
    nonumberlist,   % no page numbers in glossaries 
    ]{glossaries-extra,glossaries-prefix}
    \RestoreAcronyms    %use original acronym interface instead of abbreviation
    \setglossarystyle{index}

% Only add acronyms to list if trigger value is exceeded
\GlsXtrEnableEntryCounting{acronym}{2}

\renewcommand{\glsnamefont}[1]{\textbf{#1}} % Acronyms bold (in list)

\makeglossaries

\newacronym[
    prefixfirst={a\ },%prefix on first use
    prefix={an\ },%prefix on subsequent uses
%   shortplural={},
%   longplurarl={},
%   name={},%acronym in list
%   description={},%description or long acronym in list
    ]{SDG}%label
    {SDG}%short
    {sustainable development goal}%long

\newacronym[
    prefixfirst={a\ },%prefix on first use
    prefix={an\ },%prefix on subsequent uses
    ]{MNE}%label
    {MNE}%short
    {multinational enterprise}%long


\begin{document}

    \printacronyms[
        nopostdot,      % no dots after items
        style=long,     %
        nogroupskip,    % no space between different groups(letters)
    ]%

    \section{GLS}

    First use of gls \gls{MNE} and 2nd use of \gls{MNE}.


    \section{PGLS}
 
    Example of \pgls{SDG}.


\end{document}

文档输出:

文档输出

谢谢!

相关内容