I am using TEXstudio. I am getting the following error

Environment frontmatter undefined. \begin{frontmatter}

  • 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


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:








\chapter{first chapter of appendix}



You must log in to answer this question.

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