LaTeX does not compile properly

I use TeXshop, Natbib, Hyperef and two column schemas and I get the following message:

\ pdfendlink turned out to be at a different level of nesting than \ pdfstartlink

\ AtBegShi @Output ... ipout \ box \ AtBeginShipoutBox \ fi \ fi

which prevents compilation of LaTeX. This document compiles without problems when it is "onecolumn", the problem only occurs when it is "twocolumn".

I searched the Internet for solutions, but most of them a few years ago, and identify the problem as being caused by a "long link".

Examples of solutions 1 , 2

I narrowed down the source of the problem as a section that occurs after a two-column wide table. The next section has no links, but when I turn it on, it stops compiling. I have not included code here to replicate the problem that I need to include in my entire document; this only happens when there is a certain interval.

Another link suggesting that this is an obscure error. I can’t apply their suggestion because I can’t find a link to the problem. I just crammed a lot of space and compiled, however this is not quite a solution for a working document.

+7
latex
source share
4 answers

Having the same problem here, and she popped out of nowhere. I wonder if I comment on the hyperref package, it works.

+5
source share

Make a copy of your LaTeX source and start copying the content from it until you have the smallest possible example that still causes this error. If this in itself identifies a problem, submit it here as an answer. If not, add it to the question.

+4
source share

I believe the reason for this error is a two-page citation. An easy test for this is to add some \ vspace at the top of the document to force a page break. This has happened to me several times, and my final decision usually involves rewriting the text to make sure the link to the violation does not cross the page break.

+4
source share
  • Work on understanding decisions. LaTeX is a very technical thing, such as programming, and if you want to use it, you must accept the fact that you are going to get stuck in the brain to think of solutions.

  • The error itself is quite descriptive. Are your nesting levels correct for your /begin{} and /end{} statements? Are all your macros used correctly? View the documentation for the packages you are using.

  • As with programming, when you do not know what is going on, recreate the error with the simplest code that you can use. If this in itself does not tell you a mistake (it often does!), Then post this simplest possible code with your question so that we have at least a small chance to help. Unfortunately, due to the complexity of LaTeX, things like package versions can also be very relevant to the troubleshooting process.

-one
source share

All Articles