文書内でのみ言及されている頭字語のリストを表示します

文書内でのみ言及されている頭字語のリストを表示します

与えられたコードの解から頭字語リストを左に並べるにはここをクリックドキュメントに記載されている頭字語のみをリストに表示するにはどうすればよいですか? この場合、リストには 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]

したがって、その行を削除します。

関連情報