I am using TEX editor and have written the following code:

\documentclass[10  pt,a4paper,twoside,reqno]{amsart} 
\textwidth = 12.5 cm 
\textheight = 20 cm 
\topmargin = 0.5 cm 
\oddsidemargin = 1 cm 
\evensidemargin = 1 cm 
\title{Some Title}
\author{My Name}
\date{July 25, 2015}
\abstract{Some text....
Some text.....


When I click "Quick Build" I get the following error ! You can't use `\end' in internal vertical mode. on Line 27 (Line containing \end{document}). Please explain why does this error occur and how should I got about fixing it.


The abstract for an amsart document should be given in environment for


Given as just \abstract, TeX is collecting a box, and you can't end the run the document in that situation. As there's no \end{abstract} you never close the box properly.


The same error occurs if you by accident delete or forget to close a curly bracket


Such as in this example

\label{This is a caption after which you forgot to close the bracket, exactly here -->
  • This code produces the error Paragraph ended before \label was complete. That's not the same as You can't use \end in internal vertical mode. – campa Oct 17 '20 at 14:33
  • In my case it did produce the error "You can't use \end in internal vertical mode." That's why I ended up here in the first place. – mrk Oct 18 '20 at 6:43

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.