词汇表包和LaTeX中的脚注

ova*_*nes 5 latex footnotes glossaries

我目前卡住了,有两个单独的词汇表:main&acronyms.Acronyms术语表在文本中首次使用时打印脚注,但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}
Run Code Online (Sandbox Code Playgroud)

我想样本和应用程序域包含脚注和说明或脚注说明:请参阅词汇表

非常感谢,
Ovanes

Rup*_*ash 6

简而言之,glossaries对于非首字母缩写词汇表,首次使用时,您无法获得脚注.

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

\makeatletter
\renewcommand{\gls@main@displayfirst}[4]{
  #1#4\protect\footnote{#2}
}
\makeatother
Run Code Online (Sandbox Code Playgroud)

但那将是非常脆弱的.