gpt4 book ai didi

latex - LaTeX 中的词汇表包和脚注

转载 作者:行者123 更新时间:2023-12-04 18:16:54 29 4
gpt4 key购买 nike

我目前卡住了,有两个单独的词汇表: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}

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

非常感谢,
欧文斯

最佳答案

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

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

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

但这将是非常脆弱的。

关于latex - LaTeX 中的词汇表包和脚注,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1633016/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com