是否可以在词汇表中显示首字母缩略词的长形式?
我有很多首字母缩略词,文档显示末尾只显示简短版本。
分数维:
\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}
我希望条目也能显示长格式。可以吗?
答案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}