我正在使用 MNRAS 类https://www.ctan.org/tex-archive/macros/latex/contrib/mnras?lang=en,而且我的参考文献的行为非常奇怪。
我正在使用 BibTex,有时文件可以正确编译,有时则不行。例如。我在文本中间有一个表格(带有交叉引用),如果使用:
\begin{table}
\begin{tabular}
\begin{tabular}
\end{table}
代码正确遵循并且所有参考均出现。
如果我更改为带星号的版本:
\begin{table*}
\begin{tabular}
\begin{tabular}
\end{table*}
然后,我的所有参考资料都消失了,并被问号符号取代了!!!
是什么原因造成此情况?
編輯:
\begin{table}
\centering
\caption{My caption}
\label{tab:a}
\begin{tabular}{ccccccc}
%HERE GOES THE TABLE
\end{tabular}
\end{table}
编辑2:
我注意到导致该问题的原因并不是某个特定的表。如果我删除或移动表,就会出现错误:
“pdftex 错误 \pdfendlink 最终位于与 > \pdfstartlink 不同的嵌套级别”
这是我的序言:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Basic setup. Most papers should leave these options alone.
\documentclass[a4paper,fleqn,usenatbib]{mnras}
% MNRAS is set in Times font. If you don't have this installed (most LaTeX
% installations will be fine) or prefer the old Computer Modern fonts, comment
% out the following line
\usepackage{newtxtext,newtxmath}
% Depending on your LaTeX fonts installation, you might get better results with one of these:
%\usepackage{mathptmx}
%\usepackage{txfonts}
% Use vector fonts, so it zooms properly in on-screen viewing software
% Don't change these lines unless you know what you are doing
\usepackage[T1]{fontenc}
\usepackage{ae,aecompl}
%%%%% AUTHORS - PLACE YOUR OWN PACKAGES HERE %%%%%
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{slantsc}
\usepackage{caption}
\usepackage[T1]{fontenc}
\setlength{\abovecaptionskip}{2pt plus 2pt minus 2pt}
\setlength{\belowcaptionskip}{2pt plus 2pt minus 2pt}
\renewcommand{\thetable}{\Roman{table}}
% Only include extra packages if you really need them. Common packages are:
\usepackage{graphicx} % Including figure files
\usepackage{amsmath} % Advanced maths commands
\usepackage{amssymb} % Extra maths symbols
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%% AUTHORS - PLACE YOUR OWN COMMANDS HERE %%%%%
\newcommand{\noop}[1]{}