BibTeX, biblatex and biberAdapting a Bibliography Style File

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
Mojo Dodo
Posts: 1
Joined: Tue Jul 03, 2012 10:22 am

Adapting a Bibliography Style File

Post by Mojo Dodo »

Hello,

I want to change a bibliography style file a little bit, but I have actually no knowledge about that stuff. The file I want to change is "jmr.bst"

ftp://ftp.mpi-sb.mpg.de/pub/tex/mirror/ ... rd/jmr.bst

It is enough if changes are made only for "article" because I'm only citing articles anyway.
I want to change the following things:
  1. in the Bibliography content the URL and the content of the field "note" ist added, but I don't need this
  2. The Volume should not be followed by Number (I don't need the number)
  3. After Journal should be a comma
  4. After Authors (year) should be no dot
biblatex is not an option for me, because I'm often forced to work with MS Office and where I'm then working with the plug-in bibtex4word.

Does anybody know how these changes in the .bst file would look like?


Thanks in advance!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

niteshs
Posts: 45
Joined: Wed Jun 06, 2012 9:57 pm

Adapting a Bibliography Style File

Post by niteshs »

I am no expert with .bst here, but I can help with some of the changes:
1. in the Bibliography content the URL and the content of the field "note" ist added, but I don't need this
Under the section FUNCTION {article} (of the .bst file), comment out the lines:
note output and write.url (or if you want to make sure no items have url and note included, you can comment out the lines note and URL under the section ENTRY which is at the very top of the file)
2. The Volume should not be followed by Number (I don't need the number)
This can be done two ways-
The quick way is to edit the section FUNCTION {format.vol.num.pages}
so that the line { "(" number * ")" * * reads { "" * * instead.

The better way to do this however (I feel) would be to make a new section after FUNCTION {format.vol.num.pages}, called FUNCTION" {format.vol.pages}, which has the above change in it, then change the appropriate line in the section FUNCTION {article} to point to the new section.
3. After Journal should be a comma
4. After Authors (year) should be no dot
Don't know how to do that, sorry. Actually, I do not get a dot after author (year), so I am not sure whats going on (I get a comma instead).

Edit: I'd suggest you make the changes and save the file with a new name. Don't forget to refresh the database after that, then use the new .bst file.
Edit2: Since you mentioned you have to use MS Word, I suggest (recommend) using Zotero (a Firefox add-on for bibliography management with plug-ins for MS Word). It can import your existing .bib database and makes adding new references (both, to the database, and to MS Word) very easy. Only limitation is you have to use Firefox. But then you can use biblatex for LaTeX.
Edit3: Look at this post regarding unwanted dots. I was expecting something similar in the jmr.bst file but there was nothing like it. It seems to define a comma and period, but am not sure about the usage.
Post Reply