9

Could an expert please tweak the ReVTeX 4.1 BibTeX style file for the following bibliography format?

Example from [a PRX article](http://journals.aps.org/prx/abstract/10.1103/PhysRevX.5.021034).

There already exists a RevTeX style file called apsrev and, according to the manual, I can call the longbibliography option and have it spit out the title. However, that output spells out the author first names and I would like only the first initial. If I don't call longbibliography, I get abbreviated first names but no titles.

I've tried the related solution but it didn't work for me. Another solution is here, but the link to the actual style file is dead. Also note that a previous solution works for apsrev, but I could not easily port it to apsrev4-1.

Victor V Albert
  • 567
  • 4
  • 14
  • Given the related post was closed, I don't think this is too narrow because RevTeX is the (unfortunately) default option that properly formats physics papers for arXiv and Physical Review journals. – Victor V Albert Jun 29 '15 at 01:37
  • Please post a minimal example we can compile to work with which shows the solution you tried, and explain in what way that example doesn't work for you. I assume you mean you tried using the control file but I'm not sure, and certainly don't know what happened. – cfr Jun 29 '15 at 01:47
  • Sorry for being non-detailed -- I use LyX and it complicates things. Solution below is different from the previous ones, and I'll leave it up to the community to determine whether it should stay or be merged. – Victor V Albert Jun 29 '15 at 02:34

2 Answers2

11

After some searching, I found a fix. Search for {article} (including curly brackets) in the apsrev4-1.bst file. Then insert the very intuitive lines of code as follows:

...
author format.key output
new.block.comma
%%% lines of code
format.title
    "title" 'bibfield :=
    emphasize
output
new.block.comma
%%% lines of code
article.title.produce
...

Finally, to remove the quotes around the title, search for bbl.enquote "{" * swap$ * "}" * and comment it out.

Victor V Albert
  • 567
  • 4
  • 14
1

I had the same problem and unfortunately only found the answer given by Victor V Albert after I had already changed the bst file myself.

I did it slightly differently, maybe the following will be useful for someone some day. This also works if your documentclass is not revtex!

  • To have the title displayed, change the #-1 in line 230 to #1.
  • To remove the quotes around the title and, at the same time, make it emphasized, replace "\enquote " in line 1884 with "\emph ".
  • If you want the title to retain capitalization, comment out line 1901
    (i.e. duplicate$ empty$ 'skip$ { "t" change.case$ } if$)
Noiralef
  • 121