使用 Biblatex 和 Polyglossia 的西里尔文书目条目(首字母损坏)

使用 Biblatex 和 Polyglossia 的西里尔文书目条目(首字母损坏)

我在获取参考书目中的正确字体类型时遇到了问题,或者(在参考书目条目中强制执行语言设置时)无法正确处理作者名字。

首选解决方案是Author = {\textrussian{Белый}, \textrussian{Андрей}},正确处理参考书目部分中的。目前,姓名首字母被丢弃,并且\中的\bibinitperiod也消失了。

欢迎提出任何建议:)

结果

% !TEX TS-program = arara
% !TEX encoding = UTF-8 Unicode

% arara: xelatex: { shell: true }
% arara: biber
% arara: xelatex: { shell: true }

\documentclass{article}
\usepackage{xcolor}

\usepackage[no-math]{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\newfontfamily\greekfont[Script=Greek,Scale=MatchUppercase]{Linux Libertine O}
\newfontfamily\cyrillicfont{Linux Libertine O}

\usepackage{polyglossia}                                
\setdefaultlanguage[variant=british]{english}
\setotherlanguages{latin,greek,russian,polish,german}

\usepackage{csquotes}
\PassOptionsToPackage{%
  natbib=true,
  style=authoryear-comp,
  hyperref=true,
  backend=biber,
  maxbibnames=99,
  firstinits=true,
  uniquename=init,
  maxcitenames=2,
  parentracker=true,
  url=false,
  doi=false,
  isbn=false,
  eprint=false,
  backref=true,
  }{biblatex}
  \usepackage{biblatex}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Attanasio2010,
  abstract = {This paper provides a critical survey of the large literature on the life cycle model of consumption, both from an empirical and a theoretical point of view. It discusses several approaches that have been taken in the literature to bring the model to the data, their empirical successes and failures. Finally, the paper reviews a number of changes to the standard life cycle model that could help solve the remaining empirical puzzles.},
  author = {Kaminsky, Graciela Laura and Schmukler, Sergio L.},
  journal = {NBER Working Paper},
  month = feb,
  shorttitle = {Consumption and saving},
  title = {{Consumption and saving: models of intertemporal allocation and their implications for public policy}},
  url = {http://papers.ssrn.com/sol3/papers.cfm?abstract\_id=1558816 http://www.nber.org/papers/w15756},
  volume = {756},
  number = {12},
  year = {2010}
}
@article{Galindo2002,
  author = {Galindo, Arturo and Schiantarelli, Fabio and Weiss, Andrew},
  journal = {American Economic Review},
  month = apr,
  shorttitle = {Does Financial Liberalization Improve the Allocati},
  title = {{Does Financial Liberalization Improve the Allocation of Investment?: Micro Evidence from Developing Countries}},
  url = {http://ideas.repec.org/p/idb/wpaper/4295.html},
  volume = {47},
  number = {2},
  year = {2002}
}
@book{belyj1919a,
  Address = {München},
  Author = {Bjäly, Andrej},
  Publisher = {Georg Müller},
  Title = {Petersburg},
  Year = {1919},
  language = {german},
  hyphenation = {german},
}
@book{belyj1919b,
  Address = {\textgerman{München}},
  Author = {\textgerman{Bjäly}, \textgerman{Andrej}},
  Publisher = {\textgerman{Georg Müller}},
  Title = {{\textgerman{Petersburg}}},
  Year = {1920},
  language = {german},
  hyphenation = {german},
}
@book{belyj1913a,
  Address = {\textrussian{Москва}},
  Author = {\textrussian{Белый}, \textrussian{Андрей}},
  Publisher = {\textrussian{Наука}},
  Title = {\textrussian{Петербург}},
  Year = {1981},
  language = {russian},
  hyphenation = {russian},
}
@book{belyj1913b,
  Address = {Москва},
  Author = {\textrussian{Белый}, \textrussian{Андрей}},
  Publisher = {Наука},
  Title = {Петербург},
  Year = {1982},
  language = {russian},
  hyphenation = {russian},
}

\end{filecontents}
\addbibresource{\jobname.bib}

\usepackage{hyperref}
\hypersetup{%
  colorlinks=true, 
  citecolor=blue} 

\begin{document}

\textgerman{\cite{belyj1919a}}
\cite{belyj1919b},
\cite{belyj1913b}, 
\textrussian{\cite{belyj1913a}}, 
\cite{Attanasio2010}
\citep{Galindo2002}
(see, for example, \citealp{Attanasio2010})

For \emph{russian} and \emph{german} languages the author first name is not processed as it should\ldots

\printbibliography

\end{document}

答案1

您忘记定义主字体;不要\text...在书目条目中使用。不要尝试混合 Latin Modern 和 Linux Libertine,它们在视觉上彼此不兼容。如果您想要 Computer Modern 样式的字体,请使用 CMUnicode 字体。

% !TEX TS-program = arara
% !TEX encoding = UTF-8 Unicode

% arara: xelatex: { shell: true }
% arara: biber
% arara: xelatex: { shell: true }

\documentclass{article}
\usepackage{xcolor}

\usepackage[no-math]{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Linux Libertine O}
\newfontfamily\greekfont[Script=Greek,Scale=MatchUppercase]{Linux Libertine O}
\newfontfamily\cyrillicfont{Linux Libertine O}

\usepackage{polyglossia}                                
\setdefaultlanguage[variant=british]{english}
\setotherlanguages{latin,greek,russian,polish,german}

\usepackage{csquotes}
\usepackage[
  natbib=true,
  style=authoryear-comp,
  hyperref=true,
  backend=biber,
  maxbibnames=99,
  firstinits=true,
  uniquename=init,
  maxcitenames=2,
  parentracker=true,
  url=false,
  doi=false,
  isbn=false,
  eprint=false,
  backref=true,
  ]{biblatex}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Attanasio2010,
  abstract = {This paper provides a critical survey of the large literature on the life cycle model of consumption, both from an empirical and a theoretical point of view. It discusses several approaches that have been taken in the literature to bring the model to the data, their empirical successes and failures. Finally, the paper reviews a number of changes to the standard life cycle model that could help solve the remaining empirical puzzles.},
  author = {Kaminsky, Graciela Laura and Schmukler, Sergio L.},
  journal = {NBER Working Paper},
  month = feb,
  shorttitle = {Consumption and saving},
  title = {{Consumption and saving: models of intertemporal allocation and their implications for public policy}},
  url = {http://papers.ssrn.com/sol3/papers.cfm?abstract\_id=1558816 http://www.nber.org/papers/w15756},
  volume = {756},
  number = {12},
  year = {2010}
}
@article{Galindo2002,
  author = {Galindo, Arturo and Schiantarelli, Fabio and Weiss, Andrew},
  journal = {American Economic Review},
  month = apr,
  shorttitle = {Does Financial Liberalization Improve the Allocati},
  title = {{Does Financial Liberalization Improve the Allocation of Investment?: Micro Evidence from Developing Countries}},
  url = {http://ideas.repec.org/p/idb/wpaper/4295.html},
  volume = {47},
  number = {2},
  year = {2002}
}
@book{belyj1919a,
  Address = {München},
  Author = {Bjäly, Andrej},
  Publisher = {Georg Müller},
  Title = {Petersburg},
  Year = {1919},
  language = {german},
  hyphenation = {german},
}
@book{belyj1919b,
  Address = {München},
  Author = {Bjäly, Andrej},
  Publisher = {Georg Müller},
  Title = {Petersburg},
  Year = {1920},
  language = {german},
  hyphenation = {german},
}
@book{belyj1913a,
  Address = {Москва},
  Author = {Белый, Андрей},
  Publisher = {Наука},
  Title = {Петербург},
  Year = {1981},
  language = {russian},
  hyphenation = {russian},
}
@book{belyj1913b,
  Address = {Москва},
  Author = {Белый, Андрей},
  Publisher = {Наука},
  Title = {Петербург},
  Year = {1982},
  language = {russian},
  hyphenation = {russian},
}

\end{filecontents}
\addbibresource{\jobname.bib}

\usepackage{hyperref}
\hypersetup{%
  colorlinks=true, 
  citecolor=blue} 

\begin{document}

\cite{belyj1919a},
\cite{belyj1919b},
\cite{belyj1913b}, 
\cite{belyj1913a}, 
\cite{Attanasio2010}
\citep{Galindo2002}
(see, for example, \citealp{Attanasio2010})

For \emph{russian} and \emph{german} languages the author first name is not processed as it 
should\ldots

\printbibliography

\end{document}

在此处输入图片描述

这是我在用以下字体声明替换后得到的结果

\setmainfont{CMU Serif}

在此处输入图片描述

相关内容