In addition to the answer of lockstep:
With KOMA-Script
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
) 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
Here is a example for German language:
\renewcaptionname{ngerman}{\contentsname}{Inhalt} %Table of contents
\renewcaptionname{ngerman}{\listfigurename}{Abbildungen} %Figures
\renewcaptionname{ngerman}{\listtablename}{Tabellen} %Tables
\renewcaptionname{ngerman}{\figurename}{Abb.} %Figure
\renewcaptionname{ngerman}{\tablename}{Tab.} %Table
\renewcaptionname{ngerman}{\bibname}{Literatur} %Bibliography
\newcaptionname{ngerman}{\lstlistlistingname}{Quelltexte} %Table of listings
\newcaptionname{ngerman}{\lstlistingname}{Quelltext} %Listing
You can see, that \renewcaptionname
renames an existing LaTeX name like \contentsname
. The macro \newcaptionname
defines a new LaTeX name for KOMA-Script like \lstlistingname
(because \lstlistingname
is not defined in KOMA-Script).
If you use package babel
together with KOMA-Script it is better to use the mechanism of KOMA-Script instead of babel
s because KOMA-Script has a better verification.
Update:
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
.
The following MWE shows, that it works nice, and that loading of scrextend
does not redefine the default font for titles in standard classes: it stays in serif (roman), while in KOMA-Script the default is sans-serif. Compile first with the commented line, then uncomment and compile again. Compare the titles of the table of contents.
\listfiles % to check if scrbase is loaded
\documentclass{article} % original class
\usepackage{scrextend} % allows some KOMA-Script features
\usepackage[english]{babel} % needed for "blindtext"
\usepackage{blindtext} % to create dummy text
% \renewcaptionname{english}{\contentsname}{Contents of ``Blindtext''} % renaming in KOMA-Script
\begin{document}
\tableofcontents
\newpage
\blinddocument % dummy text including several headings for TOC
\end{document}
Update 2:
If you are not sure whether package scrbase
is loaded or not you can test it with the command \listfiles
(see first line in the MWE above). Command \listfiles
prints in the log
file a list with all called packages in your document. So if package scrbase
is loaded you find it in this list (including used version), like this:
scrkbase.sty 2012/07/29 v3.11b KOMA-Script package (KOMA-Script-dependent basics and keyval usage)
scrbase.sty 2012/07/29 v3.11b KOMA-Script package (KOMA-Script-independent basics and keyval usage)