Natbib

Natbib

我想引用参考书中的一条定理,我在上下文中输入代码如下 beamer

\cite[Theorem 1]{reference book}

但是它只显示参考书名而没有定理1。如何解决这个问题?

答案1

Natbib

考虑将citetcitep命令与natbib包一起使用。

输出

在此处输入图片描述

平均能量损失

\documentclass{beamer}
\usepackage[numbers, sort&compress]{natbib}
\bibliographystyle{unsrtnat}
\begin{document}
\begin{frame}{Some references}
Some results from \citet[Theorem 10.22]{kloeden1999numerical}, for more details see \citep[Theorem~10.22]{kloeden1999numerical}.
\vfill
\bibliography{references}
\end{frame}
\end{document}

如果使用biblatex

这里也是一样,为了方便起见,我使用选项natbib=true,这样

在此处输入图片描述

使用

\documentclass{beamer}
\usepackage[backend=biber,style=numeric,natbib=true]{biblatex}
\addbibresource{sample.bib} 
\begin{document}
\begin{frame}{Something}
We see what \citet[Section~1]{einstein} has to say can compare \cite[Section~1]{einstein} with \citep[Section~1]{einstein}.
\printbibliography
\end{frame}
\end{document}

相关内容