我在 Beamer 中的参考页面遇到了问题

我在 Beamer 中的参考页面遇到了问题

我正在做 Beamer 演示,但参考页面无法加载。这是我使用的代码

\usepackage{amsmath}
\usepackage{biblatex}
\bibliography{Master.bib}


\begin{frame}{References}
\nocite{*}
\printbibliography
\end{frame}

这就是我的Master.bib样子

@article{hafsteinsson2009porous,
Author = {Hafsteinsson, Haukur Elvar},
Date-Added = {2017-04-03 05:13:42 +0000},
Date-Modified = {2017-04-03 05:13:42 +0000},
Journal = {Chalmers University of Technology, Gothenburg},
Title = {Porous media in OpenFOAM},
Year = {2009}}

@article{domaingo2016semi,
Author = {Domaingo, Andreas and Langmayr, Daniel and Somogyi, Bence and Almbauer, Raimund},
Date-Added = {2017-04-03 05:12:59 +0000},
Date-Modified = {2017-04-03 05:12:59 +0000},
Journal = {Transport in Porous Media},
Number = {2},
Pages = {451--466},
Publisher = {Springer},
Title = {A Semi-implicit Treatment of Porous Media in Steady-State CFD},
Volume = {112},
Year = {2016}}

我已经尽我所能,没有使用标签 \bibliography{Master.bib},而是直接将其用于参考框架,但仍然不起作用,我也做了一些改变,\bibliographystyle{•}但当我没有使用标签时,我没有收到任何错误,它会构建它,但页面上没有任何参考。我已经完成了 PDFLaTeX、BibTeX、PDFLaTeX、PDFLaTeX,但这对我的问题没有帮助。我也将它放在Master.bib与我的所有文件相同的目录中.tex。任何帮助都将不胜感激。

答案1

biblatex有自己的数据后端处理器,biber当你不指定任何内容时,它是默认的:

\usepackage{biblatex}

因此,您必须使用以下内容来编译您的文档:pdflatex > biber > pdflatex > pdflatex,注意用biber而不是bibtex(这是最佳解决方案)。

如果您使用arara,它会为您完成此操作(只有您使用它时这里的前 4 行才是必要的):

% arara: pdflatex
% arara: biber
% arara: pdflatex
% arara: pdflatex
\begin{filecontents}{Master.bib}
    @article{hafsteinsson2009porous,
        Author = {Hafsteinsson, Haukur Elvar},
        Date-Added = {2017-04-03 05:13:42 +0000},
        Date-Modified = {2017-04-03 05:13:42 +0000},
        Journal = {Chalmers University of Technology, Gothenburg},
        Title = {Porous media in OpenFOAM},
        Year = {2009}}

    @article{domaingo2016semi,
        Author = {Domaingo, Andreas and Langmayr, Daniel and Somogyi, Bence and Almbauer, Raimund},
        Date-Added = {2017-04-03 05:12:59 +0000},
        Date-Modified = {2017-04-03 05:12:59 +0000},
        Journal = {Transport in Porous Media},
        Number = {2},
        Pages = {451--466},
        Publisher = {Springer},
        Title = {A Semi-implicit Treatment of Porous Media in Steady-State CFD},
        Volume = {112},
        Year = {2016}}
\end{filecontents}

\documentclass[12pt]{beamer}

\usepackage{amsmath}
\usepackage{biblatex}

\bibliography{Master.bib}

\begin{document}
\begin{frame}{References}
\nocite{*}
\printbibliography
\end{frame}
\end{document} 

如果您想使用bibtex后端处理器,第二个最佳解决方案是这么写:

\usepackage[backend=bibtex]{biblatex}

并使用以下命令进行编译:(pdflatex > bibtex > pdflatex > pdflatex或者,如果您使用arara,则添加在此处找到的前 4 行):

% arara: pdflatex
% arara: bibtex
% arara: pdflatex
% arara: pdflatex
\begin{filecontents}{Master.bib}
    @article{hafsteinsson2009porous,
        Author = {Hafsteinsson, Haukur Elvar},
        Date-Added = {2017-04-03 05:13:42 +0000},
        Date-Modified = {2017-04-03 05:13:42 +0000},
        Journal = {Chalmers University of Technology, Gothenburg},
        Title = {Porous media in OpenFOAM},
        Year = {2009}}

    @article{domaingo2016semi,
        Author = {Domaingo, Andreas and Langmayr, Daniel and Somogyi, Bence and Almbauer, Raimund},
        Date-Added = {2017-04-03 05:12:59 +0000},
        Date-Modified = {2017-04-03 05:12:59 +0000},
        Journal = {Transport in Porous Media},
        Number = {2},
        Pages = {451--466},
        Publisher = {Springer},
        Title = {A Semi-implicit Treatment of Porous Media in Steady-State CFD},
        Volume = {112},
        Year = {2016}}
\end{filecontents}

\documentclass[12pt]{beamer}

\usepackage{amsmath}
\usepackage[backend=bibtex]{biblatex}

\bibliography{Master.bib}

\begin{document}
\begin{frame}{References}
\nocite{*}
\printbibliography
\end{frame}
\end{document}

但是,对于您来说,输出是相同的:

在此处输入图片描述

相关内容