首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >印刷书目:空白书目

印刷书目:空白书目
EN

Stack Overflow用户
提问于 2021-09-19 11:42:30
回答 1查看 12.5K关注 0票数 1

已经好几天了,我一直在寻找一个有效的解决方案,但它从来没有起作用。

最起码的可重现性示例如下:

代码语言:javascript
运行
复制
\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} 

Test.bib:

代码语言:javascript
运行
复制
@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},

Test.blg:

代码语言:javascript
运行
复制
[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. ! Missing $ inserted. ! Extra }, or forgotten $.在第15行:! Missing $ inserted.在第16行:LaTeX Warning: Empty bibliography on input line 16.

我在Linux上运行,Texlive2019 (apt安装了那个,而不是最近的)和文本制造者在Ubuntu20.04上。

有人找到解决办法了吗?

EN

Stack Overflow用户

回答已采纳

发布于 2021-09-19 13:03:16

两个问题:

  • }在您的bib条目末尾缺少

默认情况下,

  • \citep{}不是由圣经提供的。您可以使用\parencite{}或biblatex

natbib=true选项。

代码语言:javascript
运行
复制
\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} 

票数 3
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69242920

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档