为什么 hyperref 包导致 \footnotemark 出现问题?

Why is hyperref package causing an issue with \footnotemark?

我最近发布了一个问题,寻求以特定方式链接词汇表的帮助,并已解决,感谢@samcarter_is_at_topanswers.xyz 帮助我。

现在,继续这些建议,我在我的项目中使用了 \hyperref 包,这导致了使用 \footnotemark[] 的问题。我附上了下面的屏幕截图以及 MWE。

截图:

使用 hyperref 包 我得到错误:

没有 hyperref 包 我得到没有错误的输出:

MWE :

\documentclass{article}
\usepackage[utf8]{inputenc}  % Input encoding (this file): 8 bit unicode. Default by most text editors
\usepackage[T1]{fontenc}     % Output encoding (pdf file)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Packages used in the example
\usepackage[dvipsnames]{xcolor}
\usepackage{graphicx}   % Included graphics and some resizable boxes
\usepackage{url}        % nice urls with line breaks
\usepackage{lipsum}     % nonsense text blocks
\usepackage{float}
\usepackage{subcaption}
\usepackage{multicol}
\usepackage{amssymb}
\usepackage{amsmath}
 \usepackage{biblatex}
\usepackage{pgfplots}
\usepackage{tikz}

\usepackage[nonumberlist,acronym,
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}
}
\newacronym{ml}{ML}{Machine Learning}

%%UNCOMMENT THIS AND THERE IS AN ERROR WITH GLOSSARY
%\usepackage{hyperref}
%\hypersetup{
%    citecolor=black,
%    colorlinks=false, %set true if you want colored links
%    linktoc=all,     %set to all if you want both sections and subsections linked
%    linkcolor=black,  %choose some color if you want links to stand out
%}

\begin{document}

%\glsaddall
\setglossarystyle{altlist}
\printglossary
\printglossary[type=\acronymtype]

------

  \textbf{Develop}: The develop phase includes \gls{vp}\footnotemark[\glsrefentry{vp}], creating verification environment, testbench and test case development. \acrfull{ml}


\end{document}

简而言之,我希望通过使用 \footnotemark[\glsrefentry....] 对我的词汇表进行超链接并对其进行引用。

任何 solution/advice 将不胜感激!提前致谢!

对于 hyperref\glsrefentry{...} 宏是您的首字母缩略词列表的 link,这与将其用作脚注标记相冲突。你可以使用例如\textsuperscript{...} 作为解决方法:

\documentclass{article}
\usepackage[utf8]{inputenc}  % Input encoding (this file): 8 bit unicode. Default by most text editors
\usepackage[T1]{fontenc}     % Output encoding (pdf file)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Packages used in the example
\usepackage[dvipsnames]{xcolor}
\usepackage{graphicx}   % Included graphics and some resizable boxes
\usepackage{url}        % nice urls with line breaks
\usepackage{lipsum}     % nonsense text blocks
\usepackage{float}
\usepackage{subcaption}
\usepackage{multicol}
\usepackage{amssymb}
\usepackage{amsmath}
 \usepackage{biblatex}
\usepackage{pgfplots}
\usepackage{tikz}

\usepackage[nonumberlist,acronym,
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}
}
\newacronym{ml}{ML}{Machine Learning}

%UNCOMMENT THIS AND THERE IS AN ERROR WITH GLOSSARY
\usepackage{hyperref}
\hypersetup{
    citecolor=black,
    colorlinks=false, %set true if you want colored links
    linktoc=all,     %set to all if you want both sections and subsections linked
    linkcolor=black,  %choose some color if you want links to stand out
}

\begin{document}

\glsaddall
\setglossarystyle{altlist}
\printglossary
\printglossary[type=\acronymtype]

------

  \textbf{Develop}: The develop phase includes \gls{vp}\textsuperscript{\glsrefentry{vp}}, creating verification environment, testbench and test case development. \acrfull{ml}


\end{document}