gpt4 book ai didi

latex - Beamer-poster 中的引用书目样式和换行符

转载 作者:行者123 更新时间:2023-12-04 16:28:37 26 4
gpt4 key购买 nike

我正在通过 beamer 制作海报,发现我的引用书目风格有问题。我希望我的引用资料使用海报中可用的完整水平空间,例如:

(1) Authors. Title. Journal.

但取而代之的是,每个引用都被分成 3 行:

(1) Authors

Title

Journal

例子

Figure

这是我一直在使用的书目代码:

\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}

关于latex - Beamer-poster 中的引用书目样式和换行符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57382286/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com