Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}.

share|improve this question
    
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

1 Answer 1

up vote 6 down vote accepted

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$
}
share|improve this answer
    
thats it, it worked –  mike Dec 31 '12 at 14:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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