Document Classes ⇒ Changing a Content Heading for its Spanish equivalent
Changing a Content Heading for its Spanish equivalent
Here is what I have:
\documentclass[12pt]{report}
\usepackage{amstext,amsthm,amsmath,amssymb,amscd,amsfonts,graphicx,latexsym,astron,setspace}
\textwidth 4in
\topmargin -0.5in
\textheight 9in
\parindent 0em
\oddsidemargin 1.5in
\evensidemargin 1.5in
\parskip 2ex
\hyphenation{article}
%\includeonly{chap4}
\begin{document}
%define the title
\title{\bf REFUGIADO DEL OLVIDO\\
VERSOS DESTERRADOS}
\author{\\
\\
V\'ictor M. Torres-V\'elez}
\\
%\copyright V\'ictor M. Torres-V\'elez , 2008}
%generates the title
\maketitle
%\include{abstract}
\pagenumbering{roman}
\setcounter{page}{3}
%\include{acknowledgments}
\newpage
\begin{spacing}{0}
\tableofcontents
\end{spacing}
%\listoftables
%\addcontentsline{toc}{chapter}{\dotfill}
%\listoffigures
%\addcontentsline{toc}{chapter}{\dotfill}
\newpage
{\baselineskip 21pt
\pagenumbering{arabic}
\include{siempre}
\include{jamas}
\include{arena}
\include{minotauro}
\include{calles}
\include{petalos_1}
\include{petalosdos}
\include{olvido}
\include{cataclismo}
\include{puerto}
\include{vertigo}
\include{andrea}
\include{sombras}
\include{pendenciero}
}
%\include{referen}
%\include{apend}
\bibliographystyle{humannat}
\bibliography{vicbib3.bib}
%\nocite{*}
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Changing a Content Heading for its Spanish equivalent
Code: Select all
\usepackage[spanish]{babel}
You should not load the packages with one command, but separately because they may have different options. Page dimensions and layout are better set with geometry. Packages and their documentations can be found on CTAN.
Best regards and welcome to the board
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Changing a Content Heading for its Spanish equivalent
as localghost suggested, use the babel package with the spanish option. This will produce "Índice" (for the article class) and "Índice general" (for the report and book classes); if you still want to make some changes to this predefined name, then use \addto\captionsspanish, as illustrated below:
Code: Select all
\documentclass{article}
\usepackage[spanish]{babel}
\addto\captionsspanish{%
\renewcommand\contentsname{Lo deseado}}
\begin{document}
\tableofcontents
\end{document}