打印参考书目时出错

打印参考书目时出错

编译后,我没有看到 pdf 中打印的任何参考书目。有人能指出问题吗?以下是我的 latex 代码

\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。

  1. 转到菜单栏并选择“选项”->“配置 TeX Studio”。

  2. 在左侧边栏中,选择“构建”。

  3. 在“默认参考书目工具”下拉菜单中,选择“Biber”而不是“BibTeX”。

  4. 单击“确定”应用更改。

完成这些更改后,您可以再次编译 LaTeX 文档。TeX Studio 现在应该使用 Biber 和 Biblatex 进行参考书目处理。

相关内容