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?
\documentclass
so that those trying to help don't have to recreate it. – Peter Grill Oct 9 '11 at 3:58