我已经安装了 biber 1.8。
当我运行这个最小的 biblatex 示例时:
\documentclass{beamer}
\usepackage{lmodern}
\usepackage[labelformat=empty,font=scriptsize,skip=0pt,justification=justified,singlelinecheck=false]{caption}
\usepackage[style=numeric,backend=biber]{biblatex}
%remove the icon
\setbeamertemplate{bibliography item}{}
%remove line breaks
\setbeamertemplate{bibliography entry title}{}
\setbeamertemplate{bibliography entry location}{}
\setbeamertemplate{bibliography entry note}{}
\begin{document}
\begin{frame}
\frametitle{Phenotypic variability}
\begin{minipage}{.35\textwidth}
\includegraphics[width=\linewidth]{example-image}
\captionof{figure}{\cite{Waddington1959}}
\end{minipage}\hfill
\begin{minipage}{.6\textwidth}
\begin{itemize}
\item This is a test
\item This is a test \cite{VanDyk1989}
\end{itemize}
\end{minipage}\hfill
\begin{itemize}
\item This is a test
\end{itemize}
\end{frame}
\begin{frame}[allowframebreaks]%in case more than 1 slide needed
{\footnotesize
\bibliographystyle{apalike}
\bibliography{TEST.bib}
}
\end{frame}
\end{document}
测试.bib:
@article{Waddington1959,
abstract = {THE battle, which raged for so long between the theories of evolution supported by geneticists on one hand and by naturalists on the other, has in recent years gone strongly in favour of the former. Few biologists now doubt that genetical investigation has revealed at any rate the most important categories of hereditary variation; and the classical 'naturalist' theory-the inheritance of acquired characters-has been very generally relegated to the background because, in the forms in which it has been put forward, it has required a type of hereditary variation for the existence of which there was no adequate evidence.},
author = {Waddington, C H},
doi = {10.1038/1831654a0},
isbn = {0201483645},
issn = {0028-0836},
journal = {Nature},
keywords = {Genetics},
pages = {1654--1655},
pmid = {13666847},
title = {{Canalization of development and genetic assimilation of acquired characters.}},
volume = {183},
year = {1959}
}
@article{VanDyk1989,
abstract = {The way in which proteins attain and maintain their final form is of fundamental importance. Recent work has focused on the role of a set of ubiquitous proteins, termed chaperonins, in the assembly of phage and multisubunit proteins. The range of chaperonin action is unknown; they could interact with most cellular polypeptides or have a limited subset of protein partners. Included in the chaperonin family is the essential heat-shock regulated Escherichia coli groEL gene product. Over-expression of the groE operon in E. coli causes enhanced assembly of heterologously expressed ribulose bisphosphate carboxylase subunits and suppresses the heat-sensitive mutant phenotype of several dnaA alleles. It has been inferred that suppression of heat-sensitive mutations is confined to dnaA alleles and that this confinement could reflect an interaction between the groE operon products and a dnaA protein aggregate at the replication origin. We now report that multiple copies of the groE operon suppress mutations in genes encoding several diverse proteins. Our data indicate a general role for the groE operon products, the GroEL and GroES proteins, in the folding-assembly pathways of many proteins.},
author = {{Van Dyk}, T K and Gatenby, A A and LaRossa, R A},
issn = {0028-0836},
journal = {Nature},
pages = {451--453},
pmid = {2573840},
title = {{Demonstration by genetic suppression of interaction of GroE products with many proteins.}},
volume = {342},
year = {1989}
}
有两件事不起作用。
首先,文中的参考文献显示为[VanDyk1989]
而不是(“Van Dyk and al.”)。
其次,最后一帧仅包含文本“TEST.bib”,而不是实际的参考文献。
我想知道如何修复这个问题。我以前从未将 beamer 与 biblatex 一起使用过,不太清楚 bibtex 和 biblatex 之间的区别,而且我只需要参考书目文件像在原始(非 beamer)latex 文档中一样工作。
答案1
使用
\usepackage[style=authoryear,backend=biber]{biblatex}
\addbibresource{TEST.bib}
[...]
\begin{frame}[allowframebreaks]%in case more than 1 slide needed
\footnotesize
\printbibliography
\end{frame}
然后pdflatex file
再次运行biber file
pdflatex