Closed raffdoc closed 11 years ago
Yes you can use the citation commands from natbib. The path to the dafault bib file is found in the style file. https://github.com/cpfaff/Open-Science-Paper/blob/master/usr/subdocuments/open_science_paper.sty It is defined as:
\addbibresource{usr/subdocuments/open_science_paper.bib}
You can put your bib entries in this file. If you do not use the default bibliography file defined above you need to change the path to fit your needs. There are two default entries inside of the bibliography file. Does it work when you use one of them? I tried and cited the first entry in the bibliography:
@article{renwick_chemical_2002,
title = {The chemical world of crucivores: lures, treats and traps},
volume = {104},
shorttitle = {The chemical world of crucivores},
url = {http://dx.doi.org/10.1023/A:1021231732022},
doi = {{10.1023/A:1021231732022}},
abstract = {The host ranges of several insects that are specialists on crucifers {(Brassicaceae)} are closely linked to the presence of glucosinolates in these plants. These glycosides often serve as stimulants for oviposition and/or feeding, while their volatile hydrolysis products may be attractants for several species. However, many crucifers produce additional secondary compounds that act as repellents, deterrents or toxins, which protect them from these insects. The widely different responses of the various crucifer specialists to these compounds reflect different degrees of adaptation to the plant defenses. Thus native insects are often unable to survive on introduced plants, although the ubiquitous glucosinolates may trigger oviposition `mistakes'. The success of highly invasive cruciferous weeds may be due in part to a lack of local herbivore adaptation to unique chemical constituents of these plants. However, the concentrations of secondary chemicals vary with season, environmental conditions, and geographical location. This could mean that windows of opportunity exist for utilization of introduced plants. Recent studies with garlic mustard, Alliaria petiolata, and wintercress, Barbarea vulgaris, in the {USA} have shown that these introduced plants are resistant to the native butterfly, Pieris napi oleracea. The combined effects of a flavone glycoside and a unique butenenitrile glycoside in the garlic mustard appear to be responsible for blocking feeding by this insect. Barbarea vulgaris is also resistant to the diamondback moth, Plutella xylostella, in North America and to the flea beetle, Phyllotreta nemorum, in Europe. Comparative studies indicate that common resistance mechanisms are involved and bioassays have been developed to elucidate the chemical nature of this resistance.},
number = {1},
journal = {Entomologia Experimentalis et Applicata},
author = {J. Alan A. Renwick},
month = jul,
year = {2002},
pages = {35--42}
},
With the following text:
There will be some citations here \cite{renwick_chemical_2002} \citep{renwick_chemical_2002} \citet{renwick_chemical_2002}
And after one run with the makefile the citations appeared as expected in the pdf.
Many thanks! Excellent template for reproducible articles.
As I understood from .cls file one might use natbib citation function, e.g. \citep and \citet. But it seem does not fine the bib file and as a consequence does not recognise citation key. How can I resolve this problem? Many thanks.