summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-archaeology/biblatex-archaeology.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-archaeology/biblatex-archaeology.sty')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-archaeology/biblatex-archaeology.sty60
1 files changed, 37 insertions, 23 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-archaeology/biblatex-archaeology.sty b/Master/texmf-dist/tex/latex/biblatex-archaeology/biblatex-archaeology.sty
index e1a612e2d82..d16c94d8d8d 100644
--- a/Master/texmf-dist/tex/latex/biblatex-archaeology/biblatex-archaeology.sty
+++ b/Master/texmf-dist/tex/latex/biblatex-archaeology/biblatex-archaeology.sty
@@ -145,11 +145,13 @@
\def\blxarch@namefirstsep{}
\def\blxarch@namefirstdelim{\bibinitperiod\bibinitdelim}
\ProvidesPackage{biblatex-archaeology}
-[2017/06/06 v1.2 biblatex-archaeology (Ingram Braun) based on biblatex]
+[2017/11/16 v1.3 biblatex-archaeology (Ingram Braun) based on biblatex]
\RequirePackage{xpatch}
\RequireBiber[3]
-\DeclareLanguageMapping{german}{german-archaeology}
-\DeclareLanguageMapping{english}{english-archaeology}
+\@ifpackagelater{biblatex}{2017/11/05}
+ {}
+ {\blxarch@errmsg{too old\MessageBreak biblatex version - update required}}
+\DeclareLanguageMappingSuffix{-archaeology}
\ExecuteBibliographyOptions{
abbreviate=true, % abbreviates bibstrings
arxiv=pdf, % although I've never seen an arXiv link we point them to PDFs.
@@ -299,7 +301,7 @@
\namepart[use=true, base=true]{prefix}
\namepart[base=true]{family}
}
-\DeclareSortingScheme{lnyvt}{
+\DeclareSortingTemplate{lnyvt}{
\sort{
\field{presort}
}
@@ -313,7 +315,6 @@
\field{author}
\field{editor}
\field{translator}
- \field{namea}
\field{shorttitle}
\field{sorttitle}
\field{title}
@@ -323,12 +324,8 @@
\field{year}
}
\sort{
- \field[padside=left,padwidth=4,padchar=0]{volume}
- \literal{0000}
- }
- \sort{
- \field{sorttitle}
- \field{title}
+ \field{volume}
+ \literal{0}
}
}
\newcommand{\ifselfcontained}[2]{%
@@ -530,7 +527,7 @@
{\printnames{labelname}%
\setunit{\printdelim{nameyeardelim}}}%
\ifeditionsuperscript{prelabel}{\usebibmacro{editionsuperscript}}{}%
- \usebibmacro{cite:labelyear+extrayear}%
+ \usebibmacro{cite:labeldate+extradate}%
\ifeditionsuperscript{prelabel}{\usebibmacro{editionsuperscript}}{}}%
{\usebibmacro{cite:shorthand}}%
\ifhyperref{\let\bibhyperref\blxarch@buffer@hyperref}{}%
@@ -574,12 +571,27 @@
{\iftoggle{bbx:doi}{}{\clearfield{doi}}%
\iftoggle{bbx:eprint}{}{\clearfield{eprint}}%
\iftoggle{bbx:url}{}{\clearfield{url}\clearfield{urlyear}}}%
+ \ifboolexpr{
+ not test {\iffieldundef{series}}
+ and
+ test {\iffieldundef{number}}
+ and
+ test {\iffieldundef{journaltitle}}
+ and
+ not test {\ifentrytype{periodical}}
+ }
+ {\clearfield{series}}
+ {}%
\iffieldundef{doi}
{}
{\clearfield{eprint}\clearfield{url}\clearfield{urlyear}}%
\iffieldundef{eprint}
{}
{\clearfield{url}\clearfield{urlyear}}%
+ \iflistundef{publisher}
+ {\clearlist{lista}}
+ {\savelist{publisher}{\blxarch@field@publisher}%
+ \restorelist{lista}{\blxarch@field@publisher}}%
\iftoggle{archbool:usepublisher}
{}
{\clearlist{publisher}%
@@ -1434,6 +1446,14 @@
and
test {\iffieldundef{eprint}}
and
+ test {\iffieldundef{doi}}
+ and
+ test {\iffieldundef{series}}
+ and
+ test {\iffieldundef{isbn}}
+ and
+ test {\iflistundef{lista}}
+ and
test {\ifbibxstring{unpublished\thefield{type}}}
}
{\printtext[type]{\bibstring{unpublished\thefield{type}}}}
@@ -1735,7 +1755,7 @@
\ifeditionsuperscript{predate}
{\usebibmacro{editionsuperscript}}%
{}%
- \usebibmacro{date+extrayear}%
+ \usebibmacro{date+extradate}%
\ifeditionsuperscript{postdate}
{\usebibmacro{editionsuperscript}}%
{}%
@@ -1744,17 +1764,14 @@
\usebibmacro{extendeddate}{real}}
{}}}}
\DeclareListFormat*{labeldateparens}{#1}
-\newcommand{\nametypedelim}{\addspace}
+\DeclareDelimFormat{authortypedelim,editortypedelim,translatortypedelim}{\addspace}
\newcommand{\finalnameellipsis}{\addspace\dots\space}
-\xpatchbibmacro{author}{\addcomma\space}{\nametypedelim}{}{}
\xpatchbibmacro{author}{\printnames{author}}{%
\ifidemincitation
{\printtext{%
\bibstring{idem\thefield{gender}}}}
{\usebibmacro{sortnamelist}{author}}}{}{}
-\xpatchbibmacro{author}{\usebibmacro{date+extrayear}}{\usebibmacro{labeldate+edition}}{}{}
-\xpatchbibmacro{editor}{\addcomma\space}{\nametypedelim}{}{}
-\xpatchbibmacro{translator}{\addcomma\space}{\nametypedelim}{}{}
+\xpatchbibmacro{author}{\usebibmacro{date+extradate}}{\usebibmacro{labeldate+edition}}{}{}
\xpatchbibmacro{bbx:editor}{\printnames{editor}}{%
\ifidemincitation
{\printtext{%
@@ -1765,10 +1782,8 @@
{\printtext{%
\bibstring{idem\thefield{gender}}}}
{\usebibmacro{sortnamelist}{translator}}}{}{}
-\xpatchbibmacro{bbx:editor}{\addcomma\space}{\nametypedelim}{}{}
-\xpatchbibmacro{bbx:translator}{\addcomma\space}{\nametypedelim}{}{}
-\xpatchbibmacro{bbx:editor}{\usebibmacro{date+extrayear}}{\usebibmacro{labeldate+edition}}{}{}
-\xpatchbibmacro{bbx:translator}{\usebibmacro{date+extrayear}}{\usebibmacro{labeldate+edition}}{}{}
+\xpatchbibmacro{bbx:editor}{\usebibmacro{date+extradate}}{\usebibmacro{labeldate+edition}}{}{}
+\xpatchbibmacro{bbx:translator}{\usebibmacro{date+extradate}}{\usebibmacro{labeldate+edition}}{}{}
\renewbibmacro*{editor+others}{%
\usebibmacro{editor}%
}
@@ -1788,7 +1803,6 @@
\field{author}
\field{editor}
\field{translator}
- \field{namea}
}
\renewcommand{\labelnamepunct}{\unspace\addcolon\space}
\newcommand{\ifseenote}[2]{#2}