
私は Sublime Text を使用していますが、参考文献を追加しようとすると、必ず「参考文献が空です」という警告が表示されて失敗します。どうすればこの問題を解決できますか? 私のコードは次のとおりです:
\documentclass[12pt, a4paper, leqno]{article}
\usepackage{a4wide}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{appendix}
\usepackage{float, afterpage, rotating, graphicx}
\usepackage{epstopdf}
\usepackage{longtable, booktabs, tabularx}
\usepackage{fancyvrb, moreverb, relsize}
\usepackage{eurosym, calc}
\usepackage{amsmath, amssymb, amsfonts, amsthm, bm}
\usepackage{newtxtext,newtxmath}
\usepackage{caption}
\usepackage{mdwlist}
\usepackage{xfrac}
\usepackage{setspace}
\usepackage{xcolor}
\usepackage{subcaption}
\usepackage{minibox}
\usepackage{makecell}
\renewcommand{\theadfont}{\normalsize}
\usepackage{geometry}
\geometry{
left=3cm,
right=2cm,
top=2cm,
bottom=2cm,
}
\usepackage[backend=biber]{biblatex}
\addbibresource{refs.bib}
\usepackage[unicode=true]{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=black,
anchorcolor=black,
citecolor=black,
filecolor=black,
menucolor=black,
runcolor=black,
urlcolor=black
}
\widowpenalty=10000
\clubpenalty=10000
\setlength{\parskip}{2ex}
\setlength{\parindent}{0ex}
\setstretch{1.5}
\begin{document}
abcdefghijklmn...
\newpage
\printbibliography
\end{document}
私のbibファイルは
@article{acemoglu2008income,
title={Income and democracy},
author={Acemoglu, Daron and Johnson, Simon and Robinson, James A and Yared, Pierre},
journal={American Economic Review},
volume={98},
number={3},
pages={808--42},
year={2008}
}
@book{baltagi2008econometric,
title={Econometric analysis of panel data},
author={Baltagi, Badi},
year={2008},
publisher={John Wiley \& Sons}
}
@article{kiviet1995bias,
title={On bias, inconsistency, and efficiency of various estimators in dynamic panel data models},
author={Kiviet, Jan F},
journal={Journal of econometrics},
volume={68},
number={1},
pages={53--78},
year={1995},
publisher={Elsevier}
}
答え1
文書内のソースを引用して参考文献に表示する必要があります。.tex ファイルを次のように変更します。
\documentclass[12pt, a4paper, leqno]{article}
\usepackage[backend=biber]{biblatex}
\addbibresource{refs.bib}
\begin{document}
a\autocite[\pno~1]{acemoglu2008income}
b\autocite{baltagi2008econometric}
cdefghijklmn...
\nocite{kiviet1995bias}
\newpage
\printbibliography
\end{document}
これで動作するはずです。すべての参照と注釈を正しく取得するには、pdflatex、biber、pdflatex、pdflatex を実行することを忘れないでください。
次の質問では、最小限の動作例(余分な usepackages なし)を投稿することを検討してください。最小限の例を作成すると、問題が明らかになる場合があります。