Take the 2-minute tour ×
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.

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! 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

1 Answer 1

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

 
discard

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.