TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

First of all, I just want to thanks the people of TeXnicCenter... great application...

I am trying to use the math template in TeXnicCenter, When I compile it, it says missing \begin{document}. After googling, I realised that the enconding is the problem. The recommendation is to change the BOM. I cannot find this option in the editor, the question is how to make this work again.

The extange thing is that it fails only using the template. If I type my own code, there is not problem.

share|improve this question
Welcome to TeX.sx! I guess we need to see the template that triggers the error. – mafp Apr 15 '13 at 22:20
up vote 2 down vote accepted

I'll guess you use Windows? I think the problem is that you use UTF-8 with BOM because you are under MS Windows.

Try the following. Open the file you want to compile in TeXnicCenter then go to File->Save As. In the following Save-Dialog at the bottom you will find a drop down menu with the encoding for the file. Select UTF-8 (without the BOM).

Then try to compile it. BTW, which encoding did you use when you write your own files?

share|improve this answer
Thanks Patrick!! This solved my problem... – Julio Gonzalez-Saenz Apr 15 '13 at 22:19
Hmm, for me saving without BOM is the default … Your answer still useful, though! – Speravir Apr 15 '13 at 22:52

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.