更改 beamer 书目格式

更改 beamer 书目格式

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

我怎样才能删除这个奇怪的换行符?

梅威瑟:

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

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

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

\let\stdsection\section
\renewcommand\section{\newpage\stdsection}

\begin{document}

    \cite{Zim:07} \cite{Dal:88}

    \begin{frame}[t,allowframebreaks]
    \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},
}

sharelatex 上的 MWE。

答案1

通常在和模板中beamer发出。您可以重新定义它们:\parbibliography entry titlebibliography entry location

\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}
    \setbeamertemplate{bibliography item}[text]
    \bibliographystyle{ugost2008}
    \bibliography{bl}
\end{frame}

\end{document}

相关内容