是否可以在 beamer 中的每个框架中以块的形式写入参考书目?我使用以下代码将参考书目拆分为框架:
\begin{frame}[allowframebreaks]
\frametitle{References}
\tiny{\bibliographystyle{abbrv} }
\bibliography{refs}
\end{frame}
但是如果我想将每个框架中的引用都包含在一个块中,我该怎么做?有什么建议吗?
答案1
thebibliography
如果你不介意使用,\bibliography
你也可以使用tcolorbox
\documentclass{beamer}
\usetheme{Warsaw}
\usepackage{tcolorbox}
\tcbuselibrary{skins,breakable}
\tcbset{breakable}
\setbeamertemplate{bibliography item}{}
\begin{document}
\begin{frame}[allowframebreaks]{References}
\begin{thebibliography}{}
\begin{tcolorbox}[beamer, skin=beamerfirst, colback=blue!5!white, colframe=blue!50!black, title=Bibliography]
\bibitem[{Alpher} et~al.(1948) {Alpher}, {Bethe}, \& {Gamow}]{paper}
Alpher, R. A., Bethe, H. \& Gamow, G.
\newblock{The Origin of Chemical Elements}.
\newblock{\emph{Phys. Rev.}, 73:\penalty0 803--804, Apr. 1948.}
\newblock{http://dx.doi.org/10.1103/PhysRev.73.803}
\bibitem[{Alpher} et~al.(1948) {Alpher}, {Bethe}, \& {Gamow}]{paper2}
Alpher, R. A., Bethe, H. \& Gamow, G.
\newblock{The Origin of Chemical Elements}.
\newblock{\emph{Phys. Rev.}, 73:\penalty0 803--804, Apr. 1948.}
\newblock{http://dx.doi.org/10.1103/PhysRev.73.803}
\bibitem[{Alpher} et~al.(1948) {Alpher}, {Bethe}, \& {Gamow}]{paper3}
Alpher, R. A., Bethe, H. \& Gamow, G.
\newblock{The Origin of Chemical Elements}.
\newblock{\emph{Phys. Rev.}, 73:\penalty0 803--804, Apr. 1948.}
\newblock{http://dx.doi.org/10.1103/PhysRev.73.803}
\newpage
\bibitem[{Alpher} et~al.(1948) {Alpher}, {Bethe}, \& {Gamow}]{paper4}
Alpher, R. A., Bethe, H. \& Gamow, G.
\newblock{The Origin of Chemical Elements}.
\newblock{\emph{Phys. Rev.}, 73:\penalty0 803--804, Apr. 1948.}
\newblock{http://dx.doi.org/10.1103/PhysRev.73.803}
\end{tcolorbox}
\end{thebibliography}
\vfill
\end{frame}
\end{document}
答案2
如果使用thebibliography
-environment 而不是\bibliography
,则可以很容易地将引用放入block
-environment 中。
\documentclass{beamer}
\usetheme{Warsaw}
\setbeamertemplate{bibliography item}{}
\begin{document}
\begin{frame}[allowframebreaks]{References}
\begin{thebibliography}{}
\begin{block}{Bibliographie}
\bibitem[{Alpher} et~al.(1948) {Alpher}, {Bethe}, \& {Gamow}]{paper}
Alpher, R. A., Bethe, H. \& Gamow, G.
\newblock{The Origin of Chemical Elements}.
\newblock{\emph{Phys. Rev.}, 73:\penalty0 803--804, Apr. 1948.}
\newblock{http://dx.doi.org/10.1103/PhysRev.73.803}
\bibitem[{Alpher} et~al.(1948) {Alpher}, {Bethe}, \& {Gamow}]{paper2}
Alpher, R. A., Bethe, H. \& Gamow, G.
\newblock{The Origin of Chemical Elements}.
\newblock{\emph{Phys. Rev.}, 73:\penalty0 803--804, Apr. 1948.}
\newblock{http://dx.doi.org/10.1103/PhysRev.73.803}
\bibitem[{Alpher} et~al.(1948) {Alpher}, {Bethe}, \& {Gamow}]{paper3}
Alpher, R. A., Bethe, H. \& Gamow, G.
\newblock{The Origin of Chemical Elements}.
\newblock{\emph{Phys. Rev.}, 73:\penalty0 803--804, Apr. 1948.}
\newblock{http://dx.doi.org/10.1103/PhysRev.73.803}
\end{block}
\newpage
\begin{block}{Bibliographie}
\bibitem[{Alpher} et~al.(1948) {Alpher}, {Bethe}, \& {Gamow}]{paper4}
Alpher, R. A., Bethe, H. \& Gamow, G.
\newblock{The Origin of Chemical Elements}.
\newblock{\emph{Phys. Rev.}, 73:\penalty0 803--804, Apr. 1948.}
\newblock{http://dx.doi.org/10.1103/PhysRev.73.803}
\end{block}
\end{thebibliography}
\end{frame}
\end{document}