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 get the following error on TeXShop when trying to compile:

./thesis.tex:2: LaTeX Error: Missing \begin{document}.

! LaTeX Error: File `scrreprt .cls' not found.

My .tex file looks the following:

\documentclass{scrreprt }


I updated all packages with TeX Live Utility. And when I select the koma-script package in the program, the scrreprt is available.

But still get that error!

share|improve this question
up vote 7 down vote accepted

You need to delete the space at the end of scrreprt, before the closing brace.

You can tell because the system is complaining about not seeing "scrreprt .cls" (note the space).

share|improve this answer

Your Answer


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.