基本上我有两个列表(词汇表和首字母缩略词),我只想合并到一个部分,例如(术语和首字母缩略词列表)
答案1
您可以使用section
包选项来更改词汇表使用的分段命令。例如:
\documentclass{book}
\usepackage[acronym,section]{glossaries}
\makeglossaries
\newglossaryentry{sample}{name={sample},
description={a sample entry}}
\newacronym{aca}{aca}{a contrived acronym}
\begin{document}
\chapter{Sample}
A \gls{sample} entry and \gls{aca}. Second use: \gls{aca}.
Plurals: \glspl{sample}. Reset acronym\glsreset{aca}.
First use: \glspl{aca}. Second use: \glspl{aca}.
\chapter*{List of Terms and Acronyms}
\printglossaries
\end{document}
结果:
acronym
或者您可以通过删除包选项将主词汇表与首字母缩略词列表结合起来:
\documentclass{book}
\usepackage{glossaries}
\makeglossaries
\newglossaryentry{sample}{name={sample},
description={a sample entry}}
\newacronym{aca}{aca}{a contrived acronym}
\begin{document}
\chapter{Sample}
A \gls{sample} entry and \gls{aca}. Second use: \gls{aca}.
Plurals: \glspl{sample}. Reset acronym\glsreset{aca}.
First use: \glspl{aca}. Second use: \glspl{aca}.
\printglossary[title={List of Terms and Acronyms}]
\end{document}
结果: