Skip to content

Instantly share code, notes, and snippets.

@refraction-ray
Last active December 11, 2018 09:51
Show Gist options
  • Save refraction-ray/2b03a9334798d9c365f3a67dc5d942d3 to your computer and use it in GitHub Desktop.
Save refraction-ray/2b03a9334798d9c365f3a67dc5d942d3 to your computer and use it in GitHub Desktop.
The patch file for apsrev.bst

Even the official .bst file provided by APS in revtex4.1 is not satisfying in terms of the format of citations, including the redundant inclusion of eprint no. for published works, and super long book titles or conference titles without newlines.

Therefore, I provide a patch file here as a slight change of the original style. This patch file can be applied to apsrev.bst, which can be found here.

patch apsrev.bst apsrev.patch

And include the following line in latex to use the new .bst.

\bibliographystyle{path/apsrev.bst}
2393,2394c2393,2394
< punctuation.yes 'punctuation.state :=
< pop$ emphasize
---
> %punctuation.yes 'punctuation.state :=
> pop$ %emphasize
2656,2659c2656,2660
< link.open
< format.btitle
< "title" output.check
< link.shut
---
> format.title output
> %link.open
> %format.btitle
> %"title" output.check
> %link.shut
2811c2812
< format.eprint output
---
> %format.eprint output
2821,2824c2822,2826
< link.open
< format.btitle
< "title" output.check
< link.shut
---
> format.btitle output
> %link.open
> %format.btitle
> %"title" output.check
> %link.shut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment