summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/archaeologie/archaeologie.bbx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/archaeologie/archaeologie.bbx')
-rw-r--r--Master/texmf-dist/tex/latex/archaeologie/archaeologie.bbx313
1 files changed, 164 insertions, 149 deletions
diff --git a/Master/texmf-dist/tex/latex/archaeologie/archaeologie.bbx b/Master/texmf-dist/tex/latex/archaeologie/archaeologie.bbx
index 1d72d6d2452..8dde3436877 100644
--- a/Master/texmf-dist/tex/latex/archaeologie/archaeologie.bbx
+++ b/Master/texmf-dist/tex/latex/archaeologie/archaeologie.bbx
@@ -11,33 +11,34 @@
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
\ProvidesFile{archaeologie.bbx}%
- [2016/07/15 v2.03 archaeologie --
+ [2016/09/20 v2.1 archaeologie --
biblatex for archaeologists,
historians and philologists, bbx-file]
\RequireBibliographyStyle{standard}
\AtBeginDocument{%
-\RequirePackage[normalem]{ulem}
-%\RequirePackage{csquotes}
- \urlstyle{sf}%
- \typeout{* * * archaeologie * * *
- biblatex for archaeologists,
- historians and philologists}
-}
-\def\archaeologieversion{2.04}
-\def\archaeologiedate{2016-07-28}
+ \RequirePackage[normalem]{ulem}
+ %\RequirePackage{csquotes}
+ \urlstyle{sf}%
+ \typeout{* * * archaeologie * * *
+ biblatex for archaeologists,
+ historians and philologists}
+}
+\def\archaeologieversion{2.1}
+\def\archaeologiedate{2016-09-20}
\ExecuteBibliographyOptions{%
- pagetracker=true,%
- citecounter=true,%
- sortlocale=auto,%
- language=auto,%
- autolang=other,%
- bibencoding=utf8,%
- dateabbrev=false, %
- sorting=nyt,%
- maxnames=2,%
- minnames=1,%
- maxitems=1,%
- maxbibnames=999,%
+ pagetracker=true,%
+ citecounter=true,%
+ sortlocale=auto,%
+ language=auto,%
+ autolang=other,%
+ bibencoding=utf8,%
+ dateabbrev=false, %
+ sorting=nyt,%
+labeldateparts=true,
+ maxnames=2,%
+ minnames=1,%
+ maxitems=1,%
+ maxbibnames=999,%
}
%-----------------------
\newbool{bbx:edby}
@@ -69,39 +70,33 @@
\setlength{\biblabelsep}{0em}
%-----------------------
\DeclareBibliographyOption{lstabbrv}[true]{%
- \csuse{bool#1}{bib:lstabbrv}%
- \addbibresource{archaeologie-lstabbrv.bib}
-}
+ \csuse{bool#1}{bib:lstabbrv}%
+ \addbibresource{archaeologie-lstabbrv.bib}}
\DeclareBibliographyOption{bibcorpora}[true]{%
- \csuse{bool#1}{bib:bibcorpora}%
- \addbibresource{archaeologie-bibcorpora.bib}%
- \ifbool{bib:lstabbrv}%
- {}%
- {\addbibresource{archaeologie-lstabbrv.bib}}
-}
+ \csuse{bool#1}{bib:bibcorpora}%
+ \addbibresource{archaeologie-bibcorpora.bib}%
+ \ifbool{bib:lstabbrv}%
+ {}%
+ {\addbibresource{archaeologie-lstabbrv.bib}}}
\DeclareBibliographyOption{bibancient}[true]{%
- \csuse{bool#1}{bib:bibancient}%
- \addbibresource{archaeologie-bibancient.bib}%
-}
+ \csuse{bool#1}{bib:bibancient}%
+ \addbibresource{archaeologie-bibancient.bib}}
\DeclareBibliographyOption{lstlocations}[true]{%
- \csuse{bool#1}{bib:lstlocations}%
- \addbibresource{archaeologie-lstlocations.bib}%
-}
+ \csuse{bool#1}{bib:lstlocations}%
+ \addbibresource{archaeologie-lstlocations.bib}}
\DeclareBibliographyOption{lstpublishers}[true]{%
- \csuse{bool#1}{bib:lstpublishers}%
- \addbibresource{archaeologie-lstpublishers.bib}%
-}
-
+ \csuse{bool#1}{bib:lstpublishers}%
+ \addbibresource{archaeologie-lstpublishers.bib}}
\DeclareBibliographyOption[boolean]{jstor}[true]{%
-\settoggle{bbx:jstor}{#1}}
+ \settoggle{bbx:jstor}{#1}}
\DeclareBibliographyOption[boolean]{zenon}[true]{%
- \settoggle{bbx:zenon}{#1}}
+ \settoggle{bbx:zenon}{#1}}
\DeclareBibliographyOption[boolean]{urn}[true]{%
- \settoggle{bbx:urn}{#1}}
+ \settoggle{bbx:urn}{#1}}
\ExecuteBibliographyOptions{%
- jstor,%
- urn,%
-}
+ jstor,%
+ urn,
+ }
%-----------------------
\DeclareBibliographyOption{edby}[true]{\csuse{bool#1}{bbx:edby}}
\DeclareBibliographyOption{initials}[true]{\csuse{bool#1}{bbx:initials}}
@@ -121,49 +116,53 @@
\ExecuteBibliographyOptions{maxitems=2}}
\DeclareBibliographyOption{scshape}[true]{%
\ifstrequal{#1}{true}%
- {\AtEveryCite{\renewcommand*{\mkbibnamefamily}[1]{\textsc{##1}}}}%
- {}%
-}
+ {\AtEveryCite{\renewcommand*{\mkbibnamefamily}[1]{\textsc{##1}}}}%
+ {}%
+ }
%-----------------------
\DeclareEntryOption{ancient}[true]{\csuse{bool#1}{cbx:ancient}}
\DeclareEntryOption{frgancient}[true]{%
- \ifstrequal{#1}{true}%
- {\togglefalse{blx@useauthor}}%
- {}%
- \csuse{bool#1}{cbx:frgancient}%
-}
+ \ifstrequal{#1}{true}%
+ {\togglefalse{blx@useauthor}}%
+ {}%
+ \csuse{bool#1}{cbx:frgancient}}
\DeclareEntryOption{corpus}[true]{\csuse{bool#1}{cbx:corpus}}
%----------
\newcommand{\archaeologieoptions}[1][]{%
-\ifstrempty{#1}{%
-\iflanguage{ngerman}{Zusätzlich geladene oder \xout{deaktivierte} Optionen von \textsc{bib}\LaTeX-\textsf{archaeologie} (Version \archaeologieversion~| \archaeologiedate):}%
-{Additional options of \textsc{bib}\LaTeX-\textsf{archaeologie} (version \archaeologieversion~| \archaeologiedate) used or \xout{omitted}:}\addspace}%
-{\ifthenelse{\equal{#1}{plain}}{}{{\PackageError{biblatex-archaeologie}%
+ \ifstrempty{#1}{%
+ \iflanguage{ngerman}%
+ {Zusätzlich geladene oder \xout{deaktivierte} Optionen
+ von \textsc{bib}\LaTeX-\textsf{archaeologie} (Version \archaeologieversion~| \archaeologiedate):}%
+ {Additional options of \textsc{bib}\LaTeX-\textsf{archaeologie} (version \archaeologieversion~| \archaeologiedate) used or \xout{omitted}:}\addspace}%
+ {\ifthenelse{\equal{#1}{plain}}{}{{\PackageError{biblatex-archaeologie}%
{command 'archaeologieoptions[#1]' invalid.\MessageBreak%
- Use 'archaeologieoptions[plain]' or omit the brackets.}{}}}}%
-\def\seperator{ | }%
-\ifbool{bib:bibancient}{bibancient\seperator}{}%
-\ifbool{bib:bibcorpora}{bibcorpora\seperator}{}%
-\ifbool{bib:lstabbrv}{lstabbrv\seperator}{}%
-\ifbool{bib:lstlocations}{lstlocations\seperator}{}%
-\ifbool{bib:lstpublishers}{lstpublishers\seperator}{}%
-\ifbool{bbx:bibfullname}{bibfullname\seperator}{}%
-\ifdefstring\citeauthorformatVALUE{initials}{}{citeauthorformat\,= \citeauthorformatVALUE\seperator}%
-\ifbool{bbx:counter}{counter\seperator}{}%
-\ifbool{bbx:edby}{edby\seperator}{}%
-\ifbool{bbx:inreferences}{inreferences\seperator}{}%
-\ifbool{bbx:initials}{initials\seperator}{}%
-\ifbool{bbx:noabbrv}{noabbrv\seperator}{}%
-\ifbool{bbx:publisher}{publisher\seperator}{}%
-\ifbool{cbx:seenote}{seenote\seperator}{}%
-\ifbool{bbx:translation}{translation\seperator}{}%
-\ifbool{bbx:width}{width=\labwidthsamelineVALUE\seperator}{}%
-\ifbool{cbx:yearinparens}{yearinparens\seperator}{}%
-\ifbool{bbx:yearseries}{yearseries\seperator}{}%
-\iftoggle{bbx:zenon}{zenon\seperator}{}%
-\iftoggle{bbx:jstor}{}{\xout{jstor}\seperator}%
-\iftoggle{bbx:urn}{}{\xout{urn}\seperator}%
-\iftoggle{bbx:doi}{}{\xout{doi}\seperator}%
+ Use 'archaeologieoptions[plain]' or omit the brackets.}{}
+ }}}%
+ \def\seperator{ | }%
+ \ifbool{bib:bibancient}{bibancient\seperator}{}%
+ \ifbool{bib:bibcorpora}{bibcorpora\seperator}{}%
+ \ifbool{bib:lstabbrv}{lstabbrv\seperator}{}%
+ \ifbool{bib:lstlocations}{lstlocations\seperator}{}%
+ \ifbool{bib:lstpublishers}{lstpublishers\seperator}{}%
+ \ifbool{bbx:bibfullname}{bibfullname\seperator}{}%
+ \ifdefstring\citeauthorformatVALUE{initials}%
+ {}
+ {citeauthorformat\,= \citeauthorformatVALUE\seperator}%
+ \ifbool{bbx:counter}{counter\seperator}{}%
+ \ifbool{bbx:edby}{edby\seperator}{}%
+ \ifbool{bbx:inreferences}{inreferences\seperator}{}%
+ \ifbool{bbx:initials}{initials\seperator}{}%
+ \ifbool{bbx:noabbrv}{noabbrv\seperator}{}%
+ \ifbool{bbx:publisher}{publisher\seperator}{}%
+ \ifbool{cbx:seenote}{seenote\seperator}{}%
+ \ifbool{bbx:translation}{translation\seperator}{}%
+ \ifbool{bbx:width}{width=\labwidthsamelineVALUE\seperator}{}%
+ \ifbool{cbx:yearinparens}{yearinparens\seperator}{}%
+ \ifbool{bbx:yearseries}{yearseries\seperator}{}%
+ \iftoggle{bbx:zenon}{zenon\seperator}{}%
+ \iftoggle{bbx:jstor}{}{\xout{jstor}\seperator}%
+ \iftoggle{bbx:urn}{}{\xout{urn}\seperator}%
+ \iftoggle{bbx:doi}{}{\xout{doi}\seperator}%
}
%-----------------------
\DeclareFieldFormat*{title}{#1}
@@ -188,28 +187,25 @@
\DeclareFieldFormat{urldate}{\mkbibparens{#1}}
\DeclareFieldFormat{note}{\mkbibparens{#1}\nopunct}
\DeclareFieldFormat{shorthandwidth}{#1}
-\DeclareFieldFormat{origtitle}{\mkbibemph{#1}}
+\DeclareFieldFormat{origtitle}{\iffieldequalstr{origlanguage}{greek}{#1}{\mkbibemph{#1}}}
\DeclareFieldFormat{eprint:urn}{%
\textsc{urn}%
\addcolon\space%
\ifhyperref%
- {\href{http://www.nbn-resolving.org/#1}{\nolinkurl{#1}}}%
- {\nolinkurl{#1}}%
-}
+ {\href{http://www.nbn-resolving.org/#1}{\nolinkurl{#1}}}%
+ {\nolinkurl{#1}}}
\DeclareFieldFormat{eprint:zenon}{%
\textsc{zenon (opac)}%
\addcolon\space%
\ifhyperref%
- {\href{http://zenon.dainst.org/Record/#1}{\nolinkurl{#1}}}%
- {\nolinkurl{#1}}%
-}
+ {\href{http://zenon.dainst.org/Record/#1}{\nolinkurl{#1}}}%
+ {\nolinkurl{#1}}}
\DeclareFieldFormat{eprint:jstor}{%
\textsc{jstor}%
\addcolon\space%
\ifhyperref%
- {\href{http://www.jstor.org/stable/#1}{\nolinkurl{#1}}}%
- {\nolinkurl{#1}}%
-}
+ {\href{http://www.jstor.org/stable/#1}{\nolinkurl{#1}}}%
+ {\nolinkurl{#1}}}
%-----------------------
\DeclareFieldAlias{zenon}{eprint:zenon}
\DeclareFieldAlias{jstor}{eprint:jstor}
@@ -230,17 +226,21 @@
\newcommand*{\orttrennzeichen}{\addnbspace\textendash\addspace}
\renewcommand{\finentrypunct}{%http://tex.stackexchange.com/a/14159/98739
\ifbool{bbx:counter}%
- {\addspace$\vert$ \addspace\scshape%
- \iflanguage{ngerman}%
- {wurde \ifnumequal{\value{citecounter}}{0}{{\color{red}{keinmal}}}%
- {\arabic{citecounter}-mal} zitiert.%
- }
- {cited \ifnumequal{\value{citecounter}}{0}{{\color{red}{not once}}}%
- {\arabic{citecounter}~time\ifnumequal{\value{citecounter}}{1}{}{s}}.%
- }%
- }%
- {}%
-}
+ {\addspace$\vert$ \addspace\scshape%
+ \iflanguage{ngerman}%
+ {wurde \ifnumequal{\value{citecounter}}
+ {0}
+ {{\color{red}{keinmal}}}
+ {\arabic{citecounter}-mal}
+ zitiert.}
+ {cited \ifnumequal{\value{citecounter}}
+ {0}
+ {{\color{red}{not once}}}%
+ {\arabic{citecounter}~time\ifnumequal{\value{citecounter}}{1}
+ {}
+ {s}}.%
+ }}%
+ {}}
\renewcommand{\multinamedelim}{\addnbspace\textendash\addspace}
\renewcommand{\finalnamedelim}{\multinamedelim}
\renewcommand*\relateddelim{\addnbspace\textendash\addspace}
@@ -253,33 +253,38 @@
\DeclareBibliographyAlias{maintitle}{booktitle}
\DeclareBibliographyAlias{incollection}{inbook}
\DeclareBibliographyAlias{manual}{book}
-%-----------------------
-\DeclareSortingScheme{nyt}{%
- \sort{\field{presort}}%
- \sort[final]{\field{sortkey}}%
- \sort{%
- \field{shorthand}%
- \name{sortname}%
- \name{author}%
- \name{editor}%
- \name{translator}%
- \field{sorttitle}%
- \field{title}%
- }%
- \sort{%
- \field{sortyear}%
- \field{year}%
- }%
- \sort{%
- \field{sorttitle}%
- \field{title}%
- }%
- \sort{%
- \field[padside=left,padwidth=4,padchar=0]{volume}%
- \literal{0000}%
- }%
-}
%-----------------------
+
+\DeclareSortingScheme{nyt}{
+ \sort{
+ \field{presort}
+ }
+ \sort[final]{
+ \field{sortkey}
+ }
+ \sort{
+ \field{shorthand}
+ \field{sortname}
+ \field{author}
+ \field{editor}
+ \field{translator}
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field{sortyear}
+ \field{year}
+ }
+ \sort{
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field{volume}
+ \literal{0}
+ }
+}
+%-----------------------
\DeclareSortingScheme{shortseries}{\sort{\field{shortseries}}}
\DeclareSortingScheme{shortjournal}{\sort{\field{shortjournal}}}
%-----------------------
@@ -484,13 +489,26 @@
%-----------------------
\renewbibmacro{in:}{%
\ifthenelse{%
- \ifentrytype{article}%
- \OR%
- \ifentrytype{review}}%
+ \ifentrytype{article}%
+ \OR%
+ \ifentrytype{review}%
+ }%
{}%
- {\printtext{\bibstring{in}\intitlepunct}}%
-}
+ {\printtext{%
+ \bibstring{in}%
+ \intitlepunct}%
+ }}
%-----------------------
+\renewbibmacro*{pageref}{%
+ \iflistundef{pageref}
+ {}
+ { \setunit{\addcomma\newline\nobreak}%
+ \printtext{%
+ \ifnumgreater{\value{pageref}}{1}
+ {\bibstring{backrefpages}\ppspace}
+ {\bibstring{backrefpage}\ppspace}%
+ \printlist[pageref][-\value{listtotal}]{pageref}}}}
+%-----------------------
\newbibmacro*{bbx:parunit}{%
\ifbibliography{%
\setunit{\bibpagerefpunct}%
@@ -575,6 +593,7 @@
%-----------------------
\DeclareLabeldate{%
\field{date}
+ \field{year}
\field{eventdate}
\field{origdate}
\field{urldate}
@@ -621,15 +640,17 @@
\printfield{number}%
}%
\newunit%
- \iffieldundef{year}%
- {\printfield{pubstate}}%
-{\printfield{year}}%
+\usebibmacro{pubstate+year}%
}
%-----------------------
+\newbibmacro{pubstate+year}{%
+ \iffieldundef{pubstate}%
+ {\usebibmacro{date}}%
+ {\printfield{pubstate}}}
+ %-----------------------
\newbibmacro*{pages}{%
\printfield{pages}%
- \isdot%
-}
+ \isdot}
%-----------------------
\newbibmacro{translation}{%
\printfield{origtitle}%
@@ -792,9 +813,7 @@
{\setunit{\addspace}}%
{\newunit}%
\usebibmacro{edition}%
- \iffieldundef{year}%
- {\printfield{pubstate}}%
- {\printfield{year}}%
+ \usebibmacro{pubstate+year}%
\setunit*{\addspace}%
\ifboolexpr{%
test {\iflistundef{origlocation}}%
@@ -835,9 +854,7 @@
}%
\printlist{location}%
\setunit*{\addspace}%
- \iffieldundef{year}%
- {\printfield{pubstate}}%
- {\printfield{year}}%
+ \usebibmacro{pubstate+year}%
}%
}%
}%
@@ -847,9 +864,7 @@
\printlist{location}%
\printlist{institution}%
\setunit*{\space}%
- \iffieldundef{year}%
- {\printfield{pubstate}}%
- {\printfield{year}}%
+\usebibmacro{pubstate+year}%
}
%-----------------------
\newbibmacro{signatur}{%