[英]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 個帶有定義的單詞,並且單詞驗證計划是第 7 個單詞,那么在我的 pdf 文檔中,我希望單詞驗證計划的上標為“7”,如下所示:
我想這樣做的原因是為了讓我的教授/任何讀者發現它很容易參考,此外,通過使用這個下標,我想表明這個詞已經在詞匯表中定義了。
謝謝!
編輯#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}
編輯#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}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.