Your first document · Tu primer documento
Your first LaTeX document
- LaTeX lets you make beautiful documents — reports, books, and especially maths.
- You write plain text with commands, and the computer turns it into a polished PDF.
- Your LaTeX is compiled on our server — press Run and the PDF appears next to your code.
Tu primer documento LaTeX
- LaTeX te permite crear documentos hermosos — informes, libros y especialmente matemáticas.
- Escribes texto plano con comandos, y la computadora lo convierte en un PDF pulido.
- Tu código LaTeX se compila en nuestro servidor — presiona Run (Ejecutar) y el PDF aparecerá junto a tu código.
The shape of every document
- Every document has two parts — a preamble and a body:
\documentclass{article}is the preamble: it sets the kind of document.- Everything between
\begin{document}and\end{document}is the body — the part that actually appears in the PDF.
La estructura de cada documento
- Todo documento tiene dos partes: una preámbulo y un cuerpo:
\documentclass{article}
\begin{document}
Hello, world!
\end{document}
\documentclass{article}es el preámbulo: establece el tipo de documento.- Todo lo que está entre
\begin{document}y\end{document}es el cuerpo — la parte que realmente aparece en el PDF.
Now you try
- Below is a document skeleton. Add a greeting in the body.
- Press Run to compile it and see the PDF, then Check when you think it is right.
Ahora tú intentas
- A continuación hay una plantilla de documento. Agrega un saludo en el cuerpo.
- Presiona Run (Ejecutar) para compilarlo y ver el PDF, luego haz clic en Check (Verificar) cuando creas que está correcto.
Common mistakes
- A document needs
\documentclass{...}and a\begin{document} ... \end{document}. - The text you want to see goes inside the document environment.
Errores comunes
- Un documento necesita
\documentclass{...}y un entorno\begin{document} ... \end{document}. - El texto que deseas ver debe ir dentro del entorno document.
The skeleton below is a complete LaTeX document. Replace the comment in the body · cuerpo with a greeting (any text containing the word Hello · Saludo), then click Run to compile it and see the PDF. · La estructura a continuación es un documento LaTeX completo. Reemplaza el comentario en el cuerpo con un saludo (cualquier texto que contenga la palabra Hello · Saludo), luego haz clic en Ejecutar para compilarlo y ver el PDF.
Options in square brackets change the whole document. Make the text bigger by adding the [12pt] option: \documentclass[12pt]{article}. Run and see every letter grow. · Las opciones entre corchetes cambian todo el documento. Haz que el texto sea más grande añadiendo la opción [12pt]: \documentclass[12pt]{article}. Ejecuta y verás crecer cada letra.