当将 biblatex 与 beamerposter 结合使用时,我在参考书目引用计数器的位置上出现了一个奇怪的符号。这是我用来重现问题的最少代码。
梅威瑟:
\documentclass[t]{beamer}
\usepackage[orientation=landscape,size=a1,scale=1.4]{beamerposter}
\usepackage[absolute,overlay]{textpos}
\usepackage[backend=biber, maxbibnames=2, maxcitenames=2, sortcites=true, style=authoryear]{biblatex}
\renewcommand*{\bibfont}{\small}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{dr1957cat,
title={The Cat in the Hat},
author={Seuss, Dr. and Ginsburg, Avi},
series={Beginner books},
year={1957},
publisher={Random House}
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\usetheme{default}
\useinnertheme{rectangles}
\begin{document}
\begin{frame}[label={sec:org1b2094c}]{}
\begin{columns}
\begin{column}{0.9\columnwidth}
\begin{block}{Introduction}
Fusce sagittis, libero non molestie mollis, magna orci ultrices dolor, at vulputate neque nulla lacinia eros. Aliquam erat volutpat. Nunc eleifend leo vitae magna. \cite{dr1957cat} In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus.
\end{block}
\begin{block}{References}
\printbibliography
\end{block}
\end{column}
\end{columns}
\end{frame}
\end{document}
这是问题的图片,请注意小“纸”符号而不是参考计数器:
为了完整性,我尝试使用以下命令通过 pdflatex 和 xelatex 编译文档:
latexmk -pdflatex='pdflatex -shell-escape -interaction nonstopmode' -pdf -bibtex -f %f"
和
latexmk -pdflatex='xelatex -interaction nonstopmode' -pdf -bibtex -f %f"
CentOS 机器上的 Texlive 2016。
有人见过这种情况吗?我该怎么做才能解决这个问题?谢谢。
答案1
如果你不喜欢这个可爱的小符号,你可以用\setbeamertemplate{bibliography item}{}
\documentclass[t]{beamer}
\usepackage[orientation=landscape,size=a1,scale=1.4]{beamerposter}
\usepackage[absolute,overlay]{textpos}
\usepackage[backend=biber, maxbibnames=2, maxcitenames=2, sortcites=true, style=authoryear]{biblatex}
\renewcommand*{\bibfont}{\small}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{dr1957cat,
title={The Cat in the Hat},
author={Seuss, Dr. and Ginsburg, Avi},
series={Beginner books},
year={1957},
publisher={Random House}
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\usetheme{default}
\useinnertheme{rectangles}
\setbeamertemplate{bibliography item}{}
%\setbeamertemplate{bibliography item}{\insertbiblabel}% for numeric bib styles
\begin{document}
\begin{frame}[label={sec:org1b2094c}]{}
\begin{columns}
\begin{column}{0.9\columnwidth}
\begin{block}{Introduction}
Fusce sagittis, libero non molestie mollis, magna orci ultrices dolor, at vulputate neque nulla lacinia eros. Aliquam erat volutpat. Nunc eleifend leo vitae magna. \cite{dr1957cat} In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus.
\end{block}
\begin{block}{References}
\printbibliography
\end{block}
\end{column}
\end{columns}
\end{frame}
\end{document}