pdflatex
我正在使用、biber
和编码创建参考书目utf8
。问题是该字段month
在希腊文条目中显示两次,如下图红色矩形所示
知道为什么会发生这种情况以及如何解决吗?
我的代码是
\RequirePackage{filecontents}
\begin{filecontents*}{testbib.bib}
@article{citeEnglish,
title = "The 11B(p,a)8Be nuclear reaction and 11B(p,p)11B backscattering cross sections for analytical purposes ",
journal = "Nuclear Instruments and Methods in Physics Research Section B: Beam Interactions with Materials and Atoms ",
volume = "143",
number = "3",
pages = "244 - 252",
year = "1998",
note = "",
issn = "0168-583X",
% doi = "http://dx.doi.org/10.1016/S0168-583X(98)00383-8",
% url = "http://www.sciencedirect.com/science/article/pii/S0168583X98003838",
author = "M. Mayer and A. Annen and W. Jacob and S. Grigull",
hyphenation={english}
}
@Mastersthesis{citeGreek,
title = {Μεταπτυχιακή Διπλωματική},
journal = {Βιβλιοθήκη ΕΜΠ},
year = {2012},
month = {Ιούλιος},
author = {Όνομα Επίθετο},
hyphenation = {Greek}
}
\end{filecontents*}
\documentclass[11pt,a4paper]{book}
\usepackage[english,greek]{babel}
\usepackage[T1,LGR]{fontenc}
\usepackage[utf8]{inputenc}
%\usepackage[utf8]{inputenc}
\usepackage{kerkis}
\usepackage{pifont}
\usepackage[unicode]{hyperref}
\usepackage[style=numeric,bibencoding=auto,backend=biber,babel=other]{biblatex}
\addbibresource{testbib.bib}
\renewbibmacro{in:}{}
\newcommand{\sw}{\selectlanguage{english}}
\newcommand{\sq}{\selectlanguage{greek}}
\newcommand{\eng}[1]{\latintext#1\greektext}
\newcommand{\gre}[1]{\greektext#1\latintext}
\begin{document}
\tableofcontents
\chapter{Κεφάλαιο}
\section{Ενότητα}
σδφγηξκλ\cite{citeEnglish}hgfkhgjfkhgfkhg\cite{citeGreek}.
\section{Ενότητα}
\addcontentsline{toc}{chapter}{Βιβλιογραφία}
% \bibliographystyle{plain}
%\selectlanguage{english}
% \bibliography{testbib}
\printbibliography
\end{document}
答案1
根据 的文档biblatex
,该字段month
应包含数字,而不是月份名称。摘自第 2.2.2 节:
月字段(datepart)
出版月份。这必须是整数,而不是序数或字符串。不要说month={January}
但是month={1}
。参考书目样式会根据需要将其转换为语言相关的字符串或序数。另请参阅date
§§ 2.3.9 和 2.3.8。
所以你应该尝试
month = {7},