Reputation: 15286
I'm using TeXshop, Natbib, Hyperef and two-column layout, and I am getting the following message:
\pdfendlink ended up in different nesting level than \pdfstartlink
\AtBegShi@Output ...ipout \box \AtBeginShipoutBox \fi \fi
which prevents LaTeX from compiling. This document compiles without problem when it is 'onecolumn', the problem only starts when it is 'twocolumn'.
I've searched online for solutions, but most of them are from a few years ago, and identify the problem as being caused by a 'long reference'.
I've narrowed down the source of the problem to be a section that occurs after a table that is two columns wide. The section that follows does not have any references, but when I include it, it stops compiling. I have not included code here as to replicate the problem I need to include my entire document; it only occurs when there is a certain spacing.
Another reference, suggesting that is an obscure bug. I cannot apply their suggestion as I cannot locate the problem reference. I have, just shoved in a lot of spaces and it does compile, however this not really a solution for a working document.
Upvotes: 7
Views: 8787
Reputation: 1
I believe a common cause for this error is a citation that is split across two pages. An easy test for this is to add some \vspace at the top of your document to force different page breaks. This has happened to me a few times, and my final solution typically involves rewriting the text to ensure that the offending citation does not cross the page break.
Upvotes: 5
Reputation: 1
Having the same problem here and it popped-up from nowhere. Interestingly if I comment out the hyperref package it works.
Upvotes: 5
Reputation: 26932
Make a copy of your LaTeX source and start ripping the content out of it until you have the smallest possible example that still causes this error. If that alone reveals the problem, post it here as an answer. If it doesn't, append it to the question.
Upvotes: 4
Reputation: 44066
Work on understanding the solutions. LaTeX is a very technical thing, like programming, and if you want to use it you have to accept the fact that you're going to be stuck using your brain to think through solutions.
The error itself is pretty descriptive. Are your levels of nesting for your /begin{}
and /end{}
statements all lined up properly? All the macros that you're using are being used correctly? Review the documentation for the packages that you're using.
Like programming, when you're not sure what's going on, recreate the error with the simplest possible code that you can use. If that on its own does not already tell you the error (it frequently does!), then post that simplest possible code with your question so that we at least have some small chance to help. Sadly, due to the complexity of LaTeX, things like package versions may also be quite relevant to the troubleshooting process.
Upvotes: -2