我正在使用这个模板(https://www.latextemplates.com/template/jacobs-landscape-poster) 是用来beamerposter
制作会议海报的。生成的书目列表会自动将不同的字段(作者、标题、期刊等)分成新行,这浪费了很多空间。我尝试了几种不同的书目样式,但问题仍然存在。猜测根源在于.sty
模板附带的文件中,但找不到要修改的位置。
有没有办法可以消除这种分离?
请参阅 MWEB 的评论
答案1
您无法在.sty
模板文件中找到换行符,因为它们源自 beamer 本身。例如,标题的默认定义是
\defbeamertemplate*{bibliography entry title}{default}{\par}
这将在新段落中开始标题。可以使用以下方法更改
\setbeamertemplate{bibliography entry title}{}
\documentclass[final]{beamer}
\usepackage[scale=1.24]{beamerposter} % Use the beamerposter package for laying out the poster
\usetheme{confposter} % Use the confposter theme supplied with this template
\newlength{\sepwid}
\newlength{\onecolwid}
\newlength{\twocolwid}
\newlength{\threecolwid}
\setlength{\sepwid}{0.024\paperwidth} % Separation width (white space) between columns
\setlength{\onecolwid}{0.22\paperwidth} % Width of one column
\title{Unnecessarily Complicated Research Title} % Poster title
\author{John Smith, James Smith and Jane Smith} % Author(s)
\institute{Department and University Name} % Institution(s)
\setbeamertemplate{bibliography entry article}{}
\setbeamertemplate{bibliography entry title}{}
\setbeamertemplate{bibliography entry location}{}
\setbeamertemplate{bibliography entry note}{}
\begin{document}
\begin{frame}[t]
\begin{columns}[t]
\begin{column}{\onecolwid}
Blabla \cite{Smith:2012qr}
Blabla \cite{Smith:2013jd}
\begin{block}{References}
\bibliographystyle{plain}
\bibliography{sample.bib}
\end{block}
\end{column} % End of the third column
\end{columns} % End of all the columns in the poster
\end{frame} % End of the enclosing frame
\end{document}