Beamer-poster 中的参考书目样式和换行符
Bibliography style and line breaks in Beamer-poster
我正在通过 beamer 制作海报,发现我的参考书目风格有问题。我希望我的参考资料使用海报中可用的完整水平 space,例如:
(1) Authors. Title. Journal.
但取而代之的是,每个引用都被分成 3 行:
(1) Authors
Title
Journal
例子
这是我一直在使用的参考书目代码:
\begin{block}{References}
\small
\bibliographystyle{sbc}
\bibliography{referencias.bib}
\end{block}
可以通过像这样设置参考书目模板来避免换行:
\setbeamertemplate{bibliography entry article}{}
\setbeamertemplate{bibliography entry title}{}
\setbeamertemplate{bibliography entry location}{}
\setbeamertemplate{bibliography entry note}{}
MWE:
\documentclass{beamer}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{knuth,
author = {Knuth, Donald E.},
title = {The {\TeX} book},
date = 1984,
maintitle = {Computers \& Typesetting},
volume = {A},
publisher = {Addison-Wesley},
location = {Reading, Mass.},
langid = {english},
langidopts = {variant=american},
sortyear = {1984-1},
sorttitle = {Computers & Typesetting A},
indexsorttitle= {The TeXbook},
indextitle = {\protect\TeX book, The},
shorttitle = {\TeX book}
}
\end{filecontents*}
\setbeamertemplate{bibliography entry article}{}
\setbeamertemplate{bibliography entry title}{}
\setbeamertemplate{bibliography entry location}{}
\setbeamertemplate{bibliography entry note}{}
\begin{document}
\begin{frame}
\cite{knuth}
\begin{block}{References}
\small
\bibliographystyle{plain}
\bibliography{\jobname}
\end{block}
\end{frame}
\end{document}
我正在通过 beamer 制作海报,发现我的参考书目风格有问题。我希望我的参考资料使用海报中可用的完整水平 space,例如:
(1) Authors. Title. Journal.
但取而代之的是,每个引用都被分成 3 行:
(1) Authors
Title
Journal
例子
这是我一直在使用的参考书目代码:
\begin{block}{References}
\small
\bibliographystyle{sbc}
\bibliography{referencias.bib}
\end{block}
可以通过像这样设置参考书目模板来避免换行:
\setbeamertemplate{bibliography entry article}{}
\setbeamertemplate{bibliography entry title}{}
\setbeamertemplate{bibliography entry location}{}
\setbeamertemplate{bibliography entry note}{}
MWE:
\documentclass{beamer}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{knuth,
author = {Knuth, Donald E.},
title = {The {\TeX} book},
date = 1984,
maintitle = {Computers \& Typesetting},
volume = {A},
publisher = {Addison-Wesley},
location = {Reading, Mass.},
langid = {english},
langidopts = {variant=american},
sortyear = {1984-1},
sorttitle = {Computers & Typesetting A},
indexsorttitle= {The TeXbook},
indextitle = {\protect\TeX book, The},
shorttitle = {\TeX book}
}
\end{filecontents*}
\setbeamertemplate{bibliography entry article}{}
\setbeamertemplate{bibliography entry title}{}
\setbeamertemplate{bibliography entry location}{}
\setbeamertemplate{bibliography entry note}{}
\begin{document}
\begin{frame}
\cite{knuth}
\begin{block}{References}
\small
\bibliographystyle{plain}
\bibliography{\jobname}
\end{block}
\end{frame}
\end{document}