LaTeX document classes

As we have seen from the first examples, each LaTeX document has a class, i.e., a “type” that determines its appearance and possible contents. For example, an “article” can contain parts and sections (etc.), but a “book” can contain also chapters. Probably the most commonly used classes are:

\documentclass{article}

\begin{document}
\author{Marcin Borkowski}
\title{Some document}
\maketitle
The contents.
\end{document}

and then substitute book, amsart and amsbook for article—and see what happens.