For Programmers: Free Programming Magazines  


Home > Archive > Tex > March 2005 > BibTeX name.or.dash with authort vs. editor









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author BibTeX name.or.dash with authort vs. editor
Patrik Nyman

2005-03-26, 4:00 pm

In makebst there's the option to mark repeated authors with a dash.
I'd like to have this, but am a bit displeased with how it works.
If the same person appears as both author and editor in the
bibliography, it is considered as two different authors, which
in my case gives the following output:

Potter, K. H. 1975. ...
Potter, K. H., ed. 1977. ...
Potter, K. H. 1984. ...
---. 1985. ...
---. 1991. ...
Potter, K. H., ed. 1993. ...
---. 2003a. ...
Potter, K. H. 2003b. ...

What I'd like to have is

Potter, K. H. 1975. ...
---, ed. 1977. ...
---. 1984. ...

etc. I know two bibstyles which does this correctly, achicago
and siam, but the first is incompatible with natbib, and the
second is a numerical style, I want author year.

The masterfile merlin.mbs for makebst, says in regard to the
pertinent function, called `name.or.dash':

This function stores what is on the stack, compares it with
previous value, and replaces it with a long dash if they are
equal. What is on the stack should be author or editor names
for the current entry.

Obviously, in the case of an editor, the stack contains the name
plus `, ed.', which is why things go wrong. Does anyone know how
to get the wanted behaviour? I've been trying to rewrite
name.or.dash, and to borrow code from achicago and siam, but
I've had no success.

Thanks in advance.

--
Patrik Nyman
patrik dot nyman at orient dot su dot se
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com