BibTeX, biblatex and biberchanging separator with apalike

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
thibaud74
Posts: 13
Joined: Fri May 27, 2011 4:33 pm

changing separator with apalike

Post by thibaud74 »

Hi,

I need to change the separator "." to "," before and after the title, the references of the review and the editor. I found a hack to replace the dot after the year with a comma:
I added in the preambule:

Code: Select all

\makeatletter
\newcommand{\addcommaandeatperiod}{\@ifnextchar.{,\@gobble}\relax}
\makeatother
An I edited the apalike.bst like this:

Code: Select all

FUNCTION {output.year.check}
{ year empty$
    { "empty year in " cite$ * warning$ }
    { write$
      " (" year * extra.label * ")[b]\addcommaandeatperiod[/b]" *
      mid.sentence 'output.state :=
    }
  if$
}
Now, I get those references:
Manovich, L. (2002), The language of new media. The MIT press.
Nonaka, I. (1994), A dynamic theory of organizational knowledge creation. Organization science  : a journal of the Institute of Management Sciences, 5(1) :14.
Pouget, M. (1998), Taylor et le taylorisme. puf, Paris.
When I want:
Manovich, L. (2002), The language of new media, The MIT press.
Nonaka, I. (1994), A dynamic theory of organizational knowledge creation, Organization science  : a journal of the Institute of Management Sciences, 5(1) :14.
Pouget, M. (1998), Taylor et le taylorisme, puf, Paris.
In wich places must I add my \addcommaandeatperiod instruction in apalike.bst ?

Best,
Thibaud.

Recommended reading 2024:

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

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

Post Reply