
estoy usando elPlantilla de libro naranja de Legrand(puede descargar el archivo tex desde allí o abrirlo en el dorso) y actualmente estoy intentando obtener un documento con las especificaciones del idioma español, pero el uso \usepackage[spanish]{babel}
proporciona varios errores sobre la sección, todos faltan o son adicionales \endcsname
.
Pensé que podría ser porque puse el babel
comando después de cargar la clase de libro, que está incluida en la clase Legrand Orange Book LaTeX.
Código MWE:
\documentclass[11pt,a4paper]{LegrandOrangeBook}
\usepackage[spanish]{babel}
\definecolor{ocre}{RGB}{0, 100, 100}
\chapterspaceabove{6.5cm}
\chapterspacebelow{6.75cm}
\usepackage{svg}
\begin{document}
\thispagestyle{empty}
\begin{tikzpicture}[remember picture, overlay]
\node [text opacity=1, minimum height=0.2\paperheight, minimum width=\paperwidth, text width=0.8\paperwidth] at (10,-5) {\sffamily
{\Huge\bfseries The$\,\,$ document$\,\,$ title\par}
\vspace{16pt} % Vertical whitespace
{\LARGE Blablabla\par} % Subtitle
\vspace{24pt} % Vertical whitespace
{\huge\bfseries Your$\,\,$ Name\par}
\vspace{10pt}
{\LARGE Tutor: }
};
\end{tikzpicture}
\pagestyle{empty} % Disable headers and footers for the following pages
\tableofcontents % Output the table of contents
\pagestyle{fancy} % Enable default headers and footers again
\cleardoublepage % Start the following content on a new page
\chapterspaceabove{6.75cm}
\chapterspacebelow{7.25cm}
\chapter{Sectioning Examples}\index{Sectioning}
\section{Section Title}\index{Sectioning!Sections}
Lorem ipsum
\subsection{Subsection Title}\index{Sectioning!Subsections}
Fusce varius orci
\end{document}
Para ejecutar esto, debe ingresar el enlace que publiqué antes, ir a "descargar código de plantilla" e incluir el archivo LegrandOrangeBook y el archivo tex con mi MWE en la misma carpeta.
Respuesta1
No estoy seguro de si todo lo que haces tiene sentido, pero este al menos compila:
\documentclass[11pt,a4paper]{LegrandOrangeBook}
\usepackage[spanish]{babel}
\usepackage{csquotes} % <<< was missing
\definecolor{ocre}{RGB}{0, 100, 100}
\chapterspaceabove{6.5cm}
\chapterspacebelow{6.75cm}
% \usepackage{svg} % <<< not needed here
\begin{document}
\thispagestyle{empty}
\begin{tikzpicture}[remember picture, overlay]
\node [text opacity=1, minimum height=0.2\paperheight, minimum width=\paperwidth, text width=0.8\paperwidth] at (10,-5) {\sffamily
{\Huge\bfseries The$\,\,$ document$\,\,$ title\par}
\vspace{16pt} % Vertical whitespace
{\LARGE Blablabla\par} % Subtitle
\vspace{24pt} % Vertical whitespace
{\huge\bfseries Your$\,\,$ Name\par}
\vspace{10pt}
{\LARGE Tutor: }
};
\end{tikzpicture}
\pagestyle{empty} % Disable headers and footers for the following pages
% !!! trouble ahead
% \tableofcontents % Output the table of contents
\pagestyle{fancy} % Enable default headers and footers again
\cleardoublepage % Start the following content on a new page
\chapterspaceabove{6.75cm}
\chapterspacebelow{7.25cm}
\chapter{Sectioning Examples}\index{Sectioning}
\section{Section Title}\index{Sectioning!Sections}
Lorem ipsum
\subsection{Subsection Title}\index{Sectioning!Subsections}
Fusce varius orci
\end{document}
Procedimiento:
- Comenté todo, además de una especie de "hola mundo" que quedó
- descomentado paso a paso
- encontró que faltaba un paquete
-
creador de problemas
\tableofcontents
Queda una advertencia o error relacionado con la clase de documento:
Package hyperref Warning: Option `hyperindex' has already been used,
setting the option has no effect on input line 507.