% ------------------------------------------------------------ % SOLUCIÓN — Ejercicio 05: ¡Hola, LaTeX! % ------------------------------------------------------------ \documentclass{article} % Paquetes básicos \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \title{Hello, \LaTeX!} \author{Tu Nombre} \date{\today} \begin{document} \maketitle \section{Introduction} This is your first compiled document in \LaTeX{}. Observe that the automatic labels, such as “Contents”, appear in English. \tableofcontents \section{Second Section} Congratulations! You have compiled your first LaTeX document. \end{document} % ------------------------------------------------------------ % ------------------------------------------------------------ % VERSIÓN TRADUCIDA AL ESPAÑOL % ------------------------------------------------------------ % Para observar los cambios, reemplaza en el preámbulo: % \usepackage[english]{babel} % por: % \usepackage[spanish]{babel} % % El resto del código se mantiene igual. % % Resultado esperado: % - “Contents” → “Contenido” % - “Date” → “Fecha” % - “Section” → “Sección” % ------------------------------------------------------------