Change LaTeX caption language
Asked Answered
S

4

15

How could I change the default language so that I get something else instead of "Table" or "Figure" before my captions?

Suborbital answered 25/4, 2010 at 19:25 Comment(1)
Do you want to change the language i.e English->Spanish or do you just want to specify what the caption says?Volnay
R
11

You can redefine \figurename and \tablename by using \renewcommand. For example, you can do this for Swedish:

\renewcommand{\figurename}{Figur}
\renewcommand{\tablename}{Tabell}
Roid answered 21/3, 2018 at 14:26 Comment(0)
H
8
\usepackage[francais]{babel}
Hepplewhite answered 25/4, 2010 at 19:29 Comment(0)
C
5

You can change your document's language using babel package. The captions will be updated automatically.

As a bonus, you'll get the correct hyphenation for the chosen language.

Clung answered 25/4, 2010 at 19:28 Comment(4)
All languages aren't available. I tried Swedish (both by specifying svenska and swedish), but it said it wasn't available. French worked though, by using francais.Roid
@DonaldDuck: Perhaps you are using an outdated babel? This question reports that Swedish is available.Clung
@​Vlad I'm sure it's not outdated, I just installed it.Roid
@DonaldDuck: If you are using MikTeX, maybe you didn't install all the needed languages?Clung
H
5

You can also redefine \tablename and \figurename.

Hepplewhite answered 25/4, 2010 at 19:35 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.