I need to change the format in the .bst
file that I am using. The format currently as:
Beth, T. and Gollmann, D. (1989). Algorithm Engineering for Public Key
Algorithm. IEEE Journal on selected areas in communications 7 (4):
458–465.
I want them to be as:
Beth, T. and Gollmann, D. (1989). Algorithm Engineering for Public Key
Algorithm. IEEE Journal on selected areas in communications, 7 (4),
458–465.
I need to add comma after the Journal's name and also changing the colon after the series number into comma.
What commands should I add and on which function should I make changes?
Is the following function the right one to add changes on?
FUNCTION {format.bvolume}
{ volume empty$
{ "" }
{ series empty$
{ "" }
{ series emphasize }
if$
swap$ bbl.volume volume tie.or.space.connect output
}
if$
}
I have also other functions in bst file where I think they might be related, such as:
FUNCTION {format.number.series}
FUNCTION {format.vol.num.pages}
I appreciate the help in advance.
Best Answer
You don't mention which bibliography style file you're using, so I'll assume that it's either that's provided by the
natbib
package (such asplainnat
,unsrtnat
, etc) or was generated by themakebst
utility (which was written by the author of thenatbib
package.In your
.bst
file, you need to locate the functionformat.vol.num.pages
; it looks like this in the fileplainnat.bst
file:Note the colon (
:
), which happens to be in the fifth line from the bottom in this version of theformat.vol.num.pages
function. (Depending on the.bst
file you use, it may be in a different location within theformat.vol.num.pages
function.) Change the colon to a comma and save the file under a new name, e.g.,plainnat-mara.bst
. You could save the new file either to your current working directory or some other directory where your TeX distribution tends to look for BibTeX style files. Be sure to refer to the new style file from now on.