我在使用 metropolis 主题的 beamer 中添加参考文献时遇到了问题。使用默认主题没问题,但如果我将主题切换为 metropolis,系统会添加一条水平线和“参考文献”一词,但我不想看到这些内容,因为它已经在名为“参考文献”的框架中了。
这是 MWE(这里没问题)
\documentclass[10pt,handout,english]{beamer}
\usepackage[english]{babel}
\usepackage[backend=biber,style=numeric-comp,sorting=none]{biblatex}
\usepackage{filecontents}
\begin{filecontents*}{bib2.bib}
@book{knuth,
author = {Knuth, Donald E.},
title = {The {\TeX} book},
date = 1984,
maintitle = {Computers \& Typesetting},
volume = {A},
publisher = {Addison-Wesley},
location = {Reading, Mass.},
langid = {english},
langidopts = {variant=american},
sortyear = {1984-1},
sorttitle = {Computers & Typesetting A},
indexsorttitle= {The TeXbook},
indextitle = {\protect\TeX book, The},
shorttitle = {\TeX book}
}
@article{einstein,
author = {Einstein, A.},
title = {Die Grundlage der allgemeinen Relativitätstheorie},
journal = {Annalen der Physik},
volume = {354},
number = {7},
doi = {10.1002/andp.19163540702},
pages = {769--822},
year = {1916}
}
\end{filecontents*}
\addbibresource{bib2.bib}
\begin{document}
\begin{frame}
\frametitle{Title}
A reference\footfullcite{knuth}, with refbib an item of the .bib file.
\end{frame}
\begin{frame}[allowframebreaks]
\frametitle{References}
% \bibliographystyle{amsalpha}
\printbibliography
% \bibliography{bib2.bib}
\end{frame}
\end{document}
如果我添加
\usetheme[numbering=fraction,titleformat=smallcaps]{metropolis}
现在我得到了额外的水平线和“参考文献”。我在 metropolis code 中搜索与“bib”或参考文献相关的任何内容,但没有找到任何有用的内容。
答案1
你可以做一个
\begin{frame}[allowframebreaks]
\frametitle{References}
\printbibliography[heading=none]
\end{frame}
也许默认主题全局设置了此选项。