Sections and titles · Seções e títulos
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.
Organizadores com seções
- Documentos reais são divididos em seções para que os leitores possam segui-los.
- O comando é simples:
\section{Introduction}
- O LaTeX numerará automaticamente (1, 2, 3 …) — você nunca precisará contar manualmente.
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.
Trechos menores
- Dentro de uma seção, você pode adicionar subseções:
\section{Methods}
\subsection{Materials}
\subsection{Procedure}
- Elas tornar-se-ão 2.1, 2.2, etc. Adicione ou remova uma e tudo será renumerado.
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.
Bloco de título
- Um relatório geralmente começa com um título, autor e data.
- Você os declara no preâmbulo, depois os imprime com
\maketitle:
\documentclass{article}
\title{My First Report}
\author{Pat Lee}
\begin{document}
\maketitle
...
\end{document}
\maketitledeve estar dentro do corpo, como sua primeira linha.
Common mistakes
\section{...}numbers automatically; use\section*{...}for no number.\maketitleneeds\title{...}and\author{...}set first.
Erros comuns
\section{...}numerará automaticamente; use\section*{...}para sem número.\maketitleprecisa de\title{...}e\author{...}definidos primeiro.
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. · Organize este relatório adicionando um título de seção. Coloque \section{Introduction} no início do corpo, depois Execute. Note que o LaTeX numera automaticamente para você.
Give the document a title block. Add \title{...} and · e \author{...} in the preamble, then \maketitle as the first line of the body. · Dê ao documento um bloco de título. Adicione \title{...} e \author{...} no preâmbulo, então \maketitle como a primeira linha do corpo.