Change title of 'Publications' when using Babel (Dutch)

Asked by Lennart Karssen

First of all, I don't know if this is an issue with Babel or with the moderncv package.

I use the babel package with the dutch language in my moderncv .tex file. However, the heading of the Publications section is incorrectly translated as "Referenties". For an ordinary document (an article for example) this would be a correct translation, but in a CV "Referenties" are the people who can be contacted by your future employer. A correct translation would be "Publicaties". Is there a way to change this heading?

By the way, I use BiBTeX, just like the example included in the source package:
\nocite{*}
\bibliographystyle{plain}
\bibliography{publications} % 'publications' is the name of a BibTeX file

Thanks for any help!

Question information

Language:
English Edit question
Status:
Solved
For:
moderncv Edit question
Assignee:
No assignee Edit question
Solved by:
Lennart Karssen
Solved:
Last query:
Last reply:
Revision history for this message
Xavier Danaux (xdanaux) said :
#1

Hi Lennart,

The heading of the publications is controlled by the macro \refname. So if you want "Publicaties", all you need to do is insert
\renewcommand{\refname}{Publicaties}
in your preamble

For your information, the reason the English heading is correct is because I changed it manually in modencvcv.cls. I'll think about adding a file with translations for different languages :-)

Revision history for this message
Lennart Karssen (l.c.karssen) said :
#2

Hi Xavier,

Thanks for your quick reply. I tried your solution and it works. However, it stops working as soon as babel is loaded. I found the following solution:
\AtBeginDocument{\renewcommand\refname{Publicaties}}
This works both with and without loading babel.

Revision history for this message
Xavier Danaux (xdanaux) said :
#3

This is because the very purpose of babel is to redefine macros like \refname. So you indeed need to redefine \refname after loading babel to avoid that it overrides your changes, and maybe even at the beginning of the document as you proposed (in case babel defers its redefinitions).

Glad your problem is solved!