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.

3
  • 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. Jun 29, 2015 at 1: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, 2015 at 1: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. Jun 29, 2015 at 2:34

2 Answers 2

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.

3
  • 2
    Remember not to change a file directly, make a copy, rename it and use the renamed and changed file.
    – Johannes_B
    Jun 29, 2015 at 6:40
  • 3
    Brilliant! This will help me. Jun 29, 2015 at 19:46
  • 1
    You could add the include command for the file in your post. Jul 9, 2015 at 20:11
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$)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .