Documents written with LaTeX can be interpreted in different classes, which are standard formats for some types of documents.
The first command determines the global processing format for the entire document.
Its syntax is:
The \documentclass command takes an argument (class), which describe the type of document Where some value of class must be given, while [options] may be omitted if default values are acceptable.
The most common classes are:
Article, for articles (usually scientific), short reports, documents, ...
Book, for book.
Report, for longer reports, thesis, small book, ...
Letter, for letters.
There are many other non-standard classes for the most diverse documents:
there are memos (which allows a lot of freedom in customizing the document), topsis and suftesi (for thesis and doctoral thesis)
and beamer for presentations.
Article
Article is the most common class as well as the most flexible.
\begin{letter} {Bobbo Vieri,\\ Via Giuseppe Buffi 13, \\6900 Lugano,
\opening{Dear Bob}
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation
ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum.
\closing{Yours truly,}
\end{letter}