編譯後我沒有看到 pdf 中列印任何參考書目。有人可以指出問題嗎?以下是我的乳膠代碼
\documentclass{article}
% Page setup
\usepackage[a4paper, margin=2cm]{geometry}
% Math packages
\usepackage{amsmath} % Enhanced math functionality
\usepackage{amssymb} % Additional mathematical symbols
\usepackage{amsfonts} % Mathematical fonts
\usepackage{mathtools} % Enhancements to amsmath
% Commutative diagrams
\usepackage{tikz-cd}
% Bibliography
\usepackage[style=authoryear, backend=biber]{biblatex}
\addbibresource{references.bib} % Specify the bibliography file
% Document starts here
\begin{document}
\title{Notes on Lie-Triple systems and Lie-Yamaguti algebras}
\date{}
\maketitle
\vspace{-0.5in}
\begin{abstract}
This is the abstract.
\end{abstract}
\section{Introduction}
\section{Bibliography}
Citations can be managed using \texttt{biblatex}. Here is a sample citation \parencite{author2020}.
% Print the bibliography
\printbibliography
\end{document}
這是我的 .bib 文件
@article{author2020,
author = {Author, A.},
title = {Title of the Article},
journal = {Journal Name},
year = {2020},
volume = {1},
number = {2},
pages = {123-145},
doi = {10.1234/journal.2020.12345},
}
錯誤訊息:
點擊“建置和檢視”按鈕後,我收到以下錯誤訊息:
Process started: bibtex "notes_LYA".aux
This is BibTeX, Version 0.99d (TeX Live 2022/dev/Debian)
The top-level auxiliary file: notes_LYA.aux
I found no \citation commands---while reading file notes_LYA.aux
I found no \bibdata command---while reading file notes_LYA.aux
I found no \bibstyle command---while reading file notes_LYA.aux
(There were 3 error messages)
Process exited with error(s)
Process started: pdflatex -synctex=1 -interaction=nonstopmode "notes_LYA".tex
Process exited normally
答案1
遵循以下步驟幫助我解決了該問題:
在 TeX Studio 中,您可以依照下列步驟設定參考書目工具:
開啟 TeX Studio。
前往功能表列並選擇“選項”->“配置 TeX Studio”。
在左側邊欄中,選擇「建置」。
在「預設參考書目工具」下拉式選單中,選擇「Biber」而不是「BibTeX」。
按一下“確定”以應用變更。
進行這些變更後,您可以再次編譯 LaTeX 文件。 TeX Studio 現在應該使用 Biber 與 Biblatex 進行參考書目處理。