Luna
Luna

Reputation: 428

With the Science.bst template file, references for journal articles are not properly displayed

I'm using the Science .bst file from https://www.sciencemag.org/sites/default/files/Science.bst

And the references that are generated do not comply with the Science reference style, see https://www.sciencemag.org/authors/instructions-preparing-initial-manuscript

Specifically, only the first page from the "pages" field is shown, and the article title is not displayed.

MWE:

\documentclass{article}

\usepackage{filecontents}
\begin{filecontents}{reference.bib}
@article{blumenstock2016fighting,
  title={Fighting Poverty with Data},
  author={Blumenstock, Joshua Evan},
  journal={Science},
  volume={353},
  number={6301},
  pages={753-754},
  year={2016},
  publisher={American Association for the Advancement of Science},
}
\end{filecontents}

\begin{document}
\cite{blumenstock2016fighting}

\bibliography{reference}
\bibliographystyle{Science}

\end{document}

gives

[1] J. E. Blumenstock, Science 353, 753 (2016).

Upvotes: 4

Views: 1774

Answers (3)

anamyk
anamyk

Reputation: 11

I also had a problem with the 'inproceedings' type of the Science.bst file. The title was not printed.

I needed to add format.title "title" output.check after format.authors "author" output.check:

FUNCTION {inproceedings}
{ output.bibitem
  format.authors "author" output.check
  format.title "title" output.check
  crossref missing$
    { format.in.ed.booktitle "booktitle" output.check
      format.number.series output
      publisher empty$
        { format.organization.address output }
        { organization output
          format.publisher.address output
        }
      if$
      format.bvolume output
      format.pages output
    }
    { format.incoll.inproc.crossref output.nonnull
      format.pages output
    }
  if$
  new.sentence
  format.note output
  fin.entry
}

Upvotes: 1

Emrys-Merlin
Emrys-Merlin

Reputation: 43

I wanted to piggyback on the answer to the previous question, which was answered by Luna in her post.

There is another inconsistency between the Science bibstyle and the reference style guide. Namely, the author list should not be shortened (i.e. no 'et al.'). From the style guide:

Journal article references should be complete, including the full list of authors, the full titles, and the inclusive pagination.

A hot fix to achieve this is in Science.bst:

  • On line 503: change numnames #5 to a number higher than the longest author list count, e.g. numnames #100

Upvotes: 2

Luna
Luna

Reputation: 428

The following patch to Science.bst resolves this issue.

https://gist.github.com/luna983/d53f9c4ca52b52661bc863498966a8ca/revisions

  • On line 812: delete first.page
  • After line 1038: add a line format.title "title" output.check

The output from the MWE is now

[1] J. E. Blumenstock, Fighting poverty with data, Science 353, 753-754 (2016).

Upvotes: 8

Related Questions