ElegantLaTeX / ElegantBook

Elegant LaTeX Template for Books
LaTeX Project Public License v1.3c
2.05k stars 399 forks source link

Spanish translation #133

Open EthanDeng opened 3 years ago

EthanDeng commented 3 years ago

The following Spanish translation is provided by Gustavo A. Corradi, I will push to the dev version, It will be better if someone can provide an example.


\ifdefstring{\ELEGANT@lang}{es}{
  \RequirePackage[spanish]{babel}
  \setlength\parindent{2em}
  \newcommand\figref[1]{\textbf{Figura}~\ref{#1}}
  \newcommand\tabref[1]{\textbf{Tabla}~\ref{#1}}
  \renewcommand{\spanishchaptername}{Capítulo \thechapter}
  \newcommand{\authorname}{\textbf{Autor: }}
  \newcommand{\institutename}{\textbf{Instituto: }}
  \newcommand{\datename}{\textbf{Fecha: }}
  \newcommand{\versionname}{\textbf{Versión: }}
  \bibliographystyle{\ELEGANT@bibstyle}
  \newcommand{\notename}{Nota}
  \newcommand{\proofname}{Demostración}
  \newcommand{\problemname}{Problema}
  \newcommand{\definitionname}{Definición}
  \newcommand{\theoremname}{Teorema}
  \newcommand{\axiomname}{Axioma}
  \newcommand{\postulatename}{Postulado}
  \newcommand{\lemmaname}{Lema}
  \newcommand{\propositionname}{Proposición}
  \newcommand{\corollaryname}{Corolario}
  \newcommand{\examplename}{Ejemplo}
  \newcommand{\exercisename}{Ejercicio}
  \newcommand{\remarkname}{Comentario}
  \newcommand{\assumptionname}{Asunto}
  \newcommand{\conclusionname}{Conclusión}
  \newcommand{\solutionname}{Solución}
  \newcommand{\propertyname}{Propiedad}
  \newcommand{\introductionname}{Introducción}
  \newcommand{\problemsetname}{Ejercicio}
  \newcommand\bioinfo[2]{\gdef\@bioinfo{\textbf{#1}: #2}}
  \newcommand{\updatename}{Actualización:}
  \newcommand{\historyname}{Historial de versiones}
}{\relax}
moshpirit commented 3 years ago

How can we use "autores" (plural of "author") in the first page? I tried to add \newcommand{\authors}{\textbf{Autores: }} but it returns me some error.

sikouhjw commented 3 years ago

How can we use "autores" (plural of "author") in the first page? I tried to add \newcommand{\authors}{\textbf{Autores: }} but it returns me some error.

If you ask questions separately, please open a new issue.

moshpirit commented 3 years ago

sure, sorry, BTW, the Spanish translation works great with me so far