我正在尝试做一件本该很简单的事情:在 Beamer 的最后一张幻灯片中一次性添加所有参考文献。我已完成以下 MWE,但 BibTeX 退出时出现错误,并且未添加参考文献... 也许我没有该文件authortitle1
?它应该默认包含在内吗?
如果我尝试使用我自己bst
生成的文件,makebst
我会得到多个类型的错误
“未定义的控制序列”、“缺失数字”
ETC。
这是 MWE:
\documentclass{beamer}
\usepackage{lmodern}
\usepackage{cite}
\usepackage[labelformat=empty,font=scriptsize,skip=0pt,justification=justified,singlelinecheck=false]{caption}
\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}
{\footnotesize
\bibliographystyle{authortitle1}
\bibliography{TEST}
}
\end{frame}
\end{document}
TEST.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}
}
编辑:如果我删除\usepackage{cite}
并使用,它apalike
就会authortitle1
起作用。所以我的新问题是:
- 我如何知道我有哪些书目样式,哪些没有?我只有以下
bst
文件
在/usr/share/texlive/texmf-dist/bibtex/bst/base/
我可以在哪里获得更多?
abbrv.bst acm.bst alpha.bst apalike.bst ieeetr.bst plain.bst siam.bst unsrt.bst
- 我怎样才能删除参考部分的换行符?
答案1
以下 MWE 可以工作,删除 \usepackage{cite} 并使用不同的样式,如 apalike。图标可以轻松删除,如 MWE 中所示。换行符是样式固有的,您可以编写 MWE 中显示的 3 行,也可以使用 makebst 创建不包含换行符的自己的样式。可以从以下位置下载更多样式http://schneider.ncifcrf.gov/latex.html例如。
\documentclass{beamer}
\usepackage{lmodern}
\usepackage[labelformat=empty,
font=scriptsize,
skip=0pt,
justification=justified,
singlelinecheck=false]{caption}
%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}
}
\end{frame}
\end{document}