抑制具有空目标的链接 \thref

huangapple go评论75阅读模式
英文:

Suppressing link with empty target \thref

问题

最后一行出现的警告是 Suppressing link with empty target。到目前为止,我尝试更改备注的编号模式,但没有取得任何进展。

英文:

I am writing a document in LaTEX and getting a warning that I seem not to bee able to get rid of:

\documentclass[12pt]{report}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{natbib}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{subfig}
\usepackage{float}
\usepackage[english]{babel}
\usepackage{bookmark}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{hyperref}
\usepackage[amsmath,thref]{ntheorem}
\hypersetup{
    colorlinks,
    citecolor=black,
    filecolor=black,
    linkcolor=black,
    urlcolor=black
}
% Usefull Shortcuts and other refs
\theoremstyle{break}
\newtheorem{definition}{Definition}[section]
\newtheorem{remark}{Remark}[section]
\begin{document}
    \begin{remark}[Notation: Mode Orderig and Tensor Contraction]\label{rem:MOTC}
        Consider two tensors $A_{ack},B_{dkb}$ then the expressions
        \begin{equation*}
            C_{abcd} = A_{ack}B_{dkb}
        \end{equation*}
        and
        \begin{equation*}
            C_{abcd} = ((A_{ack}(B_{dkb})^{T_{1,2}})^{T_{2,4}})^{T_{3,4}}
        \end{equation*}
        are equivalent.    
    \end{remark}
    The apparent inconsistence can be solved by impling the application of the Transposition Operation,like in \thref{rem:MOTC}.
\end{document}

The last line throws the warning Suppressing link with empty target.
I have sofar tried to change the numbering pattern of remarks but without any progress.

答案1

得分: 2

以下是代码部分的中文翻译:

两个问题:

  • 如果要在ntheorem中使用hyperref,你遗漏了hyperref选项。

  • 改变你的包加载顺序,并将ntheorem移到bookmark/hyperref之前。

\documentclass[12pt]{report}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{natbib}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{subfig}
\usepackage{float}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage[amsmath,thref,hyperref]{ntheorem}

% 有用的快捷方式和其他引用
\theoremstyle{break}
\newtheorem{definition}{Definition}[section]
newtheorem{remark}{Remark}[section]
\usepackage{bookmark}
\usepackage{hyperref}
\hypersetup{
    colorlinks,
    citecolor=black,
    filecolor=black,
    linkcolor=black,
    urlcolor=black
}
\begin{document}
    \begin{remark}[Notation: Mode Ordering and Tensor Contraction]\label{rem:MOTC}
        考虑两个张量$A_{ack},B_{dkb}$,那么以下表达式
        \begin{equation*}
            C_{abcd} = A_{ack}B_{dkb}
        \end{equation*}
        \begin{equation*}
            C_{abcd} = ((A_{ack}(B_{dkb})^{T_{1,2}})^{T_{2,4}})^{T_{3,4}}
        \end{equation*}
        是等价的。
    </begin{remark}
    这种明显的不一致性可以通过应用转置操作来解决,就像在\thref{rem:MOTC}中一样。
    \end{document}

希望这对你有帮助。如果有任何问题,请随时告诉我。

英文:

Two problems:

  • you are missing the hyperref option if you want to use ntheorem with hyperref

  • change the loading order of your packages and move ntheorem before bookmark/hyperref


\documentclass[12pt]{report}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{natbib}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{subfig}
\usepackage{float}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage[amsmath,thref,hyperref]{ntheorem}

% Usefull Shortcuts and other refs
\theoremstyle{break}
\newtheorem{definition}{Definition}[section]
\newtheorem{remark}{Remark}[section]
\usepackage{bookmark}
\usepackage{hyperref}
\hypersetup{
    colorlinks,
    citecolor=black,
    filecolor=black,
    linkcolor=black,
    urlcolor=black
}
\begin{document}
    \begin{remark}[Notation: Mode Orderig and Tensor Contraction]\label{rem:MOTC}
        Consider two tensors $A_{ack},B_{dkb}$ then the expressions
        \begin{equation*}
            C_{abcd} = A_{ack}B_{dkb}
        \end{equation*}
        and
        \begin{equation*}
            C_{abcd} = ((A_{ack}(B_{dkb})^{T_{1,2}})^{T_{2,4}})^{T_{3,4}}
        \end{equation*}
        are equivalent.    
    \end{remark}
    The apparent inconsistence can be solved by impling the application of the Transposition Operation, like in \thref{rem:MOTC}.
\end{document}

抑制具有空目标的链接 \thref

huangapple
  • 本文由 发表于 2023年3月7日 20:54:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/75662239.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定