Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I need to have tables with their numbers, just as when I use \caption.

My problem is that when I use the \caption it shows me like this:

Cuadro x.x: this is some table.

The word Cuadro is because I'm using a document class as spanish. I want to change that word "Cuadro". Is it possible to do that?

share|improve this question
    
Do you have \usepackage[spanish]{babel} in your document? –  egreg Nov 5 '12 at 0:05

3 Answers 3

up vote 14 down vote accepted

Since you are using babel with the spanish option, the default behaviour is to use "Cuadro" as \tablename (following a recommendation from the RAE); however, it is also usual, and many people prefer this regardless of what the RAE says) to use "Tabla" instead. You can use the es-tabla option for babel to change the name to "Tabla":

\usepackage[spanish,es-tabla]{babel}

Another option to get "Tabla" is to use the mexico package option

\usepackage[spanish,mexico]{babel}

but this option also changes the behaviour of the quotation marks and of the decimal separator (for details, texdoc spanish on a terminal).

If you want to change the name to some other string, you can redefine \spanishtablename:

\usepackage[spanish]{babel}
\renewcommand\spanishtablename{Otro nombre}
share|improve this answer
1  
Better is \renewcommand\spanishtablename{Otro nombre} (no \addto trickery). –  Javier Bezos Nov 5 '12 at 17:47
    
@JavierBezos ah, yes, I forgot about \spanishtablename; I updated my answer. Thank you! –  Gonzalo Medina Nov 5 '12 at 17:49

You can use the caption package like in the following

\documentclass[12pt, letterpaper]{article}
\usepackage{caption}
\captionsetup[table]{name=New Table Name}

\begin{document}

\begin{table}\centering
\begin{tabular}{|c|c|}
test & test\\
\end{tabular}
\caption{test caption}
\end{table}

\end{document}

enter image description here

share|improve this answer
1  
As you have it now, the change will only affect the single table environment to which it is applied; to have the effect global, one can say \captionsetup[table]{name=Cuadro} in the preamble. Besides, "Cuadro" is the current name and the OP wants to change it. –  Gonzalo Medina Nov 5 '12 at 0:25
    
@GonzaloMedina Edited my answer! –  azetina Nov 5 '12 at 0:37

With KOMA-Script

If you use package babel together with KOMA-Script (to be correct, package scrbase, which is called in the KOMA-Script classes scrartcl, scrreprt, scrbook and scrlttr2 and in the KOMA-Script package scrextend) it is better to use the mechanism of KOMA-Script instead of babels because KOMA-Script has a better verification.

KOMA-Script defines two macros for naming or renaming LaTeX names:

\newcaptionname{language}{LaTeX name}{new content}   % new name
\renewcaptionname{language}{LaTeX name}{new content} % renew existing name

For your case it is enough to add:

\renewcaptionname{spanish}{\listtablename}{Índice de tablas}
\renewcaptionname{spanish}{\tablename}{Tabla}

Please note that with loading the package scrextend (see chapter 16, file scrguien.pdf, texdoc scrguien) you can use some KOMA-Script features with non KOMA-Script classes. For example scrextend loads scrbase.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.