This topic aims to explain the different types of document and their specificities.
A good way to organize it would be 1 example per type
\documentclass{article}
For articles in scientific journals, presentations, short reports, program documentation, invitations, ... 1
An article doesn't contain chapters or parts. It can be divided in sections, subsections and paragraphs etc.
By default, the title is shown at the top of the first page, and not on a separate title page.
\documentclass{article}
\title{Hello world}
\author{Me }
\date{\today}
\begin{document}
\maketitle
Hello, World!
\end{document}
\documentclass{beamer}
For presentation slides.
The output is landscape-oriented. The document is separated in "frames" (slides).
Following example was adapted from : sharelatex.com/learn/Beamer
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\title{Sample title}
\author{Me}
\date{\today}
\begin{document}
\frame{\titlepage}
\begin{frame}
\frametitle{Sample frame title}
This is a text in first frame. This is a text in first frame. This is a text in first frame.
\end{frame}
\end{document}
The very first line in each of your LaTeX programs should do this. It should follow the form \documentclass{...}
. What you put within the curly braces is very important. Some document classes give you extra commands to use, others use a different format, and all have specific parameters you can input (described in the parameters section).