My document isn't compiling anymore as soon as I use a fraction as fontsize in \documentclass[fontsize=10.5pt]{scrartcl}. Compilation breaks at \usepackage[onehalfspacing]{setspace} with the error message

Missing \begin{document}.
  • You need package scrhack as well.
    – Johannes_B
    Dec 27 '15 at 12:12

You need to load package scrhack in order to get onehalfspacing to work with non-integr font sizes.


    \KOMAoptions{fontsize=10pt} M \par M &
    M  \par M&
    \KOMAoptions{fontsize=11pt}M  \par M
  • this doesn't compile and brings up the same error message at line 6: Missing \begin{document}. \begin Dec 28 '15 at 8:00
  • @user3105453 If this would not compile, i wouldn't have posted it as an answer. Do you have an up to date TeX distribution?
    – Johannes_B
    Dec 28 '15 at 8:43
  • I just updated from TeX Live 2014 to 2015 and now it's compiling without errors, thanks. The answer below, however, works even with older distributions. Dec 28 '15 at 11:41

Instead of \usepackage[onehalfspacing]{setspace} simply use these lines:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.