Things like date, contents and bibliography come out in English, but I´d like to have them in Portuguese. I tried changing the settings, but didn´t find anything. Is there a package for that?
[Tex/LaTex] way to change the language on Overleaf
languages
Related Solutions
I do not have your bib
file (update your question and add it please), so please test the following MWE by your own (on my systen it runs):
%http://tex.stackexchange.com/questions/68484/how-to-change-language-in-the-bibliography
\documentclass[11pt,a4paper,sans,ngerman]{moderncv}
\usepackage{lmodern}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english,ngerman]{babel}
\moderncvtheme[red]{classic}
\firstname{John}
\familyname{Doe}
\address{Strasse Hausnummer}{PLZ Ort}
\mobile{+1~(234)~567~890}
\phone{+2~(345)~678~901}
\email{john@johndoe.de}
\homepage{www.johndoe.de}
\begin{document}
\selectlanguage{ngerman}
\makecvtitle
\nocite{*}
\small{\makeatletter
\renewcommand*\bibliographyitemlabel{\@biblabel{\arabic{enumiv}}}
\makeatother
\bibliographystyle{plaindin} % gerplain alphadin, plaindin, abbrvdin, unsrtdin
\bibliography{mybib} % Literaturverzeichnis
\end{document}
I use the English (for literatur) and the German languages (German CV), see document class option, babel
and \selectlanguage
. I use the German bibliography style plaindin
so I have not to load the rather old bibgerm
.
I deleted the lines in your MWE which are not neccecary for a minimal working example and added some which were missing in your MWE.
A quick look into the manual of babel
reveals:
\foreignlanguage{<language>}{<text>}
If you are using the correct commands, it works perfectly fine.
\documentclass[11pt]{article}
\usepackage[english,greek]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{chemfig}
\usepackage{multirow}
\usepackage{graphicx}
\usepackage{float}
\usepackage{mhchem}
\usepackage{lscape}
\usepackage{siunitx}
\newlength{\drop}
\usepackage[sorting=none]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
To LaTeX (προφέρεται 'λάτεχ') είναι μια γλώσσα δημιουργίας εγγράφων συνδεδεμένο με το
σύστημα αυτόματης στοιχειοθεσίας TeX. Ο όρος LaTeX αναφέρεται μόνο στη γλώσσα στην οποία
είναι γραμμένα τα έγγραφα, όχι στον επεξεργαστή κειμένου που χρησιμοποιείται για να
γραφούν τα έγγραφα αυτά.
\cite{aristotle:physics}
\selectlanguage{english}
\printbibliography[title=\foreignlanguage{greek}{Αναφορές}]
\end{document}
Best Answer
It should be possible with the babel package.
Try including this:
And if there are certain letters not being encoded include the following: