Re: Re: multiple authors with same surname bug

RS <[email protected]> Sun, 26 Oct 2003 20:14:27 +0100
Newsgroups gmane.comp.tex.bibtex.jurabib.devel
Message-ID <[email protected]>
On 26.10.2003 14:48, Jens Berger wrote:
> Robert, could you take a look please? Seems to be a problem with
> forward.pass and revers.pass, isn't it?

Rather with presort. Items are sorted by "name year title" whereas, for
the construction of the extra label, they should be sorted by "label
name year title". So they must actually be sorted twice. (I've just
looked at chicago and natbib, and they both do.)

So, this could be a solution, stolen from plainnat.bst:

-------------------------------------------
FUNCTION {presort}
{ calc.label
   calc.dummy.label
   dummy.label sortify " " *
   sortkey empty$
.
.
.
   #1 entry.max$ substring$
   'sort.label := % save for later
   sort.label *
   #1 entry.max$ substring$
   'sort.key$ :=  % includes dummy.label
}
-------------------------------------------

and then, after REVERSE{reverse.pass}:

-------------------------------------------
FUNCTION {bib.sort.order}
{ sort.label  'sort.key$ :=
}

ITERATE {bib.sort.order}

SORT
-------------------------------------------


Same with jureco.bst.


BTW, I wonder why dummy.label contains LaTeX markup? I'ld say it
shouldn't. (Sorry, no more time for that, today.)


Regards,
Robert.




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/EGnolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/