如何成功地將參考書目放入 TexShop 的報告中?

如何成功地將參考書目放入 TexShop 的報告中?

我試圖在我的 LaTeX 文件中放入參考書目,但是當我在 BibTeX 中運行它時出現各種錯誤(說沒有\citation找到等),並且當我在 LaTeX 中排版時,PDF 中沒有打印參考書目。我的程式碼如下:

\documentclass[12pt]{report}
...
\usepackage{biblatex}
\addbibresource{SUSYBib.bib}
...
\begin{document}
...\cite{1}...
...\cite{2}...
\nocite{*}
\printbibliography
\end{document}

我的 .bib 檔案讀取為

@book{1,
title={The Schrödinger Equation},
author={F. A. Berezin, M. A. Shubin},
year={1983},
publisher={Moscow State University, Moscow},
pages={57-59}
}
@book{2,
title={An Introduction to Measure Theory},
author={Terence Tao},
year={2011},
publisher={American Mathematical Society},
pages={91}
}

答案1

我認為你錯過了inputenc序言中的包裹。需要告訴您的 (La)TeX 您使用哪種字元編碼,例如。對於參考書目中的 ö:

\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}

\usepackage[backend = biber]{biblatex}
\addbibresource{SUSYBib.bib}
\begin{document}
\cite{ab}
\cite{bc}
\nocite{*}
\printbibliography
\end{document}

對我來說,您需要配置 TeXShop 才能正確編譯文件:

  1. 設定 TeXShop 運行 biber:tex.stackexchange.com/questions/154751/...
  2. 並從下拉式選單中選擇“pdflatexmk”(在排版按鈕的左側)

工作了。

令人驚訝的是,在文件中添加% !TEX TSprogram = pdflatexmk第一行.tex(按照評論中的建議)不起作用(TeXShop 3.62,texlive 2016)。

相關內容