0

I am using TEXstudio. I am getting the following error

Environment frontmatter undefined. \begin{frontmatter}

4
  • 2
    Which document class do you use?
    – Bernard
    Commented Sep 7, 2014 at 12:57
  • May be you should try \frontmatter!
    – user11232
    Commented Sep 7, 2014 at 13:04
  • Environment definitions are not related with any editor, even TeXstudio.
    – Sigur
    Commented Sep 7, 2014 at 15:58
  • I am using article document class Commented Sep 8, 2014 at 5:47

1 Answer 1

2

If you are using the KoMa-Skript-class scrbook frontmatter is not an environment.

Like \mainmatter and \backmatter it is a command, you can think of it as a button, that activates the correct settings for everything that follows.

A small example would look like this:

\documentclass{scrbook}

\usepackage{biblatex}
\addbibresource{example.bib}


\begin{document}

\frontmatter
\maketitle
\tableofcontents

\mainmatter

\chapter{foo}
Bla
\cite{something}
\chapter{bar}

\appendix

\chapter{first chapter of appendix}

\backmatter
\printbibliography

\end{document}

You must log in to answer this question.

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