# Cannot use Math template in TeXnicCenter

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.

-
Welcome to TeX.sx! Can you tell us the name of the template or better give us a link? Please show us the complete error message. –  Kurt Apr 15 '13 at 22:04
Welcome to TeX.sx! I guess we need to see the template that triggers the error. –  mafp Apr 15 '13 at 22:20
add comment

## 1 Answer

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?

-
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
add comment