Biblatex Style for linguistic department at the University of Salzburg
authorAndreas Bilke <andreas@bilke.org>
Tue, 23 Apr 2013 13:02:00 +0000 (15:02 +0200)
committerAndreas Bilke <abilke@cosy.sbg.ac.at>
Mon, 15 Feb 2016 10:35:49 +0000 (11:35 +0100)
README.md [new file with mode: 0644]
ngerman-sbg-linguistics.lbx [new file with mode: 0644]
sbg-linguistics.bbx [new file with mode: 0644]
sbg-linguistics.cbx [new file with mode: 0644]
sbg-linguistics.dbx [new file with mode: 0644]

diff --git a/README.md b/README.md
new file mode 100644 (file)
index 0000000..1f9158b
--- /dev/null
+++ b/README.md
@@ -0,0 +1,23 @@
+biblatex-sbg-linguistics
+========================
+
+Biblatex Style for the Linguistics department at the University of Salzburg.
+
+# Installation
+
+Copy the content to your local TEXMF tree at the following subdirectory:
+
+`$(TEXMF)/tex/latex/biblatex-sbg-linguistics`
+
+`$(TEXMF)` is mostly at `$(HOME)/.texmf`
+
+# Usage
+
+Within the preamble type:
+
+`\usepackage[backend=biber, style=sbg-linguistics]{biblatex}`
+
+The types `inbook`, `inproceedings` and `incollection` were extended with a new field `bookyear` which is used to indicate a different publication date for the parent publication. It  is printed after the `loction+publisher` area.
+
+If in(book|proceedings|collection) uses corssref the parent bibfield `year` is inherited into the `bookyear` field.
+
diff --git a/ngerman-sbg-linguistics.lbx b/ngerman-sbg-linguistics.lbx
new file mode 100644 (file)
index 0000000..52405d5
--- /dev/null
@@ -0,0 +1,37 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% ngerman-sbg-linguistics.lbx, v0.1
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+%   http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% A bibliography style for use with biblatex
+% Developed by Andreas Bilke,
+% based on  the guidlines of the linguistics department at the
+% University of Salzburg
+%
+% This work consists of the files sbg-linguistics.bbx,
+% sbg-lingusitics.dbx, sbg-linguistics.ctx and ngerman-sbg-linguistics.lbx
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\ProvidesFile{ngerman-sbg-linguistics.lbx}
+\InheritBibliographyExtras{ngerman}
+
+\NewBibliographyString{onlinestrg}
+
+\DeclareBibliographyStrings{%
+    inherit = {ngerman},
+    andothers={{et\addabbrvspace al\adddot}{et\addabbrvspace al\adddot}},
+    edition={{Auflage}{Auflage}},
+    volume={{Band}{Band}},
+    onlinestrg={{online}{online}},
+    url={{Verfügbar unter}{Verfügbar unter}},
+    urlseen={{abgerufen am}{abgerufen am}},
+    phdthesis={{Dissertation}{Dissertation}}
+}
+
+\endinput
diff --git a/sbg-linguistics.bbx b/sbg-linguistics.bbx
new file mode 100644 (file)
index 0000000..2395bef
--- /dev/null
@@ -0,0 +1,444 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% sbg-linguistics.bbx, v0.1
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+%   http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% A bibliography style for use with biblatex
+% Developed by Andreas Bilke,
+% based on  the guidlines of the linguistics department at the
+% University of Salzburg
+%
+% This work consists of the files sbg-linguistics.bbx,
+% sbg-lingusitics.dbx, sbg-linguistics.ctx and ngerman-sbg-linguistics.lbx
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\ProvidesFile{sbg-linguistics.bbx}
+\RequireBiber[3]
+
+\RequireBibliographyStyle{authoryear}
+
+\DeclareLanguageMapping{ngerman}{ngerman-sbg-linguistics}
+
+\DeclareDataInheritance{book,proceedings,collection}{inbook,inproceedings,incollection}{
+    \inherit{year}{bookyear}
+}
+
+\usepackage{xpatch}
+
+\ExecuteBibliographyOptions{
+       isbn=false, % Entferne ISBN
+       doi=false, % Entferne DOI
+    uniquename=init,
+    firstinits=true, % Immer Namensinitiale nehmen
+    dashed=false, % entferne Dash bei Autoren in Bibliographie die aufeinanderfolgen
+    alldates=long,
+    dateabbrev=false
+}
+
+\DeclareFieldFormat{url}{\bibstring{url}\addcolon\space\textless\url{#1}\textgreater}
+\DeclareFieldFormat{urldate}{{[}\bibstring{urlseen}\space#1{]}}
+
+\DeclareNameAlias{sortname}{last-first}
+\DeclareNameAlias{default}{last-first}
+
+\DeclareFieldFormat[book, thesis]{title}{\emph{#1}}
+\DeclareFieldFormat[inproceedings, incollection, inbook]{labeltitle}{#1}
+\DeclareFieldFormat[article, inproceedings, incollection, inbook]{title}{#1}
+
+\DeclareFieldFormat[online]{title}{\emph{#1}\space{[}\bibxstring{onlinestrg}{]}}
+
+% In: kursiv machen
+\renewbibmacro*{in:}{%
+    \printtext{%
+        \emph{\bibstring{in}}\intitlepunct}}
+
+
+% Klammer um Jahreszahl entfernen
+\xpatchbibmacro{date+extrayear}{%
+    \printtext[parens]%
+}{%
+    \setunit{\addperiod\space}%
+    \addcomma\printtext%
+}{}{}
+
+% Komma zwischen Journaltitle und Volumne(Edtion)
+\xpatchbibmacro{journal+issuetitle}{%
+    \usebibmacro{volume+number+eid}%
+}{%
+    \setunit{\addcomma\space}%
+    \usebibmacro{volume+number+eid}%
+}{}{}
+
+% Journal volumne + numberm, Form: Volume(Number)
+\renewbibmacro*{volume+number+eid}{%
+  \printfield{volume}%
+  \printfield[parens]{number}%
+  \setunit{\addcomma\space}%
+  \printfield{eid}%
+}
+
+% Editor Aussehen umdefinieren. Form NAME, Hrsg.
+\renewbibmacro*{byeditor+others}{%
+  \ifnameundef{editor}
+    {}
+    {\printnames[byeditor]{editor}\addcomma\space \bibstring{editor}%
+     \clearname{editor}%
+     \newunit}%
+  \usebibmacro{byeditorx}%
+  \usebibmacro{bytranslator+others}}
+
+% Übersetzer Aussehen umdefinieren, Form: NAME, Übers.
+\renewbibmacro*{bytranslator+others}{
+  \ifnameundef{translator}
+    {}
+    {\printnames[bytranslator]{translator}\addcomma\space \bibstring{translator}%
+     \clearname{translator}%
+     \newunit}%
+  \usebibmacro{withothers}}
+
+% Autorenform: NACHNAME, F.
+\DeclareNameFormat{author}{%
+    \ifthenelse{\value{listcount}=\value{liststop}}
+    {%
+        \ifthenelse{\value{listcount}>1}
+        {%
+            {\bibstring{and}\space }%
+        }{}%
+    }{}%
+    {\textsc{#1}\ifblank{#4}{}{\addcomma\space #4}}%
+    \ifthenelse{\value{listcount}<\value{liststop}}%
+    {%
+        {\addcomma\space}%
+    }{}%
+}
+
+% Editorform (als Autor): NACHNAME, F.
+\DeclareNameFormat{editor}{%
+    \ifthenelse{\value{listcount}=\value{liststop}}
+    {%
+        \ifthenelse{\value{listcount}>1}
+        {%
+            {\bibstring{and}\space }%
+        }{}%
+    }{}%
+    {\textsc{#1}\ifblank{#4}{}{\addcomma\space #4}}%
+    \ifthenelse{\value{listcount}<\value{liststop}}%
+    {%
+        {\addcomma\space}%
+    }{}%
+}
+
+% Editorform: F. NACHNAME
+\DeclareNameFormat{byeditor}{%
+    \ifthenelse{\value{listcount}=\value{liststop}}
+    {%
+        \ifthenelse{\value{listcount}>1}
+        {%
+            {\bibstring{and}\space }%
+        }{}%
+    }{}%
+    {\ifblank{#4}{}{#4\space}\textsc{#1}}%
+    \ifthenelse{\value{listcount}<\value{liststop}}%
+    {%
+        {\addcomma\space}%
+    }{}%
+}
+
+% Translatorform (als Autor): NACHNAME, F.
+\DeclareNameFormat{translator}{%
+    \ifthenelse{\value{listcount}=\value{liststop}}
+    {%
+        \ifthenelse{\value{listcount}>1}
+        {%
+            {\bibstring{and}\space }%
+        }{}%
+    }{}%
+    {\textsc{#1}\ifblank{#4}{}{\addcomma\space #4}}%
+    \ifthenelse{\value{listcount}<\value{liststop}}%
+    {%
+        {\addcomma\space}%
+    }{}%
+}
+
+% Translatorform: F. NACHNAME
+\DeclareNameFormat{bytranslator}{%
+    \ifthenelse{\value{listcount}=\value{liststop}}
+    {%
+        \ifthenelse{\value{listcount}>1}
+        {%
+            {\bibstring{and}\space }%
+        }{}%
+    }{}%
+    {\ifblank{#4}{}{#4\space}\textsc{#1}}%
+    \ifthenelse{\value{listcount}<\value{liststop}}%
+    {%
+        {\addcomma\space}%
+    }{}%
+}
+
+\DeclareBibliographyDriver{article}{%
+  \usebibmacro{bibindex}%
+  \usebibmacro{begentry}%
+  \usebibmacro{author/translator+others}%
+  \setunit{\labelnamepunct}\newblock
+  \usebibmacro{title}%
+  \newunit
+  \printlist{language}%
+  \newunit\newblock
+  \usebibmacro{byauthor}%
+  \newunit\newblock
+  \usebibmacro{bytranslator+others}%
+  \newunit\newblock
+  \printfield{version}%
+  \newunit\newblock
+  % OHNE In:!
+  % \usebibmacro{in:}%
+  \usebibmacro{journal+issuetitle}%
+  \newunit
+  \usebibmacro{byeditor+others}%
+  \newunit
+  \usebibmacro{note+pages}%
+  \newunit\newblock
+  \iftoggle{bbx:isbn}
+    {\printfield{issn}}
+    {}%
+  \newunit\newblock
+  \usebibmacro{doi+eprint+url}%
+  \newunit\newblock
+  \usebibmacro{addendum+pubstate}%
+  \setunit{\bibpagerefpunct}\newblock
+  \usebibmacro{pageref}%
+  \newunit\newblock
+  \usebibmacro{related}%
+  \usebibmacro{finentry}}
+
+% Extra Feld für Jahr eines Buches (genutzt z. B. bei Inbook)
+\newbibmacro*{bookyear}{%
+  \setunit*{\addcomma\space}%
+  \iffieldundef{bookyear}
+    {\printfield{year}}%
+    {\printfield{bookyear}}%
+  \newunit}
+
+\DeclareBibliographyDriver{inbook}{%
+  \usebibmacro{bibindex}%
+  \usebibmacro{begentry}%
+  \usebibmacro{author/translator+others}%
+  \setunit{\labelnamepunct}\newblock
+  \usebibmacro{title}%
+  \newunit
+  \printlist{language}%
+  \newunit\newblock
+  \usebibmacro{byauthor}%
+  \newunit\newblock
+  \usebibmacro{in:}%
+  \usebibmacro{byeditor+others}%
+  \newunit\newblock
+  \usebibmacro{bybookauthor}%
+  \newunit\newblock
+  \usebibmacro{maintitle+booktitle}%
+  \newunit\newblock
+  \printfield{edition}%
+  \newunit
+  \iffieldundef{maintitle}
+    {\printfield{volume}%
+     \printfield{part}}
+    {}%
+  \newunit
+  \printfield{volumes}%
+  \newunit\newblock
+  \usebibmacro{series+number}%
+  \newunit\newblock
+  \printfield{note}%
+  \newunit\newblock
+  \usebibmacro{publisher+location+date}%
+  \usebibmacro{bookyear}%
+  \newunit\newblock
+  \usebibmacro{chapter+pages}%
+  \newunit\newblock
+  \iftoggle{bbx:isbn}
+    {\printfield{isbn}}
+    {}%
+  \newunit\newblock
+  \usebibmacro{doi+eprint+url}%
+  \newunit\newblock
+  \usebibmacro{addendum+pubstate}%
+  \setunit{\bibpagerefpunct}\newblock
+  \usebibmacro{pageref}%
+  \newunit\newblock
+  \usebibmacro{related}%
+  \usebibmacro{finentry}}
+
+\DeclareBibliographyDriver{incollection}{%
+  \usebibmacro{bibindex}%
+  \usebibmacro{begentry}%
+  \usebibmacro{author/translator+others}%
+  \setunit{\labelnamepunct}\newblock
+  \usebibmacro{title}%
+  \newunit
+  \printlist{language}%
+  \newunit\newblock
+  \usebibmacro{byauthor}%
+  \newunit\newblock
+  \usebibmacro{in:}%
+  \usebibmacro{byeditor+others}%
+  \newunit\newblock
+  \usebibmacro{maintitle+booktitle}%
+  \newunit\newblock
+  \printfield{edition}%
+  \newunit
+  \iffieldundef{maintitle}
+    {\printfield{volume}%
+     \printfield{part}}
+    {}%
+  \newunit
+  \printfield{volumes}%
+  \newunit\newblock
+  \usebibmacro{series+number}%
+  \newunit\newblock
+  \printfield{note}%
+  \newunit\newblock
+  \usebibmacro{publisher+location+date}%
+  \usebibmacro{bookyear}%
+  \newunit\newblock
+  \usebibmacro{chapter+pages}%
+  \newunit\newblock
+  \iftoggle{bbx:isbn}
+    {\printfield{isbn}}
+    {}%
+  \newunit\newblock
+  \usebibmacro{doi+eprint+url}%
+  \newunit\newblock
+  \usebibmacro{addendum+pubstate}%
+  \setunit{\bibpagerefpunct}\newblock
+  \usebibmacro{pageref}%
+  \newunit\newblock
+  \usebibmacro{related}%
+  \usebibmacro{finentry}}
+
+\DeclareBibliographyDriver{inproceedings}{%
+  \usebibmacro{bibindex}%
+  \usebibmacro{begentry}%
+  \usebibmacro{author/translator+others}%
+  \setunit{\labelnamepunct}\newblock
+  \usebibmacro{title}%
+  \newunit
+  \printlist{language}%
+  \newunit\newblock
+  \usebibmacro{byauthor}%
+  \newunit\newblock
+  \usebibmacro{in:}%
+  \usebibmacro{byeditor+others}%
+  \newunit\newblock
+  \usebibmacro{maintitle+booktitle}%
+  \newunit\newblock
+  \usebibmacro{event+venue+date}%
+  \newunit\newblock
+  \iffieldundef{maintitle}
+    {\printfield{volume}%
+     \printfield{part}}
+    {}%
+  \newunit
+  \printfield{volumes}%
+  \newunit\newblock
+  \usebibmacro{series+number}%
+  \newunit\newblock
+  \printfield{note}%
+  \newunit\newblock
+  \printlist{organization}%
+  \newunit
+  \usebibmacro{publisher+location+date}%
+  \usebibmacro{bookyear}%
+  \newunit\newblock
+  \usebibmacro{chapter+pages}%
+  \newunit\newblock
+  \iftoggle{bbx:isbn}
+    {\printfield{isbn}}
+    {}%
+  \newunit\newblock
+  \usebibmacro{doi+eprint+url}%
+  \newunit\newblock
+  \usebibmacro{addendum+pubstate}%
+  \setunit{\bibpagerefpunct}\newblock
+  \usebibmacro{pageref}%
+  \newunit\newblock
+  \usebibmacro{related}%
+  \usebibmacro{finentry}}
+
+% Thesis
+\DeclareBibliographyDriver{thesis}{%
+  \usebibmacro{bibindex}%
+  \usebibmacro{begentry}%
+  \usebibmacro{author}%
+  \setunit{\labelnamepunct}\newblock
+  \printfield{type}%
+  \newunit\newblock
+  \usebibmacro{title}%
+  \newunit
+  \printlist{language}%
+  \newunit\newblock
+  \usebibmacro{byauthor}%
+  \newunit\newblock
+  \printfield{note}%
+  \newunit
+  \usebibmacro{institution+location+date}%
+  \newunit\newblock
+  \usebibmacro{chapter+pages}%
+  \newunit
+  \printfield{pagetotal}%
+  \newunit\newblock
+  \iftoggle{bbx:isbn}
+    {\printfield{isbn}}
+    {}%
+  \newunit\newblock
+  \usebibmacro{doi+eprint+url}%
+  \newunit\newblock
+  \usebibmacro{addendum+pubstate}%
+  \setunit{\bibpagerefpunct}\newblock
+  \usebibmacro{pageref}%
+  \newunit\newblock
+  \usebibmacro{related}%
+  \usebibmacro{finentry}}
+
+\DeclareBibliographyDriver{online}{%
+  \usebibmacro{bibindex}%
+  \usebibmacro{begentry}%
+  \usebibmacro{author/editor+others/translator+others}%
+  \setunit{\labelnamepunct}\newblock
+  \usebibmacro{title}%
+  \newunit
+  \printlist{language}%
+  \newunit\newblock
+  \usebibmacro{byauthor}%
+  \newunit\newblock
+  \usebibmacro{byeditor+others}%
+  \newunit\newblock
+  \printfield{version}%
+  \newunit
+  \printfield{note}%
+  \newunit\newblock
+  \printlist{organization}%
+  \newunit\newblock
+  \usebibmacro{publisher+location+date}%
+  \usebibmacro{date}%
+  \newunit\newblock
+  \iftoggle{bbx:eprint}
+    {\usebibmacro{eprint}}
+    {}%
+  \newunit\newblock
+  \usebibmacro{url+urldate}%
+  \newunit\newblock
+  \usebibmacro{addendum+pubstate}%
+  \setunit{\bibpagerefpunct}\newblock
+  \usebibmacro{pageref}%
+  \newunit\newblock
+  \usebibmacro{related}%
+  \usebibmacro{finentry}}
+
+\endinput
diff --git a/sbg-linguistics.cbx b/sbg-linguistics.cbx
new file mode 100644 (file)
index 0000000..d34fc49
--- /dev/null
@@ -0,0 +1,30 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% sbg-linguistics.cbx, v0.1
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+%   http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% A bibliography style for use with biblatex
+% Developed by Andreas Bilke,
+% based on  the guidlines of the linguistics department at the
+% University of Salzburg
+%
+% This work consists of the files sbg-linguistics.bbx,
+% sbg-lingusitics.dbx, sbg-linguistics.ctx and ngerman-sbg-linguistics.lbx
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\ProvidesFile{sbg-linguistics.cbx}
+\RequireBiber[3]
+
+\RequireCitationStyle{authoryear}
+
+\ExecuteBibliographyOptions{
+       maxcitenames=2
+}
+
+\endinput
diff --git a/sbg-linguistics.dbx b/sbg-linguistics.dbx
new file mode 100644 (file)
index 0000000..3bdc67b
--- /dev/null
@@ -0,0 +1,28 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% sbg-linguistics.dbx, v0.1
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+%   http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% A bibliography style for use with biblatex
+% Developed by Andreas Bilke,
+% based on  the guidlines of the linguistics department at the
+% University of Salzburg
+%
+% This work consists of the files sbg-linguistics.bbx,
+% sbg-lingusitics.dbx, sbg-linguistics.ctx and ngerman-sbg-linguistics.lbx
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\ProvidesFile{sbg-linguistics.dbx}
+\RequireBiber[3]
+
+\DeclareDatamodelFields[type=field,datatype=integer]{bookyear}
+
+\DeclareDatamodelEntryfields[inbook,inproceedings,incollection]{bookyear}
+
+\endinput