BibTeX, biblatex and biberBibliography Creation with Mendeley

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
ChrisQ
Posts: 5
Joined: Sun Oct 23, 2011 4:18 pm

Bibliography Creation with Mendeley

Post by ChrisQ »

Hello

I'm having problems creating a bibliography for the first time; I'm using Mendeley to generate it (it creates a file with the following code:

Code: Select all

Automatically generated by Mendeley 1.1.2
Any changes to this file will be lost if it is regenerated by Mendeley.

@article{Mcnamara2004,
author = {Mcnamara, John M and Barta, Zoltan and Houston, Alasdair I},
file = {:C$\backslash$:/Users/Owner/Documents/University/Maths/Year 4/Project/McNamaraJM\_2004\_Nature428\_745.pdf:pdf},
journal = {Nature},
number = {1993},
pages = {745--748},
title = {{Variation in behaviour promotes cooperation in the Prisoner ’ s Dilemma game}},
volume = {176},
year = {2004}
}
The code I'm using in my document is:

Code: Select all

\documentclass[a4paper,12pt]{article}
\begin{document}

\title{Bibliography testing}
\date{\today}
\maketitle

Test\cite{Mcnamara2004}

\bibliographystyle{plain}
\bibliography{/Users/Owner/Documents/University/Maths/Year 4/Project/Mendeley Docs/Bibliography.bib}
\end{document}
Also, I'm using TeXworks. My problem is that in the output, where the citation should be I get a [?]. I've tried following a couple of tutorials online, but they don't seem to predict my problem. I've checked the file location and that is correct (unless it's in the wrong format somehow?)

Thanks very much for all your help, let me know if my questions isn't well-asked.

Chris
Last edited by ChrisQ on Wed Nov 09, 2011 10:27 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Bibliography Creation with Mendeley

Post by localghost »

You have to invoke BibTeX first to get a bibliography at all. After that it requires at least two additional LaTeX runs to get things right. In TeXworks you can start BibTeX by the pull-down menu for the processing tools (see attachment).


Thorsten
Attachments
The menu for processing tools in TeXworks.
The menu for processing tools in TeXworks.
TeXworks-Processing-BibTeX.png (178.28 KiB) Viewed 9516 times
ChrisQ
Posts: 5
Joined: Sun Oct 23, 2011 4:18 pm

Re: Bibliography Creation with Mendeley

Post by ChrisQ »

Thanks for your response,

I've tried clicking the green button with bibtex selected, then doing the same for pdflatex, multiple times, and I get the title at the end of my work that says 'Bibliography', but there is nothing beneath it, and my reference is still [?].

Is there ever a problem with the file Mendeley produces for me, could that be it?

And, every time I edit my work, will I have to do a similar thing - ie run with bibtex then pdflatex multiple times for it to work?

Thanks, Chris.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Bibliography Creation with Mendeley

Post by localghost »

Works fine for me. Attach the (PDF)LaTeX log (*.log) and BibTeX log (*.blg) of your example to your next post by upload to the forum server.
ChrisQ
Posts: 5
Joined: Sun Oct 23, 2011 4:18 pm

Re: Bibliography Creation with Mendeley

Post by ChrisQ »

I didn't get any error messages in the console output (which I don't seem to be able to access, unless I have some other kind of error). However, I did find that by putting my bibliography in the same folder, it worked - not quite as neat in terms of folders as I'd like, but it's probably too much effort for too little gain, trying to correct it.

Thanks for your help though, Chris.

PS I'm assuming that (PDF)LaTeX log (*.log) and BibTeX log (*.blg) are the console output? I'm not entirely sure what you mean, I don't think I've been doing this long enough!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Bibliography Creation with Mendeley

Post by localghost »

ChrisQ wrote:[…] PS I'm assuming that (PDF)LaTeX log (*.log) and BibTeX log (*.blg) are the console output? I'm not entirely sure what you mean, I don't think I've been doing this long enough!
Yes, but this output is also written to files with the name of your document and the mentioned suffixes.
Post Reply