
제공된 코드 솔루션에서두문자어 목록을 왼쪽으로 플러시하려면 여기를 클릭하세요., 문서에 언급된 약어만 목록에 표시하는 방법은 무엇입니까? 이 경우 목록에는 EEPROM과 LED만 포함되어야 합니다.
다른 항목을 삭제할 수 있다는 것을 알고 있지만 추가 항목을 삭제하지 않고도 목록에 표시되지 않도록 프로그래밍할 수 있습니까?
코드는 다음과 같습니다.
\documentclass{article}
\usepackage[acronym,toc]{glossaries}
\makeglossaries
\newacronym{uri}{URI}{Unique Resonance Identifier}
\newacronym{led}{LED}{light-emitting diode}
\newacronym{eeprom}{EEPROM}{electrically erasable programmable
read-only memory}
\glsaddall[types=\acronymtype]
\newglossarystyle{custom_acronyms}
{
\setglossarystyle{long3colheader}%
\renewcommand*{\glossaryheader}{}%
\renewcommand{\glossentry}[2]{%
\textbf{\glsentryitem{##1}\glstarget{##1}{\glossentryname{##1}}}
& \glossentrydesc{##1}
& ##2
\tabularnewline}%
}
\begin{document}
Just show \gls{eeprom} and \gls{led}
%\printglossaries
\printglossary[type=acronym,style=custom_acronyms]
\end{document}
답변1
문서에 언급된 약어만 표시하는 것이 기본값입니다. 그러나 다음 줄을 사용하여 다른 모든 항목도 추가하도록 지시합니다.
\glsaddall[types=\acronymtype]
그러니 그 줄을 제거하세요.