Beamer:biblatex 书目中的竖线符合 ISO960 样式

Beamer:biblatex 书目中的竖线符合 ISO960 样式

我正在使用beamerISO960 样式biblatex( style=iso-authoryear)。打印一组幻灯片的参考书目时,每个条目在框架的左边缘都有一条非常细的垂直条,我想避免这种情况。以下是 MWE:

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8
%!TEX spellcheck = en_US
\documentclass{beamer}
\usepackage[style=iso-authoryear]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{beamer-references-test.bib}
@Article{Hines2010,
  author    = {James R. Hines},
  journal   = {Journal of Economic Perspectives},
  title     = {Treasure {Islands}},
  year      = {2010},
  month     = nov,
  number    = {4},
  pages     = {103--126},
  volume    = {24},
  doi       = {10.1257/jep.24.4.103},
  publisher = {American Economic Association},
}
\end{filecontents}
\addbibresource{beamer-references-test.bib}
\usepackage{hyperref}
\usetheme{Madrid}
\setbeamertemplate{navigation symbols}{}
\begin{document}
    \begin{frame}[allowframebreaks]
        \frametitle{References}
        \nocite{*}
        \printbibliography
    \end{frame}
\end{document}

得出的结果为:

在此处输入图片描述

我该如何避免这种情况?

答案1

那不是一个垂直条,那只是从页面上推出来的书目项目图标的边缘。

对于作为 biblatex 包的一部分分发的样式,beamer 会自动修复这个问题,但你也可以使用相同的技术来修复你的样式:

\documentclass{beamer}

\usepackage[style=iso-authoryear]{biblatex}

\makeatletter
\mode<presentation>{%
  \pretocmd{\bibsetup}{%
    \settowidth\beamer@bibiconwidth{\usebeamertemplate*{bibliography item}}%
    \setlength{\labelwidth}{-\beamer@bibiconwidth}%
    \addtolength{\labelwidth}{2\labelsep}%
    \addtolength{\bibhang}{\labelsep}%
  }{}{}%
}
\makeatother

\begin{filecontents}{beamer-references-test.bib}
@Article{Hines2010,
  author    = {James R. Hines},
  journal   = {Journal of Economic Perspectives},
  title     = {Treasure {Islands}},
  year      = {2010},
  month     = nov,
  number    = {4},
  pages     = {103--126},
  volume    = {24},
  doi       = {10.1257/jep.24.4.103},
  publisher = {American Economic Association},
}
\end{filecontents}
\addbibresource{beamer-references-test.bib}
\usepackage{hyperref}
\usetheme{Madrid}
\setbeamertemplate{navigation symbols}{}
\begin{document}
    \begin{frame}[allowframebreaks]
        \frametitle{References}
        \nocite{*}
        \printbibliography
    \end{frame}
\end{document}

在此处输入图片描述

相关内容