2

I'm trying to change the bibliography from this:

[40] B. Jeziorski and H. Monkhorst, “Coupled-cluster method for   
multideterminantal reference states,” Physical Review A, vol. 24, 
no. 4, p. 1668, 1981.

to this

[40] B. Jeziorski and H. Monkhorst, “Coupled-cluster method for 
multideterminantal reference states,” Physical Review A, vol. 24, 
no. 4, p. 1668, (1981).

with brackets around the year. Currently I'm using the plain vanilla \bibliographystyle{ieeetr}.

2
  • Welcome to TeX.sx! Usually, we don't put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Upvoting is the preferred way here to say "thank you" to users who helped you.
    – Guido
    Nov 5 '12 at 10:14
  • @Guido Thanks, blame my style on naivety. but i'll catch up.
    – mike
    Nov 5 '12 at 10:33
6

You can modify the function format.date, in particular the two lines after month empty$ have to modified to insert the parenthesis. Please, change the name of the file after you modified it (i.e., myieeetr.bst and use \bibliographystyle{myieeetr} instead)

FUNCTION {format.date}
{ year empty$
    { month empty$
        { "" }
        { "there's a month but no year in " cite$ * warning$
          month
        }
      if$
    }
    { month empty$
        { "(" year * ")" * } 
        { "(" month * " " * year * ")" * }
      if$
    }
  if$
}
1
  • thats it, it worked
    – mike
    Dec 31 '12 at 14:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.