簡體   English   中英

打印參考書目:空參考書目

[英]Print bibliography: Empty bibliography

這幾天我一直在尋找一個有效的解決方案,但它從來沒有奏效。

最小的可重現示例如下:

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[authordate,autocite=inline,backend=biber,sorting=nyt,]{biblatex-chicago}
\addbibresource{Test.bib}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\DeclareUnicodeCharacter{202F}{\,}
\begin{document}

Test citing \citep{sanborn_learning_2014}

\printbibliography
\end{document} 

測試圍兜:

@article{sanborn_learning_2014,
    title = {Learning Democracy: Education and the Fall of Authoritarian Regimes},
    volume = {44},
    issn = {0007-1234, 1469-2112},
    url = {https://www.cambridge.org/core/product/identifier/S0007123413000082/type/journal_article},
    doi = {10.1017/S0007123413000082},
    shorttitle = {Learning Democracy},
    abstract = {Studies on what causes a state to democratize have focused on economic, social, and international factors. Many of them argue that higher levels of education should promote democracy. However, few articulate clearly how education affects democratization, and fewer still attempt to test the supposed link across time and space. This article fills that gap by considering how different levels of education influence democratization, and the conditions under which education is most likely to promote democracy. Analyses of eighty-five authoritarian spells from 1970 to 2008 find that higher levels of mass, primary, and tertiary education are robustly associated with democratization. Secondary analyses indicate that education is most effective in promoting democratization when both males and females are educated. An illustration from Tunisia follows.},
    pages = {773--797},
    number = {4},
    journaltitle = {British Journal of Political Science},
    shortjournal = {Brit. J. Polit. Sci.},
    author = {Sanborn, Howard and Thyne, Clayton L.},
    urldate = {2021-09-18},
    date = {2014-10},
    langid = {english},

測試.blg:

[0] Config.pm:304> INFO - This is Biber 2.14 (beta)
[0] Config.pm:307> INFO - Logfile is 'Test.blg'
[38] biber:322> INFO - === dim. sept. 19, 2021, 14:47:26
[48] Biber.pm:415> INFO - Reading 'Test.bcf'
[128] Biber.pm:943> INFO - Found 0 citekeys in bib section 0
[131] Utils.pm:293> WARN - The file 'Test.bcf' does not contain any citations!
[136] bbl.pm:652> INFO - Writing 'Test.bbl' with encoding 'UTF-8'
[136] bbl.pm:755> INFO - Output to Test.bbl
[136] Biber.pm:128> INFO - WARNINGS: 1

未在文本中引用時的警告消息是LaTeX Warning: Empty bibliography on input line 16.

文中引用時的錯誤和警告信息為: 第 14 行: . Undefined control sequence . Undefined control sequence . Missing $ inserted . Missing $ inserted , Extra }. or forgotten $ , Extra }. or forgotten $在第 15 行: . Missing $ inserted . Missing $ inserted第 16 行: LaTeX Warning: Empty bibliography on input line 16.

我在 Linux、Texlive2019(安裝那個,而不是更新的)和 texmaker 上運行 Ubuntu 20.04。

有人有解決方案嗎?

兩個問題:

  • 您的圍兜條目末尾的}丟失了

  • \citep{}默認情況下 biblatex 不提供。 您可以改用\parencite{}或 biblatex 的natbib=true選項


\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[authordate,autocite=inline,backend=biber,sorting=nyt,natbib=true]{biblatex-chicago}


\begin{filecontents*}[overwrite]{\jobname.bib}
@article{sanborn_learning_2014,
    title = {Learning Democracy: Education and the Fall of Authoritarian Regimes},
    volume = {44},
    issn = {0007-1234, 1469-2112},
    url = {https://www.cambridge.org/core/product/identifier/S0007123413000082/type/journal_article},
    doi = {10.1017/S0007123413000082},
    shorttitle = {Learning Democracy},
    abstract = {Studies on what causes a state to democratize have focused on economic, social, and international factors. Many of them argue that higher levels of education should promote democracy. However, few articulate clearly how education affects democratization, and fewer still attempt to test the supposed link across time and space. This article fills that gap by considering how different levels of education influence democratization, and the conditions under which education is most likely to promote democracy. Analyses of eighty-five authoritarian spells from 1970 to 2008 find that higher levels of mass, primary, and tertiary education are robustly associated with democratization. Secondary analyses indicate that education is most effective in promoting democratization when both males and females are educated. An illustration from Tunisia follows.},
    pages = {773--797},
    number = {4},
    journaltitle = {British Journal of Political Science},
    shortjournal = {Brit. J. Polit. Sci.},
    author = {Sanborn, Howard and Thyne, Clayton L.},
    urldate = {2021-09-18},
    date = {2014-10},
    langid = {english},
}
\end{filecontents*}

\addbibresource{\jobname.bib}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\DeclareUnicodeCharacter{202F}{\,}


\begin{document}

Test citing \citep{sanborn_learning_2014}

\printbibliography
\end{document} 

在此處輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM