Gab*_*cas 2 latex bibtex beamer
我正在通过投影仪制作海报,发现我的书目风格有问题。我希望我的参考文献使用海报中可用的完整水平空间,例如:
(1) Authors. Title. Journal.
Run Code Online (Sandbox Code Playgroud)
但取而代之的是,每个引用都被分成 3 行,如下所示:
(1) Authors
Title
Journal
Run Code Online (Sandbox Code Playgroud)
这是我一直在使用的参考书目代码:
\begin{block}{References}
\small
\bibliographystyle{sbc}
\bibliography{referencias.bib}
\end{block}
Run Code Online (Sandbox Code Playgroud)
可以通过像这样设置参考书目模板来避免换行:
\setbeamertemplate{bibliography entry article}{}
\setbeamertemplate{bibliography entry title}{}
\setbeamertemplate{bibliography entry location}{}
\setbeamertemplate{bibliography entry note}{}
Run Code Online (Sandbox Code Playgroud)
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}
Run Code Online (Sandbox Code Playgroud)