在 beamer 演示文稿中更改 bibtex 颜色

在 beamer 演示文稿中更改 bibtex 颜色

在我的投影仪演示中,参考书目中的项目如下所示:

我如何才能消除这种颜色变化?我需要的是所有不带粗体字体的黑色,而不是灰色。

梅威瑟:

\documentclass{beamer}
\usepackage[english,russian]{babel}
\usepackage[utf8]{inputenc}
\usepackage{caption,ragged2e,enumerate}
\usefonttheme{serif}
\usetheme{metropolis}

\makeatletter
\renewcommand\@biblabel[1]{#1.}
\makeatother

\setbeamertemplate{bibliography entry title}{}
\setbeamertemplate{bibliography entry location}{}

\begin{document}

    \begin{frame}[t,allowframebreaks]
    \cite{Zim:07} \cite{Dal:88}
    \setbeamertemplate{bibliography item}[text]
    \bibliographystyle{ugost2008}
    \bibliography{bl}
    \end{frame}

\end{document}

bl.bib:

@Book{Zim:07,
  author   = {P. Zimbardo},
  title    = {Lucifer Effect Understanding How Good People Turn Evil [Текст]},
  year     = {2007},
  language = {russian},
}

@InBook{Dal:88,
  author   = {В.И. Даль},
  title    = {Толковый словарь живого Великорусского языка, том второй [Текст]},
  year     = {1881},
  language = {russian},
  pages    = {807},
}

sharelatex 上的 MWE。

答案1

最简单的解决方案是使用moloch主题而不是metropolis。 Moloch 是 metropolis 的现代化分支,具有一些有用的更改。除其他外,它不会改变参考书目字体:

\documentclass{beamer}
\usepackage[english,russian]{babel}
\usepackage[utf8]{inputenc}
\usepackage{caption,ragged2e,enumerate}
\usefonttheme{serif}
\usetheme{moloch}% modern fork of the metropolis theme

\makeatletter
\renewcommand\@biblabel[1]{#1.}
\makeatother

\setbeamertemplate{bibliography entry title}{}
\setbeamertemplate{bibliography entry location}{}

\begin{filecontents*}[overwrite]{\jobname.bib}
@Book{Zim:07,
  author   = {P. Zimbardo},
  title    = {Lucifer Effect Understanding How Good People Turn Evil [Текст]},
  year     = {2007},
  language = {russian},
}

@InBook{Dal:88,
  author   = {В.И. Даль},
  title    = {Толковый словарь живого Великорусского языка, том второй [Текст]},
  year     = {1881},
  language = {russian},
  pages    = {807},
}
\end{filecontents*}

\begin{document}

    \begin{frame}[t,allowframebreaks]
    \cite{Zim:07} \cite{Dal:88}
    \setbeamertemplate{bibliography item}[text]
    \bibliographystyle{ugost2008}
    \bibliography{\jobname}
    \end{frame}

\end{document}

在此处输入图片描述

如果您希望保留都市主题:

\documentclass{beamer}
\usepackage[english,russian]{babel}
\usepackage[utf8]{inputenc}
\usepackage{caption,ragged2e,enumerate}
\usefonttheme{serif}
\usetheme{metropolis}

\makeatletter
\renewcommand\@biblabel[1]{#1.}
\makeatother

\setbeamertemplate{bibliography entry title}{}
\setbeamertemplate{bibliography entry location}{}

\begin{filecontents*}[overwrite]{\jobname.bib}
@Book{Zim:07,
  author   = {P. Zimbardo},
  title    = {Lucifer Effect Understanding How Good People Turn Evil [Текст]},
  year     = {2007},
  language = {russian},
}

@InBook{Dal:88,
  author   = {В.И. Даль},
  title    = {Толковый словарь живого Великорусского языка, том второй [Текст]},
  year     = {1881},
  language = {russian},
  pages    = {807},
}
\end{filecontents*}

\setbeamercolor{bibliography entry author}{fg=mDarkTeal}
\setbeamercolor{bibliography entry title}{fg=mDarkTeal} 
\setbeamercolor{bibliography entry location}{fg=mDarkTeal} 
\setbeamercolor{bibliography entry note}{fg=mDarkTeal}  

\setbeamerfont{bibliography entry author}{series=\normalfont}
\setbeamerfont{bibliography entry title}{series=\normalfont} 
\setbeamerfont{bibliography entry location}{series=\normalfont} 
\setbeamerfont{bibliography entry note}{series=\normalfont} 

\begin{document}

    \begin{frame}[t,allowframebreaks]
    \cite{Zim:07} \cite{Dal:88}
    \setbeamertemplate{bibliography item}[text]
    \bibliographystyle{ugost2008}
    \bibliography{\jobname}
    \end{frame}

\end{document}

在此处输入图片描述

相关内容