首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么hyperref包会引起\footnotemark的问题?

为什么hyperref包会引起\footnotemark的问题?
EN

Stack Overflow用户
提问于 2022-01-12 09:58:11
回答 1查看 413关注 0票数 1

我最近发布了一个问题,寻求帮助以一种特定的方式链接一个术语表,这个问题得到了解决,这要归功于@samcarter_is_at_topanswers.xyz的帮助。url to the post

现在,继续执行建议,在我的项目中使用\hyperref包,这会导致\footnotemark[]的使用出现问题。我已经附上了下面的截图和一个MWE。

截图:

使用我得到了错误:

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

MWE:

代码语言:javascript
复制
\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.

任何解决方案/建议都将不胜感激!提前感谢!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-01-12 10:34:55

对于hyperref\glsrefentry{...}宏是到缩略语列表的链接,这与将其用作脚注相冲突。您可以使用例如\textsuperscript{...}作为解决办法:

代码语言:javascript
复制
\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}

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70679547

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档