頭字語のリストを非表示にする

頭字語のリストを非表示にする

ドキュメント内に少なくとも 1 つの図がある場合にのみ図のリストを表示するために、このトリックを使用しています。

\ifnum\value{figure}>0
    \listoffigures
    \newpage
\fi

-packageを使用してこれを行う方法はありますかglossaries?

\usepackage[
    acronym=true,
    toc
]{glossaries}
\makeglossary

[...]

\glsaddall
\printglossary[
    type=\acronymtype,
    title=Foo,
    numberedsection,
    nonumberlist
]

[...]

\glsaddall
\renewcommand*{\glspostdescription}{}
\printglossary[
    title=Glossary,
    numberedsection,
    nonumberlist
]

\newacronymおよび\newglossaryentryコマンドのラッパー コマンドを定義し、ブール変数を true に設定することを考えました。

関連情報