How to do inline citations?

by jonalv   Last Updated August 01, 2020 14:23 PM

I have found the bibentry package but I can't get it to work:

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

enter image description here

I get a warning from natbib:

Package natbib Warning: There were undefined citations.

What am I missing?

Tags : citing bibentry


Answers 1


Here is a solution I come up with ignoring the bibentry package completely:

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

enter image description here

jonalv
jonalv
March 04, 2020 10:20 AM

Related Questions


Lonely item error in bibliography .bbl file

Updated June 23, 2016 08:09 AM



nocite all entries of an entry type

Updated August 02, 2020 22:23 PM