GeneralUndefined control sequence \frontmatter

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
nitrogen28
Posts: 12
Joined: Tue Dec 16, 2008 1:20 am

Undefined control sequence \frontmatter

Post by nitrogen28 »

Hi,
I'm new to this Community and LaTeX but maybe someone could help me. I already did some hours research on what the problem could be but somehow I just don't get it.
\documentclass[12pt, a4paper ]{scrreprt}
\usepackage{geometry}
\usepackage{setspace}

\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
\usepackage[applemac]{inputenc}
\usepackage[ngerman]{babel}
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}

\author{nitroge28, ----}
\title{B......\\ \bigskip
{\.... }}



\date{Jänner 2009}
\begin{document}
\frontmatter

\maketitle
\tableofcontents
\mainmatter

\chapter{...}
\chapter{...}
\section{..}
\subsection{...}

\subsection{....}
\section{...}
\chapter{..}


\backmatter
\end{document}
Every time I try to implement the \frontmatter and others I get the "Undefined control sequence " error on it.
Can you help?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Re: Undefined control sequence \frontmatter

Post by Juanjo »

\frontmatter, \mainmatter and \backmatter are only defined in book-like classes, not in article nor in report. Consider if, in your case, it is convenient to move to the book or scrbook class.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Undefined control sequence \frontmatter

Post by localghost »

Looking at the way you express the date, I suggest to try the naustrian option for the babel package instead of ngerman. For more information about that refer to the manual.


Best regards and welcome to the board
Thorsten¹
nitrogen28
Posts: 12
Joined: Tue Dec 16, 2008 1:20 am

Re: Undefined control sequence \frontmatter

Post by nitrogen28 »

Thanks you a lot! :D :D :D
Post Reply