This is an update to Steven Miller's Journal of Peace Research .bst file by Baobao Zhang and Allan Dafoe. Updates have been made to make the code conform to the style of the JPR as of May 2015.
The official style guides for JPR are found here:
http://file.prio.no/journals/JPR/JPR-Notes-for-Authors-140909.pdf
http://file.prio.no/journals/JPR/Technical-Requirements.pdf
Download the pre-processing Python script for Python 2 and the .bst file. Save them to the same folder as the .tex document you are working on.
Pre-process your .bib file using the Python script. You will need to pre-process your .bib file in order for the .bst file to work correctly.
In terminal, change the directory to the folder with the "pre_process.py" Python script and type:
python pre_process.py
You will be prompted to enter the location and name of the original .bib file and the new .bib file:
Original bib file:
New bib file:
After each prompt, type the location and file name without quotation marks, like such:
Original bib file: /Users/baobaozhang/Dropbox/jpr-bst-file/tests/my_old_bib.bib
New bib file: /Users/baobaozhang/Dropbox/jpr-bst-file/tests/my_new_bib.bib
A new .bib file with the correct formats will be exported.
In the preamble of your .tex document, include the following:
\usepackage[round]{natbib}
% seperators
\setcitestyle{aysep={,},yysep={,},citesep={;},notesep={: }}
% hide boxes around hyperlinks
\usepackage[hidelinks]{hyperref}
\urlstyle{same}
% customized captions for tables and figures
\renewcommand{\thetable}{\Roman{table}}
\usepackage{caption}\captionsetup{labelsep = period}
Here is the explanation for the separators in setcitestyle
:
- Between citations: citesep
- Between author and year: aysep
- Between years with common author: yysep
- Next before post-note: notesep
The last two lines ensure a full stop after table and figure numbers and Roman numerals for tables.
See an example of a paper conforming to the JPR format in the example_latex
folder of this GitHub repo. We include the source code (.tex files) as well as the end results (PDF files).
- Main paper .tex file
- Main paper PDF output
- Tables and Figures .tex file
- Tables and Figures PDF output
For inline citations, use \citep{citekey}
to cite with parentheses and \cite{citekey}
to cite without.
Empirical evidence from lab experiments suggests this theory is not implausible \citep{smith2000}.
produces:
Empirical evidence from lab experiments suggests this theory is not implausible (Smith, 2000).
\cite{smith2000} suggests this theory is not implausible .
produces:
Smith (2000) suggests this theory is not implausible.
In your .bib document, you can include the following types of references:
- academic journal articles (use
article
) - books and editted volumes (use
book
) - essays in books (use
incollection
) - working papers (use
techreport
) - web resources (use
misc
) - news articles (use
articlenews
)
Below are examples of each reference type:
@article{journalarticle,
title={This is a journal article},
author={Annie Anderson and Bobby Burt and Catherine Cate Cindle},
journal={Journal Article},
volume={1},
number={1},
pages={1-10},
year={2014},
}
User must decide whether they want to abbreviate the first name and middle name when entering a name in the author
field. The .bst file will generate whatever the user inputs in the author
field. If the user inputs a full middle name in the author
field, the full middle name will be generated in the bibliography.
In the title
field, users should enclose proper nouns in brackets, like such title = {A history of the {United States}}
. This is to ensure proper nouns appear capitalized in the bibliography.
@book{book,
author = {Devin Dee and Ellen East and Fred FM Fitz and Genny Graham},
title = {Book},
address = {New Haven, CT},
publisher = {Major University Press},
year = {2004},
edition = {2nd Edition}
}
Note that the address should include the city; if the city is in the United States, please include the two-letter abbreivation for the state as well. Do not include the state abbreviation for New York (the city). The pre-processing Python script will replace full state names in your .bib file with correct abbreviations.
"University Press" should not be abbreviated. For instance, you write type Princeton University Press
and not Princeton UP
.
@incollection{incollection,
author = {Harry Henri},
title = {An essay in a book},
booktitle = {A Collection of Essays in a Book},
editor = {Ida Inman},
address = {New York},
publisher = {Incollection Book Publisher},
year = {2004},
pages = {9--33}
}
Note that the address should include the city and the two-letter state or country abbreviation unless the city is New York, London, or some other major world city. "University Press" should not be abbreviated.
@techreport{workingpaper,
author = {Lynn Lens Lee and Martha Morris},
title = {A working paper},
type = {Working Paper},
institution = {Department of Working Papers, Working Papers University},
year = {2014},
url = {www.working.edu/lee/newtheory.pdf}
}
Note that type
must be be Working Paper
. Include both the department and the university. Include a URL when possible.
@misc{webresource,
author = {Web Resource Organization},
title = {A report on the web},
year = {2012},
url = {\url{www.webreports.org/2012_report}}
}
The articlenews
reference type was especially created for this .bst. It is not included as one of the regular reference types for .bib.
@articlenews{newsarticle,
author = {Nancy Norton},
title = {A newspaper article},
journal = {News Article Times},
year = {2009},
month = {4 December},
url = {\url{http://newsarticletimes.com/dec-4-news.html}}
}
Note that month
also includes the date before the month. Include a URL when possible.
The original repo: https://github.com/svmiller/jpr-bst-file
This is a work in process. Please check in for new updates.