词汇表和词汇表包的介绍

词汇表和词汇表包的介绍

我正在使用这个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}

在此处输入图片描述

相关内容