![词汇表和词汇表包的介绍](https://linux22.com/image/333209/%E8%AF%8D%E6%B1%87%E8%A1%A8%E5%92%8C%E8%AF%8D%E6%B1%87%E8%A1%A8%E5%8C%85%E7%9A%84%E4%BB%8B%E7%BB%8D.png)
我正在使用这个glossaries
软件包,里面有词汇表和缩略词列表。我想在开始条目之前在词汇表中做一些一般性评论。比如:
Many of the definitions echo those in Reference A, B. Readers are
referred to these works for additional information about the terminology
used here.
是否有可以重新定义的命令,以便访问标题和第一个条目之间的空间?我找不到任何相关信息。如果有帮助的话,glossaries-user.pdf
我很乐意使用。glossaries-extra
一位 MWE 表示:
\documentclass{article}
\usepackage{hyperref}
\usepackage{glossaries}
\makeglossaries
\newglossaryentry{Blackbox}
{
name=Blackbox models,
sort=blackbox,
description={--- In system identification, the term \emph{blackbox} modelling refers to the process of modelling a system through non-parametric techniques.}
}
\begin{document}
A reference to \gls{Blackbox}.
\newpage
\printglossary[title={Glossary}]
% Would like:
% Glossary
%
% Many of the definitions echo those in Reference A, B. Readers are
% referred to these works for additional information about the terminology
% used here.
%
% Blackbox models — In system identification, the term blackbox modelling
% refers to the process of modelling a system through non-parametric techniques,
% without knowledge of physical inner workings of the system, resulting
% in an empirical model. 1
%
\end{document}
答案1
使用\setglossarypreamble[main]{Your text}
或\setglossarypreamble[acronym]{Some other text}
。
\documentclass{article}
\usepackage{hyperref}
\usepackage{glossaries}
\makeglossaries
\setglossarypreamble[acronym]{foo foo}
\setglossarypreamble[main]{Many of the definitions echo those in Reference A, B. Readers are
referred to these works for additional information about the terminology
used here.}
\newglossaryentry{Blackbox}
{
name=Blackbox models,
sort=blackbox,
description={--- In system identification, the term \emph{blackbox} modelling refers to the process of modelling a system through non-parametric techniques.}
}
\begin{document}
A reference to \gls{Blackbox}.
\clearpage
\printglossary%[title={Glossary}]
\end{document}