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 already modified apalike.bst to some of my needs, but I can't find this one -- which part do I have to change to have it include a colon after "author (year)" instead of a period .?

(I am using bibtex but not biblatex.)

share|improve this question
    
I am using "author, year and colon followed by page number" like this( e.g. Brown,2001:38) what do you suggest for this? –  user22265 Nov 18 '12 at 7:08

1 Answer 1

up vote 4 down vote accepted

apalike.bst adds a period before outputting \newblock. So a way can be changing the function output.year.check into

FUNCTION {output.year.check}
{ year empty$
    { "empty year in " cite$ * warning$ }
    { write$
      " (" year * extra.label * ")\addcolonandeatperiod" *
      mid.sentence 'output.state :=
    }
  if$
}

along with

\makeatletter
\newcommand{\addcolonandeatperiod}{\@ifnextchar.{:\@gobble}\relax}
\makeatother

in your document preamble. There may be more efficient ways.

share|improve this answer
    
That worked great. Thanks a lot! –  Mrmfldmn Nov 13 '12 at 7:53

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.