Sections and titles · Sections et titres
Organising with sections
- Real documents are split into sections so readers can follow them.
- The command is simple:
- LaTeX numbers it automatically (1, 2, 3 …) — you never count by hand.
Organiser avec des sections
- Les vrais documents sont divisés en sections pour que les lecteurs puissent les suivre.
- La commande est simple :
\section{Introduction}
- LaTeX les numérote automatiquement (1, 2, 3 …) — vous n'avez jamais besoin de compter à la main.
Smaller pieces
- Inside a section you can add subsections:
- These become 2.1, 2.2, and so on. Add or remove one and everything renumbers itself.
Morceaux plus petits
- Dans une section, vous pouvez ajouter des sous-sections :
\section{Methods}
\subsection{Materials}
\subsection{Procedure}
- Elles deviennent 2.1, 2.2, etc. Ajoutez ou supprimez-en une et tout se renumérote automatiquement.
A title block
- A report usually starts with a title, an author, and a date.
- You declare them in the preamble, then print them with
\maketitle:
\maketitlemust go inside the body, as its first line.
Une zone de titre
- Un rapport commence généralement par un titre, un auteur et une date.
- Vous les déclarez dans la préambule, puis les affichez avec
\maketitle:
\documentclass{article}
\title{My First Report}
\author{Pat Lee}
\begin{document}
\maketitle
...
\end{document}
\maketitledoit aller à l'intérieur du corps, en tant que première ligne.
Common mistakes
\section{...}numbers automatically; use\section*{...}for no number.\maketitleneeds\title{...}and\author{...}set first.
Erreurs courantes
\section{...}se numérote automatiquement ; utilisez\section*{...}pour ne pas avoir de numéro.\maketitlenécessite que\title{...}et\author{...}soient définis au préalable.
Organise this report by adding a section heading. Put \section{Introduction} at the start of the body, then Run. Notice LaTeX numbers it for you. · Organisez ce rapport en ajoutant un titre de section. Placez \section{Introduction} au début du corps, puis Exécutez. Remarquez que LaTeX numérote automatiquement.
Give the document a title block. Add \title{...} and · et \author{...} in the preamble, then \maketitle as the first line of the body. · Donnez au document un bloc de titre. Ajoutez \title{...} et \author{...} dans le préambule, puis \maketitle comme première ligne du corps.