[Tutkielma-TeX] [darcs] jydiss.cls-muutos: Initial (not very useful) version of the BibTeX style jydiss.bst

Antti-Juhani Kaijanaho antti-juhani.a-j.kaijanaho at jyu.fi
Thu Oct 9 16:33:19 EEST 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.

Thu Oct  9 16:31:31 EEST 2008  Antti-Juhani Kaijanaho <antti-juhani.a-j.kaijanaho at jyu.fi>
  * Initial (not very useful) version of the BibTeX style jydiss.bst
diff -rN -u old-jydiss/bsttest.bib new-jydiss/bsttest.bib
--- old-jydiss/bsttest.bib	1970-01-01 02:00:00.000000000 +0200
+++ new-jydiss/bsttest.bib	2008-10-09 16:33:18.491512000 +0300
@@ -0,0 +1,141 @@
+% Sample bibliography entries from Olsbo & Tynkkynen: Ohjeita 
+% yliopistosarjojen kirjoittajalle (Jyväskylän yliopiston kirjasto, 
+% julkaisuyksikkö, 2003).
+
+ at Book{isaacson65:_psych,
+  language = {english},
+  author =    {R. L. Isaacson and M. L. Hunt and M. L. Blum},
+  title =        {Psychology.  The science of behavior},
+  publisher =    {Harper {\&} Row},
+  year =         1965,
+  address =   {New York}}
+
+ at InCollection{jaakkola70:_huumaus_suomes,
+  language = {finnish},
+  author =       {R. Jaakkola},
+  title =        {Huumausaineiden käyttö {S}uomessa},
+  booktitle =    {Huumausainekysymys},
+  pages =     {91--117},
+  publisher = {WSOY},
+  year =      1970,
+  editor =    {I. Taipale},
+  address =   {Porvoo}}
+
+ at InCollection{pulkkinen82:_self_contr_and_contin_from,
+  language = {english},
+  author =       {Lea Pulkkinen},
+  title =        {Self-control and continuity from childhood to late
+                  adolescence},
+  booktitle =    {Life-span development and behavior},
+  editor = {P. B. Baltes and O. G. Brim},
+  pages =     {63--105},
+  publisher = {Academic Press},
+  year =      1982,
+  volume =    4,
+  address =   {New York}}
+
+ at Book{niiniluoto80:_johdat_tieten_filos,
+  language = {finnish},
+  author =    {Ilkka Niiniluoto},
+  title =        {Johdatus tieteen filosofiaan. Käsitteen- ja teorianmuodostus},
+  publisher =    {Otava},
+  year =         1980,
+  address =   {Keuruu}}
+
+ at Book{vaisala67:_keskik_geomet,
+  language = {finnish},
+  author =    {K. Väisälä},
+  title =        {Keskikoulun geometria},
+  publisher =    {WSOY},
+  year =         1967,
+  address =   {Porvoo},
+  edition =   4}
+
+ at Article{morgan83:_learn_and_studen_life_qualit,
+  language = {english},
+  author =       {W. R. Morgan},
+  title =        {Learning and student life quality of public and
+                  private school youth},
+  journal =      {Sociology of Education},
+  year =         1983,
+  volume =    56,
+  number =    4,
+  pages =     {187--202}}
+
+ at Article{ekorre79:_nuoris_luvun_tavoit,
+  language = {finnish},
+  author =       {M. Ekorre},
+  title =        {Nuorisopolitiikan 1980-luvun tavoitteet},
+  journal =      {Nuorisotyö},
+  year =         1979,
+  number =    4,
+  pages =     {4--10}}
+
+ at Article{haavio-mannila82:_laatu_ja,
+  language = {finnish},
+  author =       {E. Haavio-Mannila},
+  title =        {Työn laatu ja työpaikkarakkaudet},
+  journal =      {Sosiologia},
+  year =         1982,
+  volume =    19,
+  number =    4,
+  pages =     {225--236}}
+
+ at Book{hurme78:_life_event_resear,
+  language = {english},
+  author =    {H. Hurme},
+  title =        {Life event research.  Findings and methodological problems},
+  publisher =    {University of Jyväskylä},
+  year = 1978,
+  number =    215,
+  series =    {Reports from the Department of Psychology}}
+
+ at Book{karvonen70:_opett_asent_odotuk_ja_oppim_jatkok_i,
+  language =     {finnish},
+  author =    {J. Karvonen},
+  title =        {Opettajien asenteet, odotukset ja oppimistulokset
+                  jatkokoulutuksessa {I}. Teoreettinen kehys},
+  publisher =    {Jyväskylän yliopisto},
+  year =         1970,
+  number =    63,
+  series =    {Kasvatustieteiden tutkimuslaitoksen julkaisuja}}
+
+ at Book{nummenmaa64:_languag_of_face,
+  language =     {english},
+  author =    {T. Nummenmaa},
+  title =        {The language of the face},
+  year =         1964,
+  number =    9,
+  series =    {Jyväskylä Studies in Education, Psychology and
+                  Social Research}}
+
+ at TechReport{beijer69:_huumausaineiden,
+  language =     {finnish},
+  author =       {S. Beijer},
+  title =        {Huumausaineiden käyttö {V}aasan kansalaiskouluissa,
+                  oppikouluissa ja ammattikouluissa},
+  type =         {Julkaisematon tutkimus},
+  year = {1969}
+}
+
+ at MastersThesis{kivinen71:_huumaus_nuort_ja_sosiaal,
+  language =     {finnish},
+  author =       {P. Kivinen},
+  title =        {Huumausaineita käyttävien nuorten
+                  personallisuudenpiirteistä ja sosiaalisista
+                  taustatekijöistä},
+  school =       {Helsingin yliopisto},
+  year =         1971,
+  type =      {Psykologian pro gradu -työ}
+}
+
+ at MastersThesis{olkinuora71:_kansa_ja_kansal_opetus_ja,
+  language =     {finnish},
+  author =       {H. Olkinuora},
+  title =        {Kansa- ja kansalaiskoulun opetussuunnitelmien ja
+                  oppikirjojen alkoholi-informaation erittely},
+  school =       {Jyväskylän yliopisto},
+  year =         1971,
+  type =         {Kasvatustieteen lisensiaattityö}
+}
+
diff -rN -u old-jydiss/bsttest.tex new-jydiss/bsttest.tex
--- old-jydiss/bsttest.tex	1970-01-01 02:00:00.000000000 +0200
+++ new-jydiss/bsttest.tex	2008-10-09 16:33:18.491512000 +0300
@@ -0,0 +1,54 @@
+%\documentclass[licentiate,english,utf8,bibweaklang]{jydiss}
+\documentclass[licentiate,english,utf8]{jydiss}
+
+\title{jydiss.bst test}
+\entitle{}
+\setauthor{Charles}{Darwin}
+
+\people{
+  \item[Author] Charles Darwin \\
+    Department of Mathematical Information Technology\\
+    University of Jyväskylä\\
+    Finland
+  \item[Supervisor] Professor Jean Baptiste Lamarck\\
+    Department of Mathematical Information Technology\\
+    University of Jyväskylä\\
+    Finland
+  \item[Reviewers] XXX
+
+    XXX
+  \item[Opponent] XXX
+}
+
+\usepackage{natbib}
+
+\begin{document}
+
+% monografiat
+\cite{isaacson65:_psych}
+\cite{niiniluoto80:_johdat_tieten_filos}
+\cite{vaisala67:_keskik_geomet}
+
+% kokoomateokset
+\cite{jaakkola70:_huumaus_suomes}
+\cite{pulkkinen82:_self_contr_and_contin_from}
+
+% aikakauslehdet
+\cite{morgan83:_learn_and_studen_life_qualit}
+\cite{ekorre79:_nuoris_luvun_tavoit}
+\cite{haavio-mannila82:_laatu_ja}
+
+% sarjajulkaisut
+\cite{hurme78:_life_event_resear}
+\cite{karvonen70:_opett_asent_odotuk_ja_oppim_jatkok_i}
+\cite{nummenmaa64:_languag_of_face}
+
+% opinnäytteet ja julkaisemattomat tutkimukset
+\cite{beijer69:_huumausaineiden}
+\cite{kivinen71:_huumaus_nuort_ja_sosiaal}
+\cite{olkinuora71:_kansa_ja_kansal_opetus_ja}
+
+\bibliographystyle{jydiss}
+\bibliography{bsttest}
+
+\end{document}
diff -rN -u old-jydiss/jydiss.bst new-jydiss/jydiss.bst
--- old-jydiss/jydiss.bst	1970-01-01 02:00:00.000000000 +0200
+++ new-jydiss/jydiss.bst	2008-10-09 16:33:18.491512000 +0300
@@ -0,0 +1,527 @@
+% Written by Antti-Juhani Kaijanaho in October 2008
+% You may treat this file as if it were in the public domain.
+
+% You can access the most recent version at
+%  http://antti-juhani.kaijanaho.fi/darcs/jydiss/
+
+
+
+
+% VARIABLE NAMING CONVENTION:
+% As a matter of consistency, real global variables should not contain
+% periods; use the format FUNCTION.VARIABLE to create variables
+% "local" to that function. Note that these variables are not truly
+% local, thus they should not be touched outside FUNCTION and FUNCTION
+% should treat them as "static local" variables (in C terminology)
+%
+% All truly global variables should be declared here; later
+% declarations are intended as "local" declarations.
+strings { longestlabel }
+integers { longestlabellen entrylevel }
+
+entry
+  { 
+    address
+    author
+    booktitle
+    chapter
+    edition
+    editor
+    howpublished
+    institution
+    journal
+    key
+    language
+    month
+    note
+    number
+    organization
+    pages
+    publisher
+    school
+    series
+    title
+    type
+    url
+    volume
+    year
+  }
+  {
+  }
+  { 
+    label
+    firstauthor
+    allauthors
+    inx
+  }
+
+% for compatibility -- we don't actually use these
+macro{jan}{"jan"}
+macro{feb}{"feb"}
+macro{mar}{"mar"}
+macro{apr}{"apr"}
+macro{may}{"may"}
+macro{jun}{"jun"}
+macro{jul}{"jul"}
+macro{aug}{"aug"}
+macro{sep}{"sep"}
+macro{oct}{"oct"}
+macro{nov}{"nov"}
+macro{dec}{"dec"}
+
+function{lang.ed} { "\makeatletter\jydiss at bib@ed\makeatother{}" }
+function{lang.eds} { "\makeatletter\jydiss at bib@eds\makeatother{}" }
+function{lang.vol} { "\makeatletter\jydiss at bib@vol\makeatother{}" }
+function{lang.In} { "\makeatletter\jydiss at bib@In\makeatother{}" }
+function{lang.mastersthesis} 
+{
+  "\makeatletter\jydiss at bib@mastersthesis\makeatother{}" 
+}
+function{lang.edition}
+{
+  "\makeatletter\jydiss at bib@edition{" swap$ * "}\makeatother{}" *
+}
+
+integers { add.comma.tmp }
+
+function{or.anon}
+{
+  duplicate$ empty$ { pop$ "Anon." } 'skip$ if$
+}
+
+function{the.year}
+{
+  year empty$ { "s.~a." } { year } if$
+}
+
+function{author.or.editor}
+{
+  author empty$ { editor } { author } if$
+}
+
+function{author.or.editor.or.title}
+{
+  author.or.editor
+  duplicate$ empty$ { pop$ title } 'skip$ if$
+}
+
+function{publisher.or.organization}
+{
+  publisher empty$ { organization } { publisher } if$
+}
+
+function{book.title}
+{
+  booktitle empty$ { title } { booktitle } if$
+}
+
+strings  { write.names.name }
+integers { write.names.i 
+           write.names.n
+           write.names.reverse }
+
+% first parameter is true if the name should start with the surname
+% second parameter is the field to be formatted
+% the result is written out
+function{write.names}
+{
+  'write.names.reverse :=
+  'write.names.name :=
+  write.names.name num.names$ 'write.names.n :=
+  #1 'write.names.i :=
+  {
+    write.names.i #1 - write.names.n <
+  }
+  {
+    write.names.i #1 =
+    'skip$
+    {
+      write.names.i write.names.n <
+      {
+        ", " write$
+      }
+      {
+        " \& " write$
+      }
+      if$
+    }
+    if$
+    write.names.name write.names.i
+      write.names.reverse 
+      { "{vv~}{ll}{, jj}{, f.}" }  
+      {"{f.~}{vv~}{ll}{, jj}"} 
+      if$
+    format.name$ write$
+    write.names.i #1 + 'write.names.i :=
+  }
+  while$
+}
+
+function{entry.start}
+{
+  entrylevel #0 =
+    {
+      "\bibitem[" label * "]{" * cite$ * "}" * write$ newline$
+      language empty$ 
+        'skip$
+        { "\makeatletter\jydiss at bib@startlanguage{" language * 
+          "}\makeatother" * write$ newline$ 
+        }
+      if$
+    }
+    'skip$
+    if$
+    entrylevel #1 + 'entrylevel :=
+}
+
+function{entry.end}
+{
+  entrylevel #1 - 'entrylevel :=
+  entrylevel #0 > 
+    'skip$ 
+    {
+      note empty$ { "" } { note } if$
+      "%" * write$ newline$
+      language empty$ 
+        'skip$ 
+        { "\makeatletter\jydiss at bib@endlanguage\makeatother"
+          write$ newline$ }
+      if$
+    }
+    if$
+}
+
+integers { presort.i presort.n }
+
+function{presort}
+{
+  "" 'sort.key$ :=
+  author.or.editor empty$
+  {
+    title "|" * the.year *
+  }
+  {
+    #1 'presort.i :=
+    author.or.editor num.names$ 'presort.n :=
+    sort.key$ 
+    { presort.i #1 - presort.n < }
+    {
+      author.or.editor presort.i "{ll}{jj}{vv}{ff}" format.name$ *
+      "|" *
+      presort.i #1 + 'presort.i :=
+    }
+    while$
+    "|" * 
+    the.year *
+    "|" *
+    title *
+  }
+  if$
+  %
+  'sort.key$ :=
+}
+
+strings  { compute.label.one.prev compute.label.one.tmp
+           compute.label.one.previnx }
+integers { compute.label.one.i compute.label.one.n }
+
+function{compute.label.one}
+{
+  % compute firstauthor and allauthors
+  author.or.editor empty$
+  {
+    title 'firstauthor :=
+    title 'allauthors :=
+  }
+  {
+    author.or.editor num.names$ 'compute.label.one.n :=
+    #1 'compute.label.one.i :=
+    "" 'firstauthor :=
+    "" 'allauthors :=
+    { compute.label.one.i #1 - compute.label.one.n < }
+    {
+      author.or.editor compute.label.one.i "{vv~}{ll}" format.name$
+      'compute.label.one.tmp :=
+      compute.label.one.i #1 =
+        {
+          compute.label.one.tmp 'firstauthor :=
+        }
+        {
+          compute.label.one.i compute.label.one.n <
+            {
+              allauthors ", " * 'allauthors :=
+            }
+            {
+              allauthors ", and " * 'allauthors :=
+            }
+          if$
+        }
+      if$
+      allauthors compute.label.one.tmp * 'allauthors :=
+      compute.label.one.i #1 + 'compute.label.one.i :=
+    }
+    while$
+  }
+  if$
+  % compute inx
+  compute.label.one.prev author.or.editor.or.title =
+  {
+    compute.label.one.previnx chr.to.int$ #1 + int.to.chr$ 'inx :=
+  }
+  {
+    "a" 'inx :=
+  }
+  if$  
+  inx 'compute.label.one.previnx :=
+  author.or.editor.or.title 'compute.label.one.prev :=
+}
+
+strings { compute.label.two.previnx }
+
+function{compute.label.two}
+{
+  inx "a" =
+  {
+    compute.label.two.previnx "b" =
+    'skip$
+    {
+      "" 'inx :=
+    }
+    if$
+  }
+  'skip$
+  if$
+  inx 'compute.label.two.previnx :=
+}
+
+function{compute.label.three}
+{
+  author.or.editor empty$
+  {
+    title
+    " (" *
+    the.year *
+    ")" *
+    'label :=
+  }
+  {
+    author.or.editor num.names$ #1 >
+      {
+        firstauthor 
+        " et al.(" *
+        the.year *
+        ")" *
+        allauthors *
+        'label :=
+      }
+      {
+        firstauthor 
+        "(" *
+        the.year *
+        ")" *
+        'label :=
+      }
+    if$
+  }
+  if$
+  label text.length$ longestlabellen >
+  {
+    label 'longestlabel :=
+    label text.length$ 'longestlabellen :=
+  }
+  'skip$
+  if$
+}
+
+function{begin.bib}
+{
+  preamble$ write$
+  "\begin{thebibliography}{" write$ 
+  longestlabel write$
+  "}" write$
+  newline$
+}
+function{end.bib}
+{
+  "\end{thebibliography}" write$ newline$
+}
+
+function{bookish.tail}
+{
+  book.title volume empty$ { "" } { ", " lang.vol * " " * volume * } if$ *
+  add.period$ " " * write$
+  edition empty$
+  { "" }
+  {
+    "(" edition lang.edition * ") " *
+  }
+  if$
+  address empty$ { "" } { address ": " * } if$ *
+  publisher.or.organization empty$ { "" } { publisher.or.organization } if$ *
+  series empty$
+  { 
+    number empty$ 'skip$ { "Superfluous number in " cite$ * warning$ } if$
+    ""
+  }
+  {
+    add.period$ " " * series *
+    number empty$ { "" } { " " number * } if$
+  }
+  if$ *
+  pages empty$ { "" } { ", " pages * } if$ *
+  add.period$ "%" * write$ newline$
+}
+
+function{article}
+{
+  entry.start
+  author #1 write.names
+  " " the.year * inx * ". " * write$ 
+  title "t" change.case$ add.period$ " " * write$
+  journal
+  volume empty$
+  { 
+    number empty$
+    {
+      "Missing volume and number in " cite$ * warning$
+    }
+    {
+      " " number * *
+    }
+    if$
+  }
+  {
+    " " *
+    number empty$
+    {
+      volume *
+    }
+    {
+      volume * " (" * number * ")" *
+    }
+    if$
+  }
+  if$
+  pages empty$ { "" } { ", " pages * } if$ *
+  add.period$ "%" * write$ newline$
+  entry.end
+}
+
+function{book}
+{
+  entry.start
+  author.or.editor or.anon #1 write.names 
+  editor empty$
+  'skip$
+  {
+    " ("
+    editor num.names$ #1 > { lang.eds } { lang.ed } if$ *
+    ")" * write$
+  }
+  if$
+  " " the.year * inx * add.period$ " " * write$ 
+  bookish.tail
+  entry.end
+}
+
+function{proceeding}
+{
+  book
+}
+
+function{proceedings}
+{
+  book
+}
+
+function{inproceedings}
+{
+  entry.start
+  author or.anon #1 write.names 
+  " " the.year * inx * ". " * write$ 
+  title "t" change.case$ add.period$ " " * write$ 
+  lang.In " " * write$
+  editor empty$
+  'skip$
+  {
+    editor #0 write.names
+    " ("
+    editor num.names$ #1 > { lang.eds } { lang.ed } if$ *
+    ") " * write$
+  }
+  if$
+  bookish.tail
+  entry.end
+}
+
+function{conference}
+{
+  inproceedings
+}
+
+function{incollection}
+{
+  inproceedings
+}
+
+function{techreport}
+{
+  entry.start
+  author.or.editor or.anon #1 write.names
+  " " the.year * inx * add.period$ " " * write$ 
+  title
+  institution empty$ 'skip$ { add.period$ " " * institution * } if$
+  type empty$ 'skip$ { add.period$ " " * type * } if$
+  pages empty$ 'skip$ { ", " * pages * } if$
+  add.period$ "%" * write$ newline$  
+  entry.end
+}
+
+function{mastersthesis}
+{
+  entry.start
+  author or.anon #1 write.names
+  " " the.year * inx * add.period$ " " * write$ 
+  title
+  school empty$ 'skip$ { add.period$ " " * school * } if$
+  add.period$ " " * type empty$ { lang.mastersthesis } { type } if$ *
+  pages empty$ 'skip$ { ", " * pages * } if$
+  add.period$ "%" * write$ newline$  
+  entry.end
+}
+
+function{manual}
+{
+  book
+}
+
+function{misc}
+{
+  entry.start
+  author or.anon #1 write.names
+  " " the.year * inx * add.period$ " " * write$
+  title empty$ 'skip$ { title add.period$ " " * write$ } if$
+  howpublished empty$ 'skip$ { howpublished add.period$ " " * write$ } if$
+  url empty$ 'skip$ { newline$ "{\url{" url * "}}" * write$ newline$ } if$
+  entry.end
+}
+
+function{unpublished}
+{
+  misc
+}
+
+function{default.type}
+{
+  misc 
+}
+
+read
+iterate{presort}
+sort
+iterate{compute.label.one}
+reverse{compute.label.two}
+iterate{compute.label.three}
+execute{begin.bib}
+iterate{call.type$}
+execute{end.bib}
diff -rN -u old-jydiss/jydiss.cls new-jydiss/jydiss.cls
--- old-jydiss/jydiss.cls	2008-10-09 16:33:18.491512000 +0300
+++ new-jydiss/jydiss.cls	2008-10-09 16:33:18.491512000 +0300
@@ -118,6 +118,13 @@
 \diss at listingsfalse
 \DeclareOption{listings}{\diss at listingstrue}
 
+\def\jydiss at bib@startlanguage#1{\begingroup\selectlanguage{#1}}
+\def\jydiss at bib@endlanguage{\endgroup}
+\DeclareOption{bibweaklang}{%
+  \gdef\jydiss at bib@startlanguage#1{\begin{hyphenrules}{#1}}
+  \gdef\jydiss at bib@endlanguage{\end{hyphenrules}}
+}
+
 % Deprecated, kept for compatibility
 \newif\ifdiss at stupid
 \diss at stupidfalse
@@ -146,6 +153,9 @@
   \newcommand\printindex{}
 \fi
 
+\RequirePackage{calc}
+\newcounter{jydiss at lastdigit}
+
 %%%% Babel
 
 \RequirePackage[finnish,english]{babel}
@@ -156,30 +166,54 @@
 \fi
 
 % These terms are not defined in the english babel
-\ifdiss at fi
 \addto\captionsfinnish{% Adding these to babel's finnish
-\def\bibname{L\"ahteet}
-\def\acknowledgementsname{Kiitokset}
-\def\termlistname{Sanasto}
-\def\appendicesname{Liitteet}
-\def\includedarticlesname{Sis\"allytetyt artikkelit}
-\def\listarticlename{Artikkelit}
-\def\loftname{Kuviot ja taulukot}
-\def\listfigurename{Kuviot} % Babel's default value is "Kuvat"
+\def\bibname{L\"ahteet}%
+\def\acknowledgementsname{Kiitokset}%
+\def\termlistname{Sanasto}%
+\def\appendicesname{Liitteet}%
+\def\includedarticlesname{Sis\"allytetyt artikkelit}%
+\def\listarticlename{Artikkelit}%
+\def\loftname{Kuviot ja taulukot}%
+\def\listfigurename{Kuviot}% Babel's default value is "Kuvat"
+% for jydiss.bst
+\def\jydiss at bib@ed{toim.}%
+\def\jydiss at bib@eds{toim.}%
+\def\jydiss at bib@vol{osa}%
+\def\jydiss at bib@In{Teoksessa}%
+\def\jydiss at bib@mastersthesis{Pro gradu -ty\"o}%
+\def\jydiss at bib@edition#1{%
+  #1%
+  \ifnum9<1#1%
+  .%
+  \fi%
+  ~painos%
+}%
 }
-\else
-\addto\captionsenglish{
-\def\bibname{References}
-\def\acknowledgementsname{Acknowledgements}
-\def\termlistname{Glossary}
-\def\appendicesname{Appendices}
-\def\includedarticlesname{Included Articles}
-\def\listarticlename{List of Included Articles}
-\def\loftname{List of Figures and Tables}
-\def\finnishsummaryheading{Yhteenveto (Finnish Summary)}
-\def\finnishsummaryabstract{Finnish summary}
+\addto\captionsenglish{%
+\def\bibname{References}%
+\def\acknowledgementsname{Acknowledgements}%
+\def\termlistname{Glossary}%
+\def\appendicesname{Appendices}%
+\def\includedarticlesname{Included Articles}%
+\def\listarticlename{List of Included Articles}%
+\def\loftname{List of Figures and Tables}%
+\def\finnishsummaryheading{Yhteenveto (Finnish Summary)}%
+\def\finnishsummaryabstract{Finnish summary}%
+% for jydiss.bst
+\def\jydiss at bib@ed{Ed.}%
+\def\jydiss at bib@eds{Eds.}%
+\def\jydiss at bib@vol{Vol.}%
+\def\jydiss at bib@mastersthesis{Master's Thesis}%
+\def\jydiss at bib@In{In}%
+\def\jydiss at bib@edition#1{%
+  #1%
+  \ifnum9<1#1%
+  \setcounter{jydiss at lastdigit}{#1 - #1 / 10 * 10}%
+  \ifcase\thejydiss at lastdigit th\or st\or nd\or rd\else th\fi%
+  \fi~%
+  edition%
+}%
 }
-\fi
 
 \diss at useutf
 \RequirePackage[\diss at inputenc]{inputenc}
diff -rN -u old-jydiss/manual.tex new-jydiss/manual.tex
--- old-jydiss/manual.tex	2008-10-09 16:33:18.491512000 +0300
+++ new-jydiss/manual.tex	2008-10-09 16:33:18.491512000 +0300
@@ -18,6 +18,8 @@
 \newcommand{\cmd}[1]{\texttt{\textbackslash#1}}
 \newcommand{\opt}[1]{\texttt{#1}}
 \newcommand{\env}[1]{\texttt{#1}}
+\newcommand{\bibfld}[1]{\texttt{#1}}
+\newcommand{\bibstr}[1]{\texttt{#1}}
 \newcommand{\pack}[1]{\textit{#1}}
 \newcommand{\argu}[1]{\textit{#1}}
 \newcommand{\cls}[1]{\textsc{#1}}
@@ -139,6 +141,12 @@
 they are short. \emph{Do not use it if you do not have a list of figures}.
 \item[contribbefore] will place the description of the author's contribution
 before the list of included articles instead of after.
+\item[bibweaklang] has effect only if the \emph{jydiss} bibliography
+  style is used with Bib\TeX; it will restrict the effect of any
+  language field in a Bib\TeX{} record to hyphenation only.  Without this
+  option, using the \emph{jydiss} bibliography style, the language
+  field will affect also the overall language used in the entry
+  (things like ``in'' versus ``teoksessa'' etc.).
 \end{opts}
 
 \subsection{Layout Fine-Tuning Options}
@@ -335,6 +343,37 @@
 odd-numbered page).
 \end{cmds}
 
+\section{Using the provided Bib\TeX{} style}
+
+\fbox{\parbox{\textwidth}{\textbf{WARNING:} The Bib\TeX{} style
+    described in this section has not been tested in real use at this
+    moment.  It is unlikely to work for any actual use yet -- but feel
+    free to try if you aren't in too much of a hurry, and email
+    Antti-Juhani with a story of how it worked out.}}
+
+This package comes now with an optional Bib\TeX{} style file.  The
+style implements the style guidelines for bibliographies specified by
+the University of Jyväskylä publication unit.
+
+To use the style, specify \cmd{bibliographystyle\{jydiss\}} somewhere
+in your document.  You must also load the \pack{natbib} package,
+since the style file is intended to be used with an author--year
+citation style.
+
+Any standard Bib\TeX{} database ought to work with the style file, but
+there are the following additional features available:
+\begin{itemize}
+\item Any Bib\TeX{} record may contain a \bibfld{language} field, which
+  must be a Babel language name (either \bibstr{finnish} or
+  \bibstr{english}).  That particular bibliography entry will then be
+  rendered in that language, regardless of the document's overall
+  language.\footnote{If you want to use the same language for all
+    entries, use the \opt{bibweaklang} documentclass option; then the
+    entry language will only affect hyphenation.}
+\end{itemize}
+
+
+
 \section{Tips and Tricks}
 
 \subsection{\pack{algorithm} and \pack{hyperref}}






More information about the Tutkielma-TeX mailing list