Take the 2-minute tour ×
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 }
\title{Abstract}
\begin{document}
\maketitle

\end{document}

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
add comment

1 Answer

up vote 6 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
add comment

Your Answer

 
discard

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.