我曾经尝试在文档中打印参考书目,但遇到了很多困难。我编写了 MWE,但发现问题更多。
\documentclass{article}
\usepackage[english]{babel}
\usepackage[backend=biber]{biblatex}
\usepackage[autostyle,english=american]{csquotes}
\addbibresource{tb.bib}
\begin{document}
I'd like to cite Masere and friends \cite{masere}, as well as Strogatz \cite{strogatz}.
\printbibliography
\end{document}
该.bib
文件包含以下内容:
@article{masere,
author="J. Masere, D. A. Vasquez, B. F. Edwards, J. W. Wilder, and K. Showalter",
title="Nonaxisymmetric and Axisymmetric Convection in Propagating Reaction-Diffusion Fronts",
journal="J. Phys. Chem.",
volume="98",
number="26",
pages="6505--6508",
year="1994",
doi="http://dx.doi.org/10.1021/j100077a014",
}
@book{strogatz,
title={Nonlinear Dynamics and Chaos},
subtitle={With Applications to Physics, Biology, Chemistry, and Engineering},
author={S. H. Strogatz},
isbn={0-201-54344-3},
series={Studies in Nonlinearity},
year={1994},
publisher={Perseus Books},
}
pdflatex test.tex
在命令提示符下使用后,我得到以下内容:
No file test.bbl.
LaTeX Warning: Citation 'masere' on page 1 undefined on input line 9.
LaTeX Warning: Citation 'strogatz' on page 1 undefined on input line 9.
LaTeX Warning: Empty bibliography on input line 10.
[1{C:/ProgramData/MiKTeX/2.9/pdftex/config/pdftex.map}]
(C:\Users\me\Documents\Sandbox\test.aux)
LaTeX Warning: There were undefined references.
Package biblatex Warning: Please (re)run Biber on the file:
(biblatex) test
(biblatex) and rerun LaTeX afterwards.
之后,我使用biber test.tex
并得到:
INFO - This is Biber 2.1
INFO - Logfile is 'test.tex.blg'
ERROR - Cannot find control file 'test.tex.bcf'! - did you pass the "backend=biber" option to BibLaTeX?
INFO - ERRORS: 1
我也在原始文件中发现了这一点ERROR
,现在我真的不知道该怎么办。我刚刚意识到这个问题很长,对此我深表歉意。任何帮助都将不胜感激。
答案1
检查您的 tex 文件所在的文件夹。Pdflatex 应该已test.bcf
在该文件夹中创建了该文件。(至少,在我的计算机上是这样的。)
请注意,biber 正在test.tex.bcf
寻找二扩展。也许你需要运行biber test
(而不是 biber test.tex
)。
答案2
如果你稍微努力一下,它应该会正常工作。
\documentclass{article}
\usepackage[english]{babel}
%\usepackage[backend=biber]{biblatex}
\usepackage[authoryear,numbers,round]{natbib}
\usepackage[autostyle,english=american]{csquotes}
%\addbibresource{test.bib}
\begin{document}
I'd like to cite Masere and friends \cite{masere}, as well as Strogatz \cite{strogatz}.
\bibliographystyle{plainnat}
\bibliography{test}
%\printbibliography
\end{document}
只需输入。围兜把文件放在同一个文件夹中,或者把路径文件放到\参考书目而且它应该可以正常工作。