用語集の頭字語に長いバージョンを追加する

用語集の頭字語に長いバージョンを追加する

用語集の表示で頭字語の長い形式を表示することは可能ですか?

頭字語がたくさんあるのですが、ドキュメントの末尾の表示には短縮バージョンのみが表示されます。

MWE :

\documentclass[12pt, twoside, a4paper]{report}

%Packages utilisés

\usepackage[utf8]{inputenc}
\usepackage{glossaries}
\usepackage{glossaries-extra}

\setglossarystyle{altlist}
\setabbreviationstyle[acronym]{long-short}

\newacronym
    [description={riggity raggity}]
    {bop}{BOP}{Breathing Out Parents}    
 
\newacronym
    [description={music style}]
    {rnb}{RNB}{Rythm N' Blues}   
    
\makenoidxglossaries

\begin{document}

Blabla \gls{bop} and \gls{rnb}. But \gls{rnb} is better.

\printnoidxglossaries
\end{document}    

与えるもの: MWE画像

エントリも長い形式で表示したいのですが、可能ですか?

答え1

まあ、少し遅すぎますが、おそらく誰もが、進むべき道の 1 つのヒントとしてこれを必要とするかもしれません。

\documentclass{article}
\usepackage[acronym]{glossaries}

\newacronym[description={riggity raggity}]{bop}{BOP}{Breathing Out Parents}    
\newacronym[description={music style}]{rnb}{RNB}{Rythm N' Blues}   

\newglossarystyle{yourStyle}{%
    \renewenvironment{theglossary}%
    {\begin{longtable}{p{.15\textwidth}p{.3\textwidth}p{.5\textwidth}}}%
        {\end{longtable}}%
    \renewcommand*{\glossaryheader}{%                   setting the table's header
        \bfseries  & \bfseries Meaning & \bfseries Description
        \\\tabularnewline\endhead}%
    \renewcommand*{\glsgroupheading}[1]{}%              no heading between groups
    \renewcommand*{\glossentry}[2]{%                    main entries displayed 
        \textbf{\glstarget{##1}{\glossentryname{##1}}}% name
        & \glsentrylong{##1}%                           meaning
        & \glossentrydesc{##1}%                         description
        \tabularnewline%                                end of row
    }%
    \renewcommand*{\glsgroupskip}{}%                    no distance between groups
}

\makeglossaries
\begin{document}
    Blabla \gls{bop} and \gls{rnb}. But \gls{rnb} is better.
    
    \printglossary[type=\acronymtype,style=yourStyle]
\end{document}  

ここに画像の説明を入力してください

関連情報