I uploaded a tex file to HAL, compiled it via their submission form and noticed that the text continues beyond the bottom margin. I tracked the issue down to the amsart package. How do I fix this?








Output: (page 1 of 1)

enter image description here

  • It works for me... The page is broken after the fifth line of the fifth paragraph; Feb 12, 2020 at 20:42
  • Could it be an encoding issue? Feb 12, 2020 at 20:50
  • what is HAL, can you give a link? Feb 12, 2020 at 20:57
  • Sorry, hal.archives-ouvertes.fr Feb 12, 2020 at 20:58
  • I just tried it there and it worked. I really don't see how encoding would've done this... Also, HAL uses TeXLive 2016 (If I compile \documentclass{article} \begin{document} \pdftexbanner \end{document} there it prints This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) kpathsea version 6.2.2), so anything that works in TL'16 should work there too... Feb 12, 2020 at 21:01

1 Answer 1


I created a new .tex file, copied the MWE to this file, and it compiles perfectly on HAL. The new file was encoded in ANSI. In emacs: undecided-unix.

The .tex file I was uploading also compiles badly when uploaded through another device. So something was wrong with that file itself. It was encoded in UTF-8, with BOM. In emacs: utf-8-with-signature-dos. Interestingly, when I change the documentclass to article in that buggy file, on HAL the output pdf starts with a blank page. So the symptoms vary.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .