I am using the MNRAS class https://www.ctan.org/tex-archive/macros/latex/contrib/mnras?lang=en, and I have a very strange behaviour with my references.

I am using BibTex, and some times the file compiles correctly and some other doesn't. For example. I have a table in the middle of the text (with a cross-reference), and if is use:



the code complies correctly and all the reference appear.

If I change to the starred version:



then, all my references disappear and are replaced with question mark symbols!!!

What can be causing this?


\caption{My caption}


I noticed that is not the table in particular that causes the issue. If I remove the table or move it, it get the error:

"pdftex Error \pdfendlink ended up in different nesting level than > \pdfstartlink"

This is my preamble:

% Basic setup. Most papers should leave these options alone.

% 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
% Depending on your LaTeX fonts installation, you might get better results with one of these:

% Use vector fonts, so it zooms properly in on-screen viewing software
% Don't change these lines unless you know what you are doing


\setlength{\abovecaptionskip}{2pt plus 2pt minus 2pt}
\setlength{\belowcaptionskip}{2pt plus 2pt minus 2pt}

% 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



  • 1
    Where in the table or table* environment does the citation command occur? In the caption, or somewhere else? Please augment your code snippets to show an actual citation command. – Mico Jun 11 '15 at 18:50
  • For the error "! pdfTeX error (ext4): \pdfendlink ended up in different nesting level than \pdfstartlink.", see the answer, which I have written today. – Heiko Oberdiek Jun 11 '15 at 19:19
  • Thanks @HeikoOberdiek ! I'm not very technical and latex, but your solution including \null\vfill\newpage and \null\kern.95\textheight seem to work, but the document end up with a missive white space between the text (The figures and tables are forced to be placed beginning in page number 3). It seems to be a problem with the float positioning of the tables and figures. I tried to use \usepackage{float} with \begin{table*}[H], to position the within the text, but it doesn't work, the table is placed at the top of the page and a [H] appears as if it was text. Any idea on how to fix this? – Jemme Jun 11 '15 at 20:43
  • @Jemme \null\vfill\newpage\null\kern.95\textheight is not a solution. It is part of the MWE to move the link at the page border. If you want to try a solution, then you can start with the latest code block in my answer about replacing \box with \unvbox. But without a MWE and an unclear problem description, it is only a shot in the dark. – Heiko Oberdiek Jun 11 '15 at 21:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.