[Tutkielma-TeX] [darcs] jydiss.cls-muutos: jydiss.bst: fix handling of multiple entries per author

Antti-Juhani Kaijanaho antti-juhani.a-j.kaijanaho at jyu.fi
Fri Oct 31 16:18:25 EET 2008


(English below)

Tämä on automaattinen ilmoitus jydiss-luokkaan tai sen dokumentaatioon tehdystä
muutoksesta.  Voit hakea uuden, muutetun version osoitteesta
  http://antti-juhani.kaijanaho.fi/darcs/jydiss/

Alla on tiedot tehdystä muutoksesta.

---

This is an automated notification of a change made to the jydiss document
class or its accompanying documentation.  You can get the new version at
  http://antti-juhani.kaijanaho.fi/darcs/jydiss/

Below, you will find information about the actual change.

Fri Oct 31 16:17:21 EET 2008  Antti-Juhani Kaijanaho <antti-juhani.a-j.kaijanaho at jyu.fi>
  * jydiss.bst: fix handling of multiple entries per author
diff -rN -u old-jydiss/jydiss.bst new-jydiss/jydiss.bst
--- old-jydiss/jydiss.bst	2008-10-31 16:18:25.413295000 +0200
+++ new-jydiss/jydiss.bst	2008-10-31 16:18:25.413295000 +0200
@@ -84,6 +84,11 @@
 
 integers { add.comma.tmp }
 
+function{and}
+{
+  #0 = { pop$ #0 } 'skip$ if$
+}
+
 function{or.anon}
 {
   duplicate$ empty$ { pop$ "Anon." } 'skip$ if$
@@ -221,7 +226,9 @@
   'sort.key$ :=
 }
 
-strings  { compute.label.one.prev compute.label.one.tmp
+strings  { compute.label.one.prev 
+           compute.label.one.prevyear
+           compute.label.one.tmp
            compute.label.one.previnx }
 integers { compute.label.one.i compute.label.one.n }
 
@@ -265,6 +272,8 @@
   if$
   % compute inx
   compute.label.one.prev author.or.editor.or.title =
+  compute.label.one.prevyear year =
+  and
   {
     compute.label.one.previnx chr.to.int$ #1 + int.to.chr$ 'inx :=
   }
@@ -274,6 +283,7 @@
   if$  
   inx 'compute.label.one.previnx :=
   author.or.editor.or.title 'compute.label.one.prev :=
+  year 'compute.label.one.prevyear :=
 }
 
 strings { compute.label.two.previnx }






More information about the Tutkielma-TeX mailing list