TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to compile BPI.tex here because, as you can see, the given compiled file has the lower end of each page cut off. The problem is: I get lots of "undefined control sequence" errors but if I cut the paragraph containing the error, delete aux and log files, quit TexShop and then recompile, I get the same error on the same line even if the line is then blank (since I cut it out).

What is going on here? Is TexShop broken? Why does editing the file not have any effect? And how can I compile this file?

share|improve this question
Please add a minimal working example (MWE) to your question instead of linking to code hosted elsewhere. – Jubobs May 26 '13 at 10:04
@Jubobs The file I'm trying to compile is really long. What should I do? Copy paste the beginning and the end of it? – Matt N. May 26 '13 at 10:20
Nevermind. egreg already answered your question. – Jubobs May 26 '13 at 12:10
up vote 12 down vote accepted

The file is meant to be compiled with amstex rather than LaTeX. Just move the first line after the second one

\input amstex

and use "Plain TeX" as the typesetting engine from the drop down menu

enter image description here

share|improve this answer
You are a lifesaver! It's like magic! Thank you so much! – Matt N. May 26 '13 at 10:22
@MattN. Ages ago I was using amstex myself. ;-) – egreg May 26 '13 at 10:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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