
용어집 표시에 약어의 긴 형식을 표시할 수 있습니까?
약어가 많아서 문서 표시 끝 부분에는 짧은 버전만 표시됩니다.
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}
항목에 긴 형식도 표시하고 싶습니다. 가능합니까?
답변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}