1

I am quite new to Latex and using the cleanthesis format, and I now get an error that I am missing \begin{document}, however clearly defined this in the main document and do know where the error comes from. Can someone help me out?

This is my main file code:

\documentclass[%
    paper=A4,                   % paper size --> A4 is default in Germany
    twoside=true,               % onesite or twoside printing
    %openright,                 % doublepage cleaning ends up right side
    parskip=full,               % spacing value / method for paragraphs
    chapterprefix=true,         % prefix for chapter marks
    11pt,                       % font size
    headings=normal,            % size of headings
    bibliography=totoc,         % include bib in toc
    listof=totoc,               % include listof entries in toc
    titlepage=on,               % own page for each title page
    captions=tableabove,        % display table captions above the float env
    draft=false,                % value for draft version
    table{xcolor}               % added this
]{scrreprt}%

% **************************************************
% Debug LaTeX Information
% **************************************************
%\listfiles


% **************************************************
% Load and Configure Packages
% **************************************************
\usepackage[utf8]{inputenc}     % defines file's character encoding
\usepackage[english]{babel} % babel system, adjust the language of the content
\usepackage{enumitem}

\usepackage[                    % clean thesis style
    figuresep=colon,%
    sansserif=false,%
    hangfigurecaption=false,%
    hangsection=true,%
    hangsubsection=true,%
    colorize=full,%
    colortheme=bluemagenta,%
% LLT: Use biber if using UTF8 encoding
%   bibsys=bibtex,%
    bibsys=biber,%
    bibfile=bib-refs,%
    bibstyle=alphabetic,%
]{cleanthesis}

\hypersetup{                    % setup the hyperref-package options
    pdftitle={\thesisTitle},    %   - title (PDF meta)
    pdfsubject={\thesisSubject},%   - subject (PDF meta)
    pdfauthor={\thesisName},    %   - author (PDF meta)
    plainpages=false,           %   -
    colorlinks=false,           %   - colorize links?
    pdfborder={0 0 0},          %   -
    breaklinks=true,            %   - allow line break inside links
    bookmarksnumbered=true,     %
    bookmarksopen=true          %
}

% **************************************************
% Document CONTENT
% **************************************************



% --------------------------
% rename document parts
% --------------------------
\renewcaptionname{english}{\figurename}{Fig.}
\renewcaptionname{english}{\tablename}{Tab.}

% --------------------------
% Front matter
% --------------------------
\pagenumbering{roman}           % roman page numbing (invisible for empty page style)
\pagestyle{empty}               % no header or footers


\begin{document}
...
\end{document

1 Answer 1

2

If you trim this down to the minimum needed to demonstrate the error, you get

\documentclass[table{xcolor}]{scrreprt}
\begin{document}
...
\end{document}

The problem here is the table{xcolor} option, which is not valid. You presumably meant to use just table, e.g.

\documentclass[table]{scrreprt}
\begin{document}
...
\end{document}

This way the table option will be passed to the xcolor package, if that is loaded later in the preamble.

1
  • ah this worked! thanks so much :)) Commented May 29, 2021 at 9:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .