使用 Biber 删除 Beamer 参考书目中的页码

使用 Biber 删除 Beamer 参考书目中的页码

我正在尝试删除 beamer 中打印的参考书目幻灯片中出现的页码(使用 biber),而不使用plain中的选项\begin{frame}[allowframebreaks,noframenumbering]

我的问题非常类似这个。但是,建议的解决方案:

\setbeamertemplate{page number in head/foot}{}
\begin{frame}[allowframebreaks,noframenumbering]
%\begin{multicols}{2}
\color{black}
\frametitle{} 
\bibliographystyle{alpha}
\small

\bibliography{\jobname}
%\end{multicols}
\end{frame}

适用于以下情况时对我不起作用:

\setbeamertemplate{page number in head/foot}{}
\begin{frame}[allowframebreaks,noframenumbering]{Bibliography}
\begin{refcontext}[sorting=nyt]
  \printbibliography
\end{refcontext}
\end{frame}

正如我总是得到:

在此处输入图片描述

这是我的 tex 代码:

\documentclass{beamer}
\usepackage[T1]{fontenc}
\usepackage[backend=biber, bibstyle=apa, citestyle = apa, sortcites=false]{biblatex}

\addbibresource{Bibliography/Short_Library.bib}

\renewcommand*{\nameyeardelim}{\addcomma\addspace} 
\renewcommand*{\bibfont}{\tiny} 

\usepackage{hyperref}
\hypersetup{
    colorlinks,
    linkcolor={},
    citecolor={blue},
    urlcolor={blue}
}
\usepackage{dirtytalk} 
\usepackage{scalerel}
\usepackage[export]{adjustbox}
\usepackage{caption}
\usepackage{graphicx}

\usetheme{Dresden}
\setbeamertemplate{footline}[frame number]
\usefonttheme{structuresmallcapsserif}
\usecolortheme{rose}
\newenvironment{trienv}{\only{\setbeamertemplate{items}[triangle]}}{}
\newenvironment{squareenv}{\only{\setbeamertemplate{items}[square]}}{}

\usepackage{booktabs}

\usepackage{dcolumn} 
\usepackage{rotating} 

\beamertemplatenavigationsymbolsempty

\begin{document}

\begin{frame}{Citations}
    In text 1: 
\begin{itemize}
    \item \parencite{BCBS_RCAP2013_RWA}
    \item \parencite{BCBSNewMotto2013,BCBSNewMotto2014}
\end{itemize}
\end{frame}

\begin{frame}{Citations}
    In text 2: 
\begin{itemize}
    \item \textcite{Altman2005DRlinkLGD}
    \item \textcite{Gordy2003,Cespedes2020LGDPDModel}
\end{itemize}
\end{frame}

\setbeamertemplate{page number in head/foot}{}
\begin{frame}[allowframebreaks,noframenumbering]{Bibliography}
\begin{refcontext}[sorting=nyt]
  \printbibliography
\end{refcontext}
\end{frame}


\end{document}

我的 bib 文件如下:

@techreport{BCBSNewMotto2013,
author = {{BCBS}},
address = {Basel, Switzerland},
institution = {Bank for International Settlements},
isbn = {9291319406},
number = {October},
pages = {1--23},
title = {{Discussion paper - The regulatory framework: balancing risk sensitivity, simplicity and comparability}},
url = {https://www.bis.org/publ/bcbs258.htm},
year = {2013}
}

@techreport{BCBS_RCAP2013_RWA,
author = {BCBS},
institution = {Bank for International Settlements},
address = {Basel, Switzerland},
abstract = {This document is called BCBS 256. This is where it all started (Basel IV). This document outlines for the first time "formally" the huge variability registered within the RWA computations across banks.},
isbn = {929131966X},
keywords = {BCBS},
number = {October},
pages = {57},
title = {{Regulatory Consistency Assessment Programme (RCAP) – Analysis of risk-weighted assets for credit risk in the banking book}},
year = {2013}
}

@techreport{BCBSNewMotto2014,
abstract = {This document is called BCBS 306. This document introduces for the first time the motto: greater simplicity, comparability and risk sensitivity of the risk-weighted assets computations.},
address = {Basel, Switzerland},
author = {{BCBS}},
isbn = {9789291973804},
keywords = {BCBS},
number = {December 2014},
pages = {12},
institution = {{Bank for International Settlements}},
title = {{Consultative document - Capital floors: the design of a framework based on standardised approaches}},
year = {2014}
}

@article{Gordy2003,
author = {Gordy, Michael B.},
doi = {10.1016/S1042-9573(03)00040-8},
isbn = {1042-9573},
issn = {10429573},
journal = {Journal of Financial Intermediation},
keywords = {Banking regulation,Capital allocation,Value-at-risk},
number = {3},
pages = {199--232},
title = {{A risk-factor model foundation for ratings-based bank capital rules}},
volume = {12},
year = {2003}
}

@article{Cespedes2020LGDPDModel,
  title={{Random LGD adjustments in the Vasicek credit risk model}},
  author={Garc{\'\i}a-C{\'e}spedes, Rub{\'e}n and Moreno, Manuel},
  journal={The European Journal of Finance},
  doi={https://doi.org/10.1080/1351847X.2020.1789685},
  volume={26},
  number={18},
  pages={1856--1875},
  year={2020},
  publisher={Taylor \& Francis}
}

@article{Altman2005DRlinkLGD,
  title={{The Link between Default and Recovery Rates: Theory, Empirical Evidence, and Implications}},
  author={Altman, Edward I and Brady, Brooks and Resti, Andrea and Sironi, Andrea},
  journal={The Journal of Business},
  volume={78},
  number={6},
  doi={https://doi.org/10.1086/497044},
  pages={2203--2228},
  year={2005},
  publisher={JSTOR}
}

我尝试了很多在文章类中有效的解决方案的组合,但在 Beamer 中似乎没有什么效果,例如,\nopagenumbering\pagenumbering{gobble}

关于如何解决该问题有什么建议吗?

多谢 !

答案1

有几个问题:

  • 由于参考书目错误,您的文档无法编译。请\'i使用\'\i

  • 正如之前所说,您不需要加载graphicxhyperref包,beamer 会为您加载它们

  • 正如之前所说,最好不要弄乱链接颜色,这会破坏 beamer 精心设置的颜色主题

  • 由于您用覆盖了正常的页脚线\setbeamertemplate{footline}[frame number],因此您必须重新定义页脚线才能删除帧编号


\documentclass{beamer}
\usepackage[T1]{fontenc}
\usepackage[backend=biber, bibstyle=apa, citestyle = apa, sortcites=false]{biblatex}

\begin{filecontents*}[overwrite]{\jobname.bib}
@techreport{BCBSNewMotto2013,
author = {{BCBS}},
address = {Basel, Switzerland},
institution = {Bank for International Settlements},
isbn = {9291319406},
number = {October},
pages = {1--23},
title = {{Discussion paper - The regulatory framework: balancing risk sensitivity, simplicity and comparability}},
url = {https://www.bis.org/publ/bcbs258.htm},
year = {2013}
}

@techreport{BCBS_RCAP2013_RWA,
author = {BCBS},
institution = {Bank for International Settlements},
address = {Basel, Switzerland},
abstract = {This document is called BCBS 256. This is where it all started (Basel IV). This document outlines for the first time "formally" the huge variability registered within the RWA computations across banks.},
isbn = {929131966X},
keywords = {BCBS},
number = {October},
pages = {57},
title = {{Regulatory Consistency Assessment Programme (RCAP) – Analysis of risk-weighted assets for credit risk in the banking book}},
year = {2013}
}

@techreport{BCBSNewMotto2014,
abstract = {This document is called BCBS 306. This document introduces for the first time the motto: greater simplicity, comparability and risk sensitivity of the risk-weighted assets computations.},
address = {Basel, Switzerland},
author = {{BCBS}},
isbn = {9789291973804},
keywords = {BCBS},
number = {December 2014},
pages = {12},
institution = {{Bank for International Settlements}},
title = {{Consultative document - Capital floors: the design of a framework based on standardised approaches}},
year = {2014}
}

@article{Gordy2003,
author = {Gordy, Michael B.},
doi = {10.1016/S1042-9573(03)00040-8},
isbn = {1042-9573},
issn = {10429573},
journal = {Journal of Financial Intermediation},
keywords = {Banking regulation,Capital allocation,Value-at-risk},
number = {3},
pages = {199--232},
title = {{A risk-factor model foundation for ratings-based bank capital rules}},
volume = {12},
year = {2003}
}

@article{Cespedes2020LGDPDModel,
  title={{Random LGD adjustments in the Vasicek credit risk model}},
  author={Garc{\'i}a-C{\'e}spedes, Rub{\'e}n and Moreno, Manuel},
  journal={The European Journal of Finance},
  doi={https://doi.org/10.1080/1351847X.2020.1789685},
  volume={26},
  number={18},
  pages={1856--1875},
  year={2020},
  publisher={Taylor \& Francis}
}

@article{Altman2005DRlinkLGD,
  title={{The Link between Default and Recovery Rates: Theory, Empirical Evidence, and Implications}},
  author={Altman, Edward I and Brady, Brooks and Resti, Andrea and Sironi, Andrea},
  journal={The Journal of Business},
  volume={78},
  number={6},
  doi={https://doi.org/10.1086/497044},
  pages={2203--2228},
  year={2005},
  publisher={JSTOR}
}

\end{filecontents*}

\addbibresource{\jobname.bib}

\renewcommand*{\nameyeardelim}{\addcomma\addspace} 
\renewcommand*{\bibfont}{\tiny} 

%\usepackage{hyperref}
%\hypersetup{
%    colorlinks,
%    linkcolor={},
%    citecolor={blue},
%    urlcolor={blue}
%}
\usepackage{dirtytalk} 
\usepackage{scalerel}
\usepackage[export]{adjustbox}
\usepackage{caption}
%\usepackage{graphicx}

\usetheme{Dresden}
\setbeamertemplate{footline}[frame number]
\usefonttheme{structuresmallcapsserif}
\usecolortheme{rose}
\newenvironment{trienv}{\only{\setbeamertemplate{items}[triangle]}}{}
\newenvironment{squareenv}{\only{\setbeamertemplate{items}[square]}}{}

\usepackage{booktabs}

\usepackage{dcolumn} 
\usepackage{rotating} 

\beamertemplatenavigationsymbolsempty

\begin{document}

\begin{frame}
  \frametitle{Citations}
    In text 1: 
\begin{itemize}
    \item \parencite{BCBS_RCAP2013_RWA}
    \item \parencite{BCBSNewMotto2013,BCBSNewMotto2014}
\end{itemize}
\end{frame}

\begin{frame}
  \frametitle{Citations}
    In text 2: 
\begin{itemize}
    \item \textcite{Altman2005DRlinkLGD}
    \item \textcite{Gordy2003,Cespedes2020LGDPDModel}
\end{itemize}
\end{frame}

\setbeamertemplate{footline}{}
\begin{frame}[allowframebreaks,noframenumbering]
  \frametitle{Bibliography}
\begin{refcontext}[sorting=nyt]
  \printbibliography
\end{refcontext}
\end{frame}

\end{document}

在此处输入图片描述

相关内容