7

I've a document that I have to write in spanish, therefore I've to change the title of "References" section to "Referencias I've used:

\renewcommand{\refname}{Referencias}
\renewcommand{\bibname}{Referencias}
\renewcommand{\mspart}{Referencias}

But none of them change it,

\renewcommand{\mspart}{Referencias}

Change the title to "ReferenciasReferences".

How can I change this title? (I am using BibTeX.)

lockstep
  • 250,273
guest
  • 71
  • 1
  • 2

3 Answers3

3

If you use babel you have to do nothing for changing the title:

%%% The filecontents* environment is only for making the example self-contained
\begin{filecontents*}{\jobname.bib}
@article{x,
 author={X Y},
 title={Z},
 journal={J},
 year={1000},
}
\end{filecontents*}

%%% Here starts the document
\documentclass{apa6}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} % recommended encoding
\usepackage[spanish]{babel}

\usepackage{natbib}

\begin{document}

\cite{x}

\bibliographystyle{apa}
\bibliography{\jobname} % use your bib file name

\end{document}

enter image description here

egreg
  • 1,121,712
  • What if one is not using babel, how can one change the "References" title. (We need to show it in all caps, yes, I know it is crazy). – alfC Mar 31 '14 at 07:14
  • @alfC \renewcommand{\refname}{REFERENCES} should do. – egreg Mar 31 '14 at 07:30
  • I mean in apa6, the question says such thing doesn't work with apa6 (and I can confirm that). – alfC Mar 31 '14 at 07:36
  • @alfC If I replace \usepackage[spanish]{babel} with \renewcommand{\refname}{REFERENCES} in the example above, I get ”REFERENCES“. If you use babel, then you should say \addto{\captionsenglish}{\renewcommand{\refname}{REFERENCES}} (with english replaced by the language you need). – egreg Mar 31 '14 at 07:46
2

I know it is a very late answer, but maybe someone will find it helpful anyway.

This should work:

\renewcommand{\refname}{Referencias}
\printbibliography

For some reason when you renew the command in the preamble it does not work.

sztal
  • 121
  • 1
    Thnks for the precision "for some reason when you renew the command in the preamble it does not work"!! – elie520 Sep 20 '20 at 18:22
0

Had the same problem.

This is not a proper solution, but it worked for my purposes. Hope it will help in your case.

This chunk of code makes the Reference a separate section, which can be listed in Content. You can use \section*{} if you wish not to list it, of course.

\section{Referencias}
\renewcommand{\section}[2]{}
\printbibliography

Used the solution from https://tex.stackexchange.com/a/22654/51873

vdi
  • 155
  • 1
    Why would you include \normalfont as part of your \section? That would, if successful, make its way into your ToC. And there's a difference in how \sections are formatted in the ToC compared to "other normal font components". – Werner Feb 22 '16 at 18:20
  • @Werner, I have got the wrong idea. It should be in bold, of course. I edited it. – vdi Feb 22 '16 at 18:26