5

我目前陷入困境,有两个单独的词汇表:main& acronymsAcronyms词汇表在文本中首次使用时打印脚注,但main词汇表不会。acronyms除了在第一次使用该术语时打印脚注之外,还有其他方法可以制作任何其他词汇表吗?我不明白该怎么做。

下面是使用 TeXnic Center 和 MiKTeX 2.7 编译的代码示例:

\documentclass{article}
\usepackage{index}
\usepackage[toc,style=long3colheaderborder,footnote,acronym]{glossaries} 

\makeindex 
\makeglossaries


\newglossaryentry{appdomain}{name={application domain}, description={app Domain Description...}}
\newglossaryentry{sample}{name={[has been inserted aaa]},description={testing testing 123}}

\newacronym{aca}{aca}{a contrived acronym}

\begin{document}
\section{this is a test section}
This is the test line... a \gls{sample} \gls{appdomain} 
\index{entry} and \gls{aca}
\thispagestyle{empty}\cleardoublepage

\printglossary[type=main,title={Glossary},toctitle={Glossary}]
\thispagestyle{empty}\cleardoublepage
\printglossary[type=\acronymtype,title={List of Abbreviations},toctitle={List of Abbreviations}]

\printindex
\thispagestyle{empty}\cleardoublepage
\end{document}

我希望 sample 和 appdomain 包含带有描述的脚注或脚注说明:请参阅词汇表

非常感谢,
欧文斯

4

3 回答 3

6

简而言之,使用该glossaries软件包,您无法在第一次使用非首字母缩略词词汇表时获得脚注。

但是,您可以在序言中重新定义一些命令(在 you 之后\usepackage{glossaries})以获得您想要的:

\makeatletter
\renewcommand{\gls@main@displayfirst}[4]{
  #1#4\protect\footnote{#2}
}
\makeatother

但这将是非常脆弱的。

于 2009-11-06T13:59:19.823 回答
2

我认为有一种更简单的方法可以做到这一点。也许它是新的,但

\defglsdisplayfirst[main]{#1#4\protect\footnote{#2}}

似乎达到了完全相同的效果(如果我错了,请纠正我)。请参阅glossaries手册,版本 2.03,第 2.4.1 小节更改文本格式

不幸的是,这些脚注中的命令似乎\gls\autoref不起作用。

于 2011-11-02T09:25:54.330 回答
0

以下是一种很好的技术,可以在脚注中说明定义的位置:

\label{nom} %put this on the page your term appears, so that it can collect page number

\newcommand{\g}{\footnote{For all abbreviations see the glossary on page \pageref{nom}.}}

我从这里找到了这个。

于 2010-11-23T20:03:00.080 回答