我有这个 LaTeX 文档thesis.tex
:
\documentclass[12pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[czech]{babel}
\usepackage[
backend=biber, babel=other
]{biblatex}
\bibliography{library}
\begin{document}
Citing here \cite{ahu61}
\begin{thebibliography}{99}
\printbibliography
\end{thebibliography}
\end{document}
这是 library.bib
:
@article{ahu61,
author={Arrow, Kenneth J. and Leonid Hurwicz and Hirofumi Uzawa},
title={Constraint qualifications in maximization problems},
journal={Naval Research Logistics Quarterly},
volume={8},
year = 1961,
pages = {175-191}
}
当我运行pdflatex thesis
,biber thesis
然后pdflatex thesis
再次运行时,出现此错误:
(./thesis.aux) (./thesis.bbl) [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.
map}] [2]
! LaTeX Error: Something's wrong--perhaps a missing \item.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.24
?
这是什么意思?我该怎么办?
我正在使用通过 apt-get 安装的 ubuntu 包。
答案1
该环境thebibliography
仅用于“手动输入”书目。\printbibliography
你肯定不需要它。
因此,删除\begin{thebibliography}{99}
和\end{thebibliography}
。