如何进行内联引用?

如何进行内联引用?

我已经找到了该bibentry包,但是无法使其工作:

\documentclass{memoir}
\usepackage{natbib}
\usepackage{bibentry}
\bibliographystyle{plain}

\begin{filecontents}{mybib.bib}

@book{mittelbach2004latex,
  title={The LATEX companion},
  author={Mittelbach, Frank and Goossens, Michel and Braams, Johannes and Carlisle, David and Rowley, Chris},
  year={2004},
  publisher={Addison-Wesley Professional}
}

\end{filecontents} 


\begin{document}
    \nobibliography{mybib}
    Learn \LaTeX (\bibentry{mittelbach2004latex}).

\end{document}

在此处输入图片描述

我收到来自 natbib 的警告:

Package natbib Warning: There were undefined citations.

我错过了什么?

答案1

以下是我想到的一个bibentry完全忽略包的解决方案:

\begin{filecontents}{mybib.bib}
@book{mittelbach2004latex,
  title={The LATEX companion},
  author={Mittelbach, Frank and Goossens, Michel and Braams, Johannes and Carlisle, David and Rowley, Chris},
  year={2004},
  publisher={Addison-Wesley Professional}
}
\end{filecontents} 

\documentclass{memoir}

\usepackage[backend=biber]{biblatex}
\addbibresource{mybib.bib}

\begin{document}
    Learn \LaTeX~(\fullcite{mittelbach2004latex}).

\end{document}

在此处输入图片描述

相关内容