英文:
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 usentheorem
with hyperref -
change the loading order of your packages and move
ntheorem
beforebookmark
/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}
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论