3

currently, LaTeX drives me wild on a very weird

"Something is wrong - perhaps a missing item"

It happens in line 3 of the following document, although it only imports the scrpage2-package. Commenting the line doesn't even fix it - the same error appears. Any clues what could be the reason of this weird error?

\documentclass[oneside,12pt]{scrartcl}
\usepackage[ngerman]{babel} %Deutsche Sprachunterstützung
\usepackage{scrpage2} %Kopf- und Fußzeilen
\usepackage[utf8]{inputenc} %Umlaute
\usepackage{tabularx}
\usepackage{dramatist}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{tcolorbox}
%\pagestyle{scrheadings}

\begin{document}
\title{Szene 12 \\ TenSing Theaterskript}
\author{Lukas Rose}
\date{2016}
\maketitle

\tableofcontents

\renewcommand{\casttitlename}{Personen}
\renewcommand{\actname}{Akt}
\renewcommand{\scenename}{Szene}
\renewcommand{\casttitlefont}{\scshape \bf \LARGE}
\renewcommand{\scenenamefont}{\scshape \LARGE}
\renewcommand{\printscenenum}{\scenenumfont \thescene}
\renewcommand{\printscenetitle}[1]{\scenetitlefont \addcontentsline{toc}{section}{Banane} #1}

\begin{CharacterGroup}{Omas}
\GCharacter{Eine/r Alte/r}{Eine/r Alte/r}{hb}
\end{CharacterGroup}

\newcommand{\ac}[1]{\item\begin{tcolorbox}[title=\hb,colframe=Red]#1\end{tcolorbox}}

\DramPer

\setcounter{scene}{11}
\scene{}
\StageDir{}

\begin{drama}
\ac {\direct{Banane} Hallo! Ich kann sprechen!}
\end{drama}
\end{document}
5
  • 1
    If I remove \scene it works...
    – Rico
    Jan 2, 2016 at 16:51
  • 1
    Your dramatist package is creating a toc entry for chapter. This won't work with an article class, but you can use \documentclass[oneside,12pt]{scrreprt} Jan 2, 2016 at 16:54
  • Works for me. Should have seen this earlier :D
    – Rico
    Jan 2, 2016 at 16:56
  • But I've always been using the dramatist package with KOMA Script article class... How can this be?
    – LukeLR
    Jan 2, 2016 at 17:41
  • In my case, which comes from copypasting the body of a paper in another one with a different preamble, the error was caused by a missing \usepackage{enumitem}. Apr 29, 2018 at 13:39

2 Answers 2

4

You are using chapter level constructs in the table of contents but the article class does not have chapters, use report:

\documentclass[oneside,12pt]{scrreprt}
\usepackage[ngerman]{babel} %Deutsche Sprachunterstützung
\usepackage{scrpage2} %Kopf- und Fußzeilen
\usepackage[utf8]{inputenc} %Umlaute
\usepackage{tabularx}
\usepackage{dramatist}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{tcolorbox}
%\pagestyle{scrheadings}


\begin{document}
\title{Szene 12 \\ TenSing Theaterskript}
\author{Lukas Rose}
\date{2016}
\maketitle


\tableofcontents

\renewcommand{\casttitlename}{Personen}
\renewcommand{\actname}{Akt}
\renewcommand{\scenename}{Szene}
s\renewcommand{\casttitlefont}{\scshape \bfseries \LARGE}
\renewcommand{\scenenamefont}{\scshape \LARGE}
\renewcommand{\printscenenum}{\scenenumfont \thescene}
\renewcommand{\printscenetitle}[1]{\scenetitlefont \addcontentsline{toc}{section}{Banane} #1}

\begin{CharacterGroup}{Omas}
\GCharacter{Eine/r Alte/r}{Eine/r Alte/r}{hb}
\end{CharacterGroup}

\newcommand{\ac}[1]{\item\begin{tcolorbox}[title=\hb,colframe=Red]#1\end{tcolorbox}}

\DramPer

\setcounter{scene}{11}
\scene{}
\StageDir{}

\begin{drama}
\ac {\direct{Banane} Hallo! Ich kann sprechen!}
\end{drama}
\end{document}
3

Your document records a chapter entry in the .toc file, and this confuses the document class scrartcl. The document compiles without error if using class scrbook.

You must log in to answer this question.

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