如何在 latex/overleaf` 的描述中添加词汇表编号?
How do I add a glossary number in the description in latex/overleaf`?
我目前正在撰写有关 Overleaf 的报告,我对词汇表有疑问。
这里是词汇表的定义:
\newglossaryentry{vp} {
name= Verification Plan,
description={A verification plan is a list of the procedures and methods to be used for verification} }
我在描述中引用了这个词汇表:
The development phase includes \gls{vp}, creating a verification environment, testbench, and test case development.
现在我的问题是,有没有办法在我的 pdf 中打印一个数字上标作为词汇表条目(在我的例子中,它是 验证计划) 哪个表示词汇表编号?因此,如果在我的词汇表页面中,有 10 个带有定义的单词,并且如果单词 verification plan 是第 7 个单词,那么在我的 pdf 文档中我希望上标为“7”对于单词验证计划如下图:
之所以要这样做,是为了让我的professor/anyreader方便引用,而且,通过这个下标,我想表明这个词已经被定义了在词汇表中。
谢谢!
编辑#1:(请忽略此编辑,参考编辑#2)
根据要求,我添加了一个最小的可重现示例,如下所示。
\makeglossaries
\newglossaryentry{vp}
{
name= Verification Plan,
description={A verification plan is a list of the procedures and methods to be used for verification}
}
\begin{document}
\glsaddall
\setglossarystyle{altlist}
\printglossary
\textbf{Develop}: The develop phase includes \gls{vp}, creating verification environment, testbench and test case development.
\end{document}
编辑#2:这是可编译的代码:
\documentclass{article}
\usepackage{glossaries}
\makeglossaries
\newglossaryentry{vp}
{
name= Verification Plan,
description={A verification plan is a list of the procedures and methods to be used for verification}
}
\begin{document}
%\glsaddall
\setglossarystyle{altlist}
\printglossary
\textbf{Develop}: The develop phase includes \gls{vp}, creating verification environment, testbench and test case development.
\end{document}
Edit#2 产生:
\documentclass{article}
\usepackage[
entrycounter=true
]{glossaries}
\makeglossaries
\newglossaryentry{vp}
{
name= Verification Plan,
description={A verification plan is a list of the procedures and methods to be used for verification}
}
\begin{document}
\glsaddall
\setglossarystyle{altlist}
\printglossary
------
\textbf{Develop}: The develop phase includes \gls{vp}\footnotemark[\glsrefentry{vp}], creating verification environment, testbench and test case development.
\end{document}
我目前正在撰写有关 Overleaf 的报告,我对词汇表有疑问。
这里是词汇表的定义:
\newglossaryentry{vp} {
name= Verification Plan,
description={A verification plan is a list of the procedures and methods to be used for verification} }
我在描述中引用了这个词汇表:
The development phase includes \gls{vp}, creating a verification environment, testbench, and test case development.
现在我的问题是,有没有办法在我的 pdf 中打印一个数字上标作为词汇表条目(在我的例子中,它是 验证计划) 哪个表示词汇表编号?因此,如果在我的词汇表页面中,有 10 个带有定义的单词,并且如果单词 verification plan 是第 7 个单词,那么在我的 pdf 文档中我希望上标为“7”对于单词验证计划如下图:
之所以要这样做,是为了让我的professor/anyreader方便引用,而且,通过这个下标,我想表明这个词已经被定义了在词汇表中。
谢谢!
编辑#1:(请忽略此编辑,参考编辑#2) 根据要求,我添加了一个最小的可重现示例,如下所示。
\makeglossaries
\newglossaryentry{vp}
{
name= Verification Plan,
description={A verification plan is a list of the procedures and methods to be used for verification}
}
\begin{document}
\glsaddall
\setglossarystyle{altlist}
\printglossary
\textbf{Develop}: The develop phase includes \gls{vp}, creating verification environment, testbench and test case development.
\end{document}
编辑#2:这是可编译的代码:
\documentclass{article}
\usepackage{glossaries}
\makeglossaries
\newglossaryentry{vp}
{
name= Verification Plan,
description={A verification plan is a list of the procedures and methods to be used for verification}
}
\begin{document}
%\glsaddall
\setglossarystyle{altlist}
\printglossary
\textbf{Develop}: The develop phase includes \gls{vp}, creating verification environment, testbench and test case development.
\end{document}
Edit#2 产生:
\documentclass{article}
\usepackage[
entrycounter=true
]{glossaries}
\makeglossaries
\newglossaryentry{vp}
{
name= Verification Plan,
description={A verification plan is a list of the procedures and methods to be used for verification}
}
\begin{document}
\glsaddall
\setglossarystyle{altlist}
\printglossary
------
\textbf{Develop}: The develop phase includes \gls{vp}\footnotemark[\glsrefentry{vp}], creating verification environment, testbench and test case development.
\end{document}