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
584 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 (3,570 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 (3,570 points)

No problem. Glad it worked.

...
http://acscihotseat.org/index.php?qa=455&qa_1=how-to-reference-latex-natbib-bst-does-not-seem-to-be-working
acscihotseat.org
crawl=CC-MAIN-2018-39
35557
application/http; msgtype=response
sha1:NC6ZMUM3YPWV35KLRINI4HOI3BAHTZWH
<urn:uuid:615beaa0-d22d-43c8-9855-0b74b0955833>
2018-09-20T12:13:20Z
129.232.138.39
text/html
sha1:4EQZGO2FHBHK3YMVLD5O2MHQQ3NLHWWL
<urn:uuid:68b6a08b-d385-42ee-9be4-6939a8051d34>
http://acscihotseat.org/index.php?qa=455&qa_1=how-to-reference-latex-natbib-bst-does-not-seem-to-be-working
response
<urn:uuid:f2cc18dd-98c5-49e8-8806-99a60bc200e9>
isPartOf: CC-MAIN-2018-39
publisher: Common Crawl
description: Wide crawl of the web for September 2018
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-138-196-149.ec2.internal
software: Apache Nutch 1.15 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 0.11-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: http://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/