Welcome to the hotseat. We've prepared a guide if you'd like to read more about how it works.

How to Reference in LaTeX (natbib.bst does not seem to be working)

0 votes
674 views
asked Apr 16, 2017 in BUS 4029H - Research Project by asilmotala (2,610 points)
edited Apr 16, 2017 by asilmotala

Hi

I am attempting to include my references in LaTeX for my project, and have encountered a problem. I am using the latest version of the template (v1.9), and have attempted googling the answer as well as youtubing tutorials. After attempting all these solutions I still receive the following error message:

Process started


This is BibTeX, Version 0.99d (MiKTeX 2.9.6210 64-bit) The top-level auxiliary file: Actuarial_Science_Research_Proposal.aux I couldn't open style file natbib.bst.bst ---line 18 of file Actuarial_Science_Research_Proposal.aux : \bibstyle{natbib.bst : } I'm skipping whatever remains of this command I couldn't open database file ProposalReferences.bib.bib ---line 19 of file Actuarial_Science_Research_Proposal.aux : \bibdata{ProposalReferences.bib : } I'm skipping whatever remains of this command I found no \citation commands---while reading file Actuarial_Science_Research_Proposal.aux I found no database files---while reading file Actuarial_Science_Research_Proposal.aux I found no style file---while reading file Actuarial_Science_Research_Proposal.aux (There were 5 error messages)


Process exited with error(s)

I also have the natbib.bst and dcu_etal.bst files in the same location/file directory as where my LaTeX and BibTeX files are saved (I am not sure if this is the problem and whether it should be stored elsewhere).


My code (the parts involving natbib) are as follows:


\usepackage{natbib}
\bibliographystyle{natbib} \bibliography{ProposalReferences.bib} \label{ch:bibliography}

1 Answer

+1 vote
answered Apr 16, 2017 by Rowan (4,010 points)
selected Apr 16, 2017 by Rowan
 
Best answer

Hi Asil

Please try deleting all the additional files created when you build your tex file. In particular the .aux file. It seems that at some point there was a line in your file which stated that the bibliography style to use was natbib.bst this then caused LaTex to look for a file called natbib.bst.bst as when the style and bib files are specified LaTex automatically adds the extensions for you. If you delete the aux file and rebuild your doc, it should sort the problem out as your code above for the bib style looks correct.

On that note, you will also need to change the line referring to your .bib file so that it does not include the 'bib' extension.

If this still does not work, email me you entire .tex file and I will have a look at it.

Rowan

commented Apr 16, 2017 by asilmotala (2,610 points)

Hi Rowan


Thank you so much! I did attempt to do some of those steps earlier, but not all of them simultaneously! This resolved my problem.


Thanks again :D

Asil

commented Apr 16, 2017 by Rowan (4,010 points)

No problem. Glad it worked.

...