以下代码有什么问题?它没有在第二个书目条目中打印出版商名称。这里有什么问题?我正在将 TexStudio 与 MikConsole 一起使用。
主文件:
\documentclass[12pt, twoside]{report}
\usepackage[utf8]{inputenc}
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm, bindingoffset=6mm]{geometry}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{lipsum}
\usepackage{mwe}
\pagestyle{fancy}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{array}
\usepackage{amsfonts}
\usepackage[style=numeric, sorting=none]{biblatex}
\addbibresource{ref.bib}
\begin{document}
test example
\nocite{*}
\printbibliography
\end{document}
ref.bib 文件:
@article{einstein,
author = "Albert Einstein",
title = "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
[{On} the electrodynamics of moving bodies]",
journal = "Annalen der Physik",
volume = "322",
number = "10",
pages = "891--921",
year = "1905",
DOI = "http://dx.doi.org/10.1002/andp.19053221004",
keywords = "physics"
}
@article{understandingPrivacy,
author = "Solove Daniel J",
title = "Understanding privacy",
publisher = "Harvard University Press",
year = "2008",
}
@book{dirac,
title={The Principles of Quantum Mechanics},
author={Paul Adrien Maurice Dirac},
isbn={9780198520115},
series={International series of monographs on physics},
year={1981},
publisher={Clarendon Press},
keywords = {physics}
}
答案1
第二个条目的引用类型应该是@book
而不是@article
。条目类型@article
应该使用只针对在学术期刊上发表的文章。
此外,由于作者的姓氏是Solove
,因此您应该将该字段的参数写author
为"Solove, Daniel J."
(请注意逗号)或"Daniel J. Solove"
。
简而言之,按如下方式重写该条目:
@book{understandingPrivacy,
author = "Solove, Daniel J.",
title = "Understanding Privacy",
publisher = "Harvard University Press",
year = "2008",
}
这应该够了吧!