我想以 IEEE 格式将参考书目添加到我的演示文稿中。我应该在序言和代码中添加什么内容。
\documentclass{beamer}
\setbeamertemplate{footline}[page number]
\usepackage{graphicx}
\usepackage{booktabs}
\begin{document}
\section{Reference}
\begin{frame}
\frametitle{Reference}
\end{frame}
我使用与制作 IEEE 论文相同的 bibTex。
答案1
从您的评论来看,您好像正在使用biblatex
。
向 Beamer 添加参考书目与在任何其他文档类中添加参考书目一样。要点是您必须在文本中引用一些作品,否则参考书目将为空,并且\addbibresource{WhatEverName.bib}
应在序言中使用。
默认IEEE
样式是数字,这有点棘手,因为 beamer 通常不会在参考书目中显示数字。不过,它们可以通过 启用\setbeamertemplate{bibliography item}{\insertbiblabel}
。
\documentclass{beamer}
\usepackage[style=ieee]{biblatex}
\setbeamertemplate{bibliography item}{\insertbiblabel}
\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}
}
@article{einstein,
author = {Einstein, A.},
title = {Die Grundlage der allgemeinen Relativitätstheorie},
journal = {Annalen der Physik},
volume = {354},
number = {7},
doi = {10.1002/andp.19163540702},
pages = {769--822},
year = {1916}
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\begin{document}
\begin{frame}
\cite{einstein} \cite{knuth}
\end{frame}
\begin{frame}
\frametitle{bibliography}
\printbibliography
\end{frame}
\end{document}