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 using natbib package for my reference list. I have been struggling with BibTeX. I'm writing for Journal of Finance, and they want > 3 citations to be in "et al." format for the body of the paper. But the Journal's .bst file makes it such that no amount of authors will make natbib \citet or \citep (or any other method of citing) truncate the author list to "Jones et al. (2009)" (for example); all authors will always be listed.

I've found a solution to a different .bst (not the Journal of Finance's .bst). But the journal's .bst has a format.names function that's completely different to this and I can't edit it such that every paper that has > 3 authors gets truncated to "et al." in the body of the paper.

Please assist. Here's the code for the Journal's format.names function (SOURCED FROM http://www.ivo-welch.info/computers/bstfiles/):

 FUNCTION {format.names}
{ 's :=
  #1 'nameptr :=
  s num.names$ 'numnames :=
  numnames 'namesleft :=
{ namesleft #0 > }
{ nameptr #1 >
    { s nameptr "{ff }{vv~}{ll}{, jj}" format.name$ 't := }
    { s nameptr "{vv~}{ll}{, jj}{, ff}" format.name$ 't := }
  if$
  nameptr #1 >
    {
      namesleft #1 >
        { ", " * t * }
        {
          ", " *
          t "others" =
            { " et~al." * }
%                { " {\small and} " * t * }
            { " and " * t * }   
%%%KCB: added \small  %%KD removed small
          if$
        }
      if$
    }
    't
  if$
  nameptr #1 + 'nameptr :=
  namesleft #1 - 'namesleft :=
}
  while$
}
share|improve this question

migrated from stackoverflow.com Jul 2 '12 at 15:13

This question came from our site for professional and enthusiast programmers.

    
Just curious: Where did you obtain the file jf.bst from? From the journal's own site or from somewhere else? Please advise. –  Mico Jul 2 '12 at 16:20
    
It would be nice if you could provide the whole .bst, maybe a link for us to download it. IIRC format.name makes use of other definitions in the file. :) –  Paulo Cereda Jul 2 '12 at 16:50
    
I was not aware that the "format.names" functions referes to other functions that are uniquely specified in jf.bst. Sorry; this language is Egyptian to me. The jf.bst that I'm trying to use can be downloaded from here (it's unofficial): ivo-welch.info/computers/bstfiles. Thanks all. –  user16208 Jul 3 '12 at 4:13
add comment

1 Answer

The linked style was generated for 'standard' BibTeX use with the LaTeX kernel's \cite, and not with natbib. As such, you should look at generating a new .bst file using custom-bib or considering switching to biblatex.

share|improve this answer
add comment

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.