Gostaria de escrever um texto grego com referências tanto em inglês quanto em grego e gostaria de compilá-lo com pdfLatex. Eu tentei usar o seguinte código:
\documentclass{article}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[greek,english]{babel}
\newcommand{\en}{\selectlanguage{english}}
\newcommand{\gr}{\selectlanguage{greek}}
\usepackage[round]{natbib}
\begin{document}
\gr
Όπως έχει αναφερθεί στην Ελληνική \citep{Sfa04}
αλλά και τη διεθνή \citep{Miranda02} βιβλιογραφία
\bibliographystyle{plainnat}
\bibliography{test}
\end{document}
E o arquivo test.bib é:
@book{Miranda02,
language = {english},
author = {M. J. Miranda and P. L. Fackler},
publisher = {MIT Press},
title = {Applied Computational Economics and Finance},
year = {2002}
}
@book{Sfa04,
language = {greek},
author = {Μ. Σφακιανάκης},
publisher = {Εκδόσεις Πατάκη},
title = {Προσομοίωση και εφαρμογές},
year = {2004}
}
E funciona perfeitamente. Meu problema é que gostaria de ter citações como (Nome do autor, ano) e referências em inglês e grego.
Responder1
Use biblatex + biber. Possui excelente suporte para vários idiomas. Você terá que definir o idioma no babador com o campo langid:
@book{Miranda02,
language = {english},
langid = {english},
author = {M. J. Miranda and P. L. Fackler},
publisher = {MIT Press},
title = {Applied Computational Economics and Finance},
year = {2002}
}
@book{Sfa04,
language = {greek},
langid={greek},
author = {Μ. Σφακιανάκης},
publisher = {Εκδόσεις Πατάκη},
title = {Προσομοίωση και εφαρμογές},
year = {2004}
}
Então isso funcionará:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[greek,english]{babel}
\usepackage[autostyle]{csquotes}
\newcommand{\en}{\selectlanguage{english}}
\newcommand{\gr}{\selectlanguage{greek}}
\usepackage[style=authoryear,natbib,autolang=other,language=auto]{biblatex}
\addbibresource{test.bib}
\begin{document}
\gr
Όπως έχει αναφερθεί στην Ελληνική \citep{Sfa04}
αλλά και τη διεθνή \citep{Miranda02} βιβλιογραφία
\printbibliography
\end{document}