1

How to have a title with scrbook?

I have added usepackage{abstract} but receive the error environment abstract undefined.

I try to compile with LuaHBTeX 1.12.0 the following reduced example:

\documentclass[a4paper,10pt,notitlepage]{scrbook}
\usepackage{fontspec}
\usepackage[ngerman]{babel}
\usepackage{abstract}
\usepackage[colorlinks]{hyperref}

\title{01blog1 titel Mein erster Blog} \author{AUF} \date{}

\begin{document}

\maketitle
\begin{abstract}01blog1 abstract Ein Blog ohne Sinn auf Deutsch\end{abstract}

\section{01blog1 level1 Ein erster Abschnitt} 

Ein Blog ohne Sinn und dem einzigen Zweck, zu testen, wie ein Blog in
ein PDF umgewandelt wird.

\end{document}

user855443
  • 1,120
  • Book-type document classes usually don't feature an abstract. – Mico Oct 12 '21 at 15:51
  • This is why I think I have to add the 'usepackage{abstract}. – user855443 Oct 12 '21 at 16:02
  • You are using scrbook which is very different from scrartcl. For instance, you should start with a \chapter before using \section. Just use \chapter{Abstract} after \frontmatter and before \mainmatter. – egreg Oct 12 '21 at 20:33

1 Answers1

1

Perusing other answers I found the suggestion for a solution with

\newenvironment{abstract}{}{}
\usepackage{abstract}

i.e. the environment must be defined first.

Not very obvious, but problem solved.

Werner
  • 603,163
user855443
  • 1,120
  • Your link doesn't work. And I'm suspicious that the ordering of those would matter (assuming it solve the problem). – Teepeemm Oct 12 '21 at 16:09