在我的投影仪演示中,参考书目中的项目如下所示:
我怎样才能删除这个奇怪的换行符?
梅威瑟:
\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},
}
答案1
通常在和模板中beamer
发出。您可以重新定义它们:\par
bibliography entry title
bibliography 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}