
只有當我的文件中至少有一個圖形時,我才使用此技巧來顯示圖形清單:
\ifnum\value{figure}>0
\listoffigures
\newpage
\fi
有沒有辦法用glossaries
-package 來做到這一點?
\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。