[Tex/LaTex] Error with \documentclass[10pt]{article}


I have problems with this code and I have no idea how to fix it:



\noindent \textbf{ABSTRACT}

\noindent \textbf{}


\vspace{3pt} \noindent
\parbox{514pt} {\raggedright  \vspace{3pt}
TEXT \textbf{. } TEXT } \\



The error that I got is this:

Command Line:   latex.exe --src --interaction=errorstopmode --synctex=-1 "file.tex"
Startup Folder: C:\Users\*****

This is pdfTeX, Version 3.14159265-2.6-1.40.16 (MiKTeX 2.9 64-bit)
entering extended mode
LaTeX2e <2015/01/01> patch level 2
Babel <3.9m> and hyphenation patterns for 1 languages loaded.

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.

l.1 ï
? x
No pages of output.
Transcript written on file.log.

LaTeX Compilation Report (Pages: 0)

Errors: 1 Warnings: 0 Bad Boxes: 0

Any help is appreciated.

Thanks in advance

Best Answer

you have a UTF-8 BOM sequence at the start of the file



or if (mis) interpreted as latin1, the three characters

 ï  » ¿

best would be to use an editor that allows you to save without the byte order mark.

Related Question