I found the problem. The string "\begin{document}" was present in a comment, too, which confused the script... So I just removed that comment and now it works.
Balint Miklos wrote:
Hi,
I have difficulties with the Latex watch function. When I start the Latex watch I get "Error: No \begin{document} found". Normal compilation works just fine, I have used Latex watch with other latex documents on the same installation.... Does anyone have a suggestion how I can fix this? The problem occurs when I try to use the following template: http://www.siggraph.org/publications/instructions/acmsiggraph.zip
Thank you very much in advance for any tip, Balint