Sections and titles · Secciones y 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.
Organización con secciones
- Los documentos reales se dividen en secciones para que los lectores puedan seguirlos.
- El comando es sencillo:
\section{Introduction}
- LaTeX lo numera automáticamente (1, 2, 3 …) — nunca tienes que contar a mano.
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.
Piezas más pequeñas
- Dentro de una sección puedes añadir subsecciones:
\section{Methods}
\subsection{Materials}
\subsection{Procedure}
- Estas pasarán a ser 2.1, 2.2, etc. Si añades o quitas alguna, todo se renumerará automáticamente.
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.
Bloque de título
- Un informe suele comenzar con un título, un autor y una fecha.
- Se declaran en el preámbulo y se imprimen con
\maketitle:
\documentclass{article}
\title{My First Report}
\author{Pat Lee}
\begin{document}
\maketitle
...
\end{document}
\maketitledebe ir dentro del cuerpo, como su primera línea.
Common mistakes
\section{...}numbers automatically; use\section*{...}for no number.\maketitleneeds\title{...}and\author{...}set first.
Errores comunes
\section{...}se numera automáticamente; usa\section*{...}si no quieres número.\maketitlenecesita que\title{...}y\author{...}estén definidos primero.
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. · Organiza este informe añadiendo un encabezado de sección. Coloca \section{Introduction} al inicio del cuerpo, luego Run. Observa cómo LaTeX lo numera automáticamente.
Give the document a title block. Add \title{...} and · y \author{...} in the preamble, then \maketitle as the first line of the body. · Asigna un bloque de título al documento. Añade \title{...} y \author{...} en el preámbulo, seguido de \maketitle como primera línea del cuerpo.