Bibtopic, and sorting

Hélène Fernandez <[email protected]>
Newsgroups gmane.comp.tex.bibtex.jurabib.user
Message-ID <[email protected]>
Hey,
I'm following-up after an exchange on fr.comp.text.tex.

1- On bibtopic and jurabib : for the sorting to be correct, you need to 
cite in your .tex file all the references contained in the .bib file. 
(This apparently because of a \citation{*} put in the .aux file.)

2- To correctly sort archival references, you may add this to 
jurabib.bst  :

FUNCTION{is.a.number}
{
   #1 swap$
   {duplicate$ #1 #1 substring$ duplicate$ "" = not}
     {chr.to.int$ duplicate$ #47 > swap$ #58 < and
       {#2 global.max$ substring$}
       {pop$ pop$ #0 ""}
     if$}
   while$
   pop$ pop$
}
FUNCTION{add.zeros}
{
   duplicate$ is.a.number
     {"000000000000000000" swap$ *
      #-1 #20 substring$}
     'skip$
   if$
}

And in the "presort" function, replace
      sig1 field.or.null sortify
with
      sig1 field.or.null add.zeros sortify
(and so on with sig2, sig3 and sig4).

Huge thanks to Nicolas Markey (hurrah!)
-- Hélène Fernandez.


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/jurabib/

<*> 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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.