Sign up ×
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.

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

1 Answer 1

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.