Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I hoping someone can help me with what I am sure is a noob problem. I am simply trying to insert a citation from BibDesk into a LaTeX document. My MWE looks like this:

\documentclass{article}
\usepackage{bibentry}
\bibliographystyle{plain}

\begin{document}

\section{test}
test cite should be here: \cite{brown08}.

\bibliography{cvpubs.bib}

\end{document}

My bib file is called cvpubs.bib and is in the same directory as the above MWE LaTeX document. The cvpubs.bib file looks like this:

@article{brown08,
    Author = {Seth Brown and Michael Cole and Albert Erives},
    Date-Added = {2011-10-22 21:01:18 +0000},
    Date-Modified = {2011-10-22 21:57:01 +0000},
    Journal = {BMC Genomics},
    Keywords = {evolution, myc},
    Month = {September},
    Number = {442},
    Rating = {5},
    Read = {1},
    Title = {Evolution of the holozoan ribosome biogenesis regulon},
    Volume = {9},
    Year = {2008}}

Thanks in advance for the help!

share|improve this question
The argument to \bibliography shouldn't have the extension: try \bibliography{cvpubs} – egreg Oct 22 '11 at 22:25
Could you further describe, what is not working. Did you execute latex, bibtex, latex, latex in that sequence? @egreg: The MWE works on my computer, even though it claims Database file #1: cvpubs.bib.bib. Strange... – Andy Oct 23 '11 at 7:53
Thanks for the help. I've tried compiling with latex, pdflatex and xelatex. – dr.bunsen Oct 23 '11 at 23:40
Did you run bibtex as well as (pdf/xe)latex? If you don't run bibtex once, you'll just be stuck with warnings about undefined references. – Mico Oct 27 '11 at 2:32

1 Answer

up vote 2 down vote accepted

Try

\documentclass{article}
\usepackage[OT1]{fontenc}
\usepackage{filecontents}
\bibliographystyle{plain}
\usepackage{bibentry}
\begin{filecontents*}{bibentry-example-02.bib}
@Book{abramowitz,
 author    = "Milton {Abramowitz} and Irene A. {Stegun}",
 title     = "Handbook of Mathematical Functions with
              Formulas, Graphs, and Mathematical Tables",
 publisher = "Dover",
 year      =  1964,
 address   = "New York",
 edition   = "ninth Dover printing, tenth GPO printing"
}
@article{brown08,
    Author = {Seth Brown and Michael Cole and Albert Erives},
    Date-Added = {2011-10-22 21:01:18 +0000},
    Date-Modified = {2011-10-22 21:57:01 +0000},
    Journal = {BMC Genomics},
    Keywords = {evolution, myc},
    Month = {September},
    Number = {442},
    Rating = {5},
    Read = {1},
    Title = {Evolution of the holozoan ribosome biogenesis regulon},
    Volume = {9},
    Year = {2008}}
\end{filecontents*}
\nobibliography*  
\begin{document}
\section{Section 1}
This will give you a full entry (bibentry is used for that) :\\
\bibentry{abramowitz}. 
Use this for citations \cite{abramowitz}\cite{brown08}
\bibliography{bibentry-example}
\end{document}  

The bibentry package is normally used to quote full entries. For this you need to issue the command bibentry.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.