I just removed the default Ubuntu TexLive 2009 installation and installed TexLive 2011 using install-tl. However, now I am facing problems with the amsart and algorithm2e packages. Specifically, when I compile a file with
the following text:
\documentclass[twoside]{amsart}
\usepackage{algorithm2e}
\begin{document}
This is a test document.
\end{document}
rather than
\documentclass{article}
\usepackage{algorithm2e}
\begin{document}
This is a test document.
\end{document}
then the PDF output produced by pdflatex (or the dvi output produced by latex) contains the following text on the first page (and half of the first page disappears: it is as if this text pushes everything on the first page down).
La-TeX Error:Missing document See the LaTeX manual or LaTeX Companion for >explanation.You’re in trouble here. Try typing ¡re-turn¿ to proceed.If that doesn’t work, type X ¡return¿ to quit.1111111
This text disappears if I use the article style instead, or if I remove the algorithm2e package with amsart. Notice that this text does not
appear as a console error message: the compilation shows no errors. This actually occurs at the top of the first page of the output pdf (or dvi) file. In fact, although I put the message in a more human readable form above, it actually contains several line breaks in between words; in particular, almost all the hyphens in the output above are followed by a line break.
Is this a documented problem with TexLive? What could be the reasons for this happening? Is there a workaround?
\documentclassso that those trying to help don't have to recreate it. – Peter Grill Oct 09 '11 at 03:58amsartversion and it compiles for me. Are you perhaps also loadingnatbib(as that has to be loaded before thealgorithm2epackage). – Peter Grill Oct 09 '11 at 04:15amsartexample. It compiled without error, but the PDF output contained an error message. Thearticleexample, or theamsartexample with thealgorithm2epackage removed produces correct output. Also, I thing I did not emphasize enough that this problem was not present in Texlive 2009 (which ships with Ubuntu) and it occurred only when I shifted to Texlive 2011. – Piyush Oct 09 '11 at 04:16amsartexample with thealgorithm2e..." in my post above should be "...amsartexample without thealgorithm2e..." – Piyush Oct 09 '11 at 04:24twosidedocumentclass option; similar problem on Windows for me. – Werner Oct 09 '11 at 04:32