biblatex 问题 - 由于某种原因,年份从一个引用中删除

biblatex 问题 - 由于某种原因,年份从一个引用中删除

再会。

以下是我的序言:

\documentclass[12pt]{article}
\usepackage{amsmath}    % needed for including graphics e.g. EPS, PS
%\usepackage{natbib}
\usepackage[T1]{fontenc}
\usepackage{titling}
\setlength{\droptitle}{-3cm}
\topmargin -0.5cm        % read Lamport p.163
\oddsidemargin -0.04cm   % read Lamport p.163
\evensidemargin -0.04cm  % same as oddsidemargin but for left-hand pages
\textwidth 16.59cm
\textheight 21.94cm
%\captionsetup[table]{font=bf,position=below}
%\captionsetup[figure]{font=bf}
\usepackage{ctable}
\usepackage[style=authoryear,natbib=true, url=true,backend=bibtex]{biblatex}
\setlength\bibitemsep{1.5\itemsep}
\renewbibmacro{in:}{%
  \ifentrytype{article}{}{%
  \printtext{\bibstring{in}\intitlepunct}}}
  \DefineBibliographyStrings{english}{%
    urlseen = {Accessed on},
  }
\makeatletter
\AtEveryBibitem{%
  \global\undef\bbx@lasthash%
  \clearfield{extrayear}}
\makeatother
\bibliography{turkeybanking}
\nocite{*}
\usepackage{url}
%\pagestyle{empty}       % Uncomment if don't want page numbers
\parskip 7.2pt           % sets spacing between paragraphs
\usepackage{setspace}
%\doublespacing
\renewcommand{\baselinestretch}{1.6}    % Uncomment for 1.5 spacing between lines
%\linespread{2}
\parindent 0cm        % sets leading space for paragraphs

我的问题很奇怪。我的 biblatex 文件中有一个 45 条引文列表。当我在 TexMaker 中进行快速构建时,无论第 36 条引文是什么,参考列表中的年份都会被删除,并且文内引文会变成作者(标题)而不是作者(年份)。如果我更改 biblatex 文件中参考文献的顺序,问题就会跳转到新的参考文献。但出于某种原因,总是第 36 条参考文献有问题。之前和之后的一切都很好。

我还有另一个使用相同序言和相同 biblatex 文件的 tex 文件,一切正常。我知道这听起来有点奇怪,而且我是 LaTeX 新手,但如果有人能给我一些帮助,我将不胜感激。

更新以以下文档为例:

\begin{document}

\textcite{altunbas2009turkish}, \textcite{assunccao2013eliminating},
\textcite{baer2000privatization}, \textcite{beck2005state},
\textcite{biglaiser2004expansion}, \textcite{blyth2002great},
\textcite{bongini2009emerging}, \textcite{calomiris2011fragile},
\textcite{cizre2005turkish}, \textcite{de2003globalization},
\textcite{demello2012bye}, \textcite{epstein2013foreign},
\textcite{garman2001fiscal}, \textcite{gerschenkron1962economic},
\textcite{haggard1995financial}, \textcite{hutchcroft1998booty},
\textcite{kohli2004state}, \textcite{levy2004should},
\textcite{lukauskas2000explaining}, \textcite{marois2011emerging},
\textcite{martinez2003financial}, \textcite{martinez2009globalizing},
\textcite{maxfield1991bankers}, \textcite{montinola2003recovers},
\textcite{mukherjee2013candidate}, \textcite{ogura2002banking},
\textcite{onder2010banks}, \textcite{onics1998state},
\textcite{onics2009beyond}, \textcite{paula2011regulation},
\textcite{pepinsky2009openness}, \textcite{rodriguez2008banking},
\textcite{satyanath2006globalization}, \textcite{taylor2009institutional},
\textcite{thebanker2013regionalbanks}, \textcite{thebanker2013riding},
\textcite{thies2009politics}, \textcite{treisman2004stabilization},
\textcite{verdier2000rise}, \textcite{von2010federal},
\textcite{wade1990governing}, \textcite{wellons1985international},
\textcite{winters1994power}, \textcite{zhang2004changing},
\textcite{zysman1983governments}

\begin{spacing}{1.15}

\printbibliography

\end{spacing}

\end{document}

以下是我的对应.bib 文件:

@article{rodriguez2008banking,
title={Banking on democracy: The political economy of international private bank lending in emerging markets},
author={Rodr{\'\i}guez, Javier and Santiso, Javier},
journal={International Political Science Review},
volume={29},
number={2},
pages={215--246},
year={2008},
}

@article{montinola2003recovers,
title={Who recovers first? Banking crises resolution in developing countries},
author={Montinola, Gabriella R},
journal={Comparative Political Studies},
volume={36},
number={5},
pages={541--574},
year={2003},
}

@article{verdier2000rise,
title={The rise and fall of state banking in OECD countries},
author={Verdier, Daniel},
journal={Comparative Political Studies},
volume={33},
number={3},
pages={283--318},
year={2000},
}

@book{gerschenkron1962economic,
title={Economic backwardness in historical perspective},
author={Gerschenkron, Alexander},
year={1962},
publisher={Cambridge, Mass.: Harvard University Press}
}

@book{haggard1995financial,
title={Financial systems and economic policy in developing countries},
author={Haggard, Stephan and Lee, Chung H},
year={1995},
publisher={Ithaca, NY.: Cornell University Press}
}

@article{de2003globalization,
title={Globalization and recent political transitions in Brazil},
author={De Castro, Marcus Faro and De Carvalho, Maria Izabel Vallad{\~a}o},
journal={International Political Science Review},
volume={24},
number={4},
pages={465--490},
year={2003},
}

@article{maxfield1991bankers,
title={Bankers' Alliances and Economic Policy Patterns Evidence from Mexico and Brazil},
author={Maxfield, Sylvia},
journal={Comparative Political Studies},
volume={23},
number={4},
pages={419--458},
year={1991},
}

@article{martinez2003financial,
title={Financial markets and politics: The confidence game in Latin American emerging economies},
author={Martinez, Juan and Santiso, Javier},
journal={International Political Science Review},
volume={24},
number={3},
pages={363--395},
year={2003},
}

@article{taylor2009institutional,
title={Institutional development through policy-making: a case study of the Brazilian Central Bank},
author={Taylor, Matthew M},
journal={World Politics},
volume={61},
number={3},
pages={487--515},
year={2009},
}

@article{marois2011emerging,
title={Emerging market bank rescues in an era of finance-led neoliberalism: A comparison of Mexico and Turkey},
author={Marois, Thomas},
journal={Review of International Political Economy},
volume={18},
number={2},
pages={168--196},
year={2011},
}

@article{thies2009politics,
title={The Politics of Exchange Rate-Based Stabilization Versus Structural Reforms in Latin America},
author={Thies, Cameron G and Arce, Moises},
journal={Comparative Political Studies},
volume={42},
number={9},
pages={1193--1216},
year={2009},
}

@article{biglaiser2004expansion,
title={The expansion of neoliberal economic reforms in Latin America},
author={Biglaiser, Glen and DeRouen, Karl},
journal={International Studies Quarterly},
volume={48},
number={3},
pages={561--578},
year={2004},
}

@article{lukauskas2000explaining,
title={Explaining styles of financial market opening in Chile, Mexico, South Korea, and Turkey},
author={Lukauskas, Arvid and Minushkin, Susan},
journal={International Studies Quarterly},
volume={44},
number={4},
pages={695--723},
year={2000},
}

@article{garman2001fiscal,
title={Fiscal decentralization: A political theory with Latin American cases},
author={Garman, Christopher and Haggard, Stephan and Willis, Eliza},
journal={World Politics},
volume={53},
number={2},
pages={205--236},
year={2001},
}

@article{winters1994power,
title={Power and the Control of Capital},
author={Winters, Jeffrey A},
journal={World Politics},
volume={46},
number={3},
pages={419--52},
year={1994},
}

@article{cizre2005turkish,
title={The Turkish encounter with neo-liberalism: economics and politics in the 2000/2001 crises},
author={Cizre, {\"U}mit and Yeldan, Erin{\c{c}}},
journal={Review of International Political Economy},
volume={12},
number={3},
pages={387--408},
year={2005},
}

@article{onics2009beyond,
title={Beyond the 2001 financial crisis: The political economy of the new phase of neo-    liberal restructuring in Turkey},
author={{\"O}ni{\c{s}}, Ziya},
journal={Review of International Political Economy},
volume={16},
number={3},
pages={409--432},
year={2009},
}

@article{mukherjee2013candidate,
title={Candidate-centred systems, public banks and equity market restrictions in developing democracies},
author={Mukherjee, Bumba and Yadav, Vineeta and Bejar, Sergio},
journal={Review of International Political Economy},
number={forthcoming},
pages={1--40},
year={2013},
}

@article{pepinsky2009openness,
title={Openness without Liberalization: Why Bankers in Emerging Markets Support Financial Internationalization},
author={Pepinsky, Thomas B},
journal={Review of International Political Economy},
number={forthcoming},
year={2013},
}

@article{epstein2013foreign,
title={When do foreign banks 'cut and run'? Evidence from west European bailouts and east European markets},
author={Epstein, Rachel A},
journal={Review of International Political Economy},
number={forthcoming},
pages={1--31},
year={2013},
}

@article{assunccao2013eliminating,
title={Eliminating entry barriers for the provision of banking services: evidence from 'banking correspondents' in Brazil},
author={Assun{\c{c}}ao, Juliano},
volume = {37},
pages = {2806-2811},
journal={Journal of Banking \& Finance},
year={2013},
}

@article{beck2005state,
title={State bank transformation in Brazil--choices and consequences},
author={Beck, Thorsten and Crivelli, Juan Miguel and Summerhill, William},
journal={Journal of Banking \& finance},
volume={29},
number={8},
pages={2223--2257},
year={2005},
}

@article{baer2000privatization,
title={Privatization and restructuring of banks in Brazil},
author={Baer, Werner and Nazmi, Nader},
journal={The Quarterly Review of Economics and Finance},
volume={40},
number={1},
pages={3--24},
year={2000},
}

@article{demello2012bye,
title={Bye, bye financial repression, hello financial deepening: The anatomy of a financial boom},
author={De Mello, Jo{\~a}o Manoel P and Garcia, M{\'a}rcio GP},
journal={The Quarterly Review of Economics and Finance},
volume={52},
number={2},
pages={135--153},
year={2012},
}

@article{treisman2004stabilization,
title={Stabilization tactics in Latin America: Menem, Cardoso, and the politics of low inflation},
author={Treisman, Daniel},
journal={Comparative Politics},
pages={399--419},
year={2004},
}

@book{zysman1983governments,
title={Governments, markets, and growth: financial systems and the politics of industrial change},
author={Zysman, John},
year={1983},
publisher={Ithaca, NY.: Cornell University Press}
}

@article{calomiris2011fragile,
title={Fragile Banks, Durable Bargains: Why Banking is All about Politics and Always Had Been},
author={Calomiris, Charles and Haber, Stephen},
journal={Book manuscript in progress},
year={forthcoming}
}

@article{levy2004should,
title={Should the government be in the banking business? The role of state-owned and development banks},
author={Levy-Yeyati, Eduardo and Micco, Alejandro and Panizza, Ugo},
year={2004},
publisher={Research Working Paper \#517. Inter-American Development Bank}
}

@article{onder2010banks,
title={Banks, regional development disparity and growth: evidence from Turkey},
author={{\"O}nder, Zeynep and {\"O}zy{\i}ld{\i}r{\i}m, S{\"u}heyla},
journal={Cambridge journal of economics},
volume={34},
number={6},
pages={975--1000},
year={2010},
}

@book{martinez2009globalizing,
title={Globalizing in Hard Times: The Politics of Banking-Sector Opening in the Emerging World},
author={Martinez-Diaz, Leonardo},
year={2009},
publisher={Cornell University Press}
}

@book{blyth2002great,
title={Great Transformations: Economic Ideas and Institutional Change in the Tewntieth Century},
author={Blyth, Mark},
year={2002},
publisher={Cambridge, Mass.: Cambridge University Press}
}

@InCollection{paula2011regulation,
author = {{de Paula}, Luiz Fernando and Sobreira, Rog{\'e}rio},
title = {The 2008 Financial Crisis and Banking Regulation in Brazil},
booktitle = {An Assessment of the Global Impact of the Financial Crisis},
OPTcrossref = {crossref},
OPTkey = {key},
publisher = {Basingstoke: Palgrave Macmillan},
year = {2011},
editor = {Arestis, Philip and Sobreira, Rog{\'e}rio and Oreiro, Jos{\'e} Luis},
}


@book{onics1998state,
title={State and market: The political economy of Turkey in comparative perspective},
author={{\"O}ni{\c{s}}, Ziya},
year={1998},
publisher={Bo{\u{g}}azi{\c{c}}i University Press Istanbul},
}

@article{wellons1985international,
title={International debt: the behavior of banks in a politicized environment},
author={Wellons, Philip A},
journal={International Organization},
pages={441--471},
year={1985},
}

@book{bongini2009emerging,
title={Emerging Banking Systems},
author={Bongini, Paola Agnese and Chiarlone, Stefano and Ferri, Giovanni},
year = {2009},
publisher={Palgrave Macmillan}
}

@book{von2010federal,
title={Federal banking in Brazil: Policies and competitive advantages},
author={Von Mettenheim, Kurt E},
year={2010},
publisher={Pickering \& Chatto Publishers}
}

@book{hutchcroft1998booty,
title={Booty Capitalism: The Politics of the Banking in the Philippines},
author={Hutchcroft, Paul David},
year={1998},
publisher={Ithaca, NY: Cornell University Press},
}

@article{thebanker2013regionalbanks,
author={Cooper,Jane},
year={March 2013},
month={March},
title={Report: International banking operations - Supra-regional banks - Emerging markets take hold in the developing world},
journal={The Banker}, 
}

@article{thebanker2013riding,
author={Rumsey, John},
year={March 1, 2013},
title={Americas: Brazil - Banking - Riding out the storm},
journal={The Banker}, 
}

@book{ogura2002banking,
title={Banking, the state, and industrial promotion in developing Japan, 1900-73},
author= {Ogura, Shinji},
year={2002},
publisher={Palgrave Macmillan: United Kingdom}
}

@book{altunbas2009turkish,
title={Turkish Banking: Banking Under Political Instability and Chronic High Inflation},
author={Altunbas, Yener and Kara, Alper and Olgu, Ozlem},
year={2009},
publisher={Palgrave Macmillan: United Kingdom},
}

@book{zhang2004changing,
title={The Changing Politics of Finance in Korea and Thailand: from deregulation to debacle},
author={Zhang, Xiaoke},
year={2004},
publisher={Routledge}
}

@book{satyanath2006globalization,
title={Globalization, politics, and financial turmoil},
author={Satyanath, Shanker},
year={2006},
publisher={Cambridge: Cambridge University Press}
}

@book{kohli2004state,
title={State-directed development: political power and industrialization in the global periphery},
author={Kohli, Atul},
year={2004},
publisher={Cambridge: Cambridge University Press}
}

@book{wade1990governing,
title={Governing the market: Economic theory and the role of government in East Asian industrialization},
author={Wade, Robert},
year={1990},
publisher={Princeton, New Jersey: Princeton University Press}
}

如果我运行带有上述序言的 .tex 文件,则一切正常。我的问题是,如果我删除 10 个或更多的文本引用(即,我的 .tex 文件中的 \textcite 引用不超过 35 个),就会出现上述问题。也就是说,我的 .bib 文件中的第 36 个引用(当前为 von2010federal)的文本引用是作者(标题)而不是作者(年份),并且同一引用在参考文献列表中不包含年份。

我开始认为这是某种错误。一切看起来都很简单,但问题却很奇怪(至少对我来说)。但如果您或其他人能提供任何帮助或建议,我们当然会非常感激。

答案1

当我运行以下 MWE 时

\documentclass[12pt]{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{altunbas2009turkish,
title={Turkish Banking: Banking Under Political Instability and Chronic High Inflation},
author={Altunbas, Yener and Kara, Alper and Olgu, Ozlem},
year={2009},
publisher={Palgrave Macmillan: United Kingdom},
}  
\end{filecontents}

\usepackage[style=authoryear,natbib,backend=bibtex]{biblatex}
\addbibresource{\jobname}

\begin{document}

\textcite{altunbas2009turkish}

\printbibliography

\end{document}

我们得到

在此处输入图片描述

即,文中引用以作者(标题)格式打印。原因是较新的 biblatex 版本labelyear在构建引用时会查找字段,但当bibtex用作后端时,.bbl文件中不会生成该字段,因此该字段labelyear未定义,然后biblatex求助于该title字段。

请注意,日志中有关于错误版本的警告(bibtex 日志和 latex 日志中都有)

一种可能的解决方法是强制定义labelyear,包括序言中的以下内容。

\makeatletter
\def\abx@field@labelyear{\thefield{year}}
\makeatother

这得出

在此处输入图片描述

编辑上述解决方案不适用于旧版本的 biblatex。

第二种选择是重新定义citeyearcite:labelyear+extrayearbibmacros

\newbibmacro*{cite:labelyear+extrayear}{%
    \printtext[bibhyperref]{%
       \printfield{year}%
       \printfield{extrayear}}}

\newbibmacro*{citeyear}{%
  \iffieldundef{shorthand}
    {\iffieldundef{year}
       {\bibstring{nodate}}
       {\usebibmacro{cite:labelyear+extrayear}}}
    {\usebibmacro{cite:shorthand}}}

第二种解决方案适用于\textcite。可能需要重新定义更多 bibmacros 和 cite 命令。

相关内容