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

I can't set my latex document. it stuck at l.22 \begin{document}. When i type H in the type area under the controle output, it says:

I suspect you have forgotten a }, causing me to read past it when you wanted me to stop. I'll try to recover; but if the error is serious, you'd better type 'E'or 'X' now and fix your file.

I don't know what i can do, because I can not find a missing } somewhere.

Most time i type R, it will run trough it and than the next time it would not stop. But a next time it will.

Most of the time when it does not stop at line 22 it will, later on, at line 126 then it says something like \newpa or something like that. And sometimes not there but than at a other line.

Can someone help me please?

share|improve this question

closed as too localized by Andrew Swann, lockstep, Paul Gaborit, Stefan Kottwitz Mar 4 '13 at 14:13

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Welcome to TeX.SE. IT is difficult to help you without more information. It would be best if you composed a fully compilable MWE including \documentclass and the appropriate packages that shows this error message. But, please try to reduce the size of the MWE -- remove any packages and sections of code that are not necessary to reproduce the problem. – Peter Grill Dec 25 '12 at 17:04
Post the code up here, chances are its a simple typo, perhaps you used a ) instead of a }, who knows.... – Nicholas Hamilton Dec 25 '12 at 17:13
well, i don't know what it can be, if i delete all the things inside the document accpted for the usepackages and the begin and end document it works perfectly. i can delete al the text expeted for the pictures and the tabulars and things but that are about 30 pictures so that is a lot already – Josje Dec 25 '12 at 17:17
it still are 375 lines. the error is still in the document so it is somewere in that... and if i replace all the { for new ones it are 444 and if i replace all the } for newones it are also 444 of them, so i haven't missed one – Josje Dec 25 '12 at 17:34
Its not as simple as counting the {, }, unless you count them very carefully. For instance does you counting account for \{, which should not be counted. Also, there are other things to consider such as the opening { and closing } can not have alignment points (i.e., tabular, array, align, etc) in between, or you can't open an { in the start of an custom environment and close at the end of the environment definition. – Peter Grill Dec 25 '12 at 18:03

Browse other questions tagged or ask your own question.