diff options
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.sty | 286 |
1 files changed, 270 insertions, 16 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 0b5cf70a461..eebb58bdb34 100644 --- a/Master/texmf-dist/tex/latex/biblatex-archaeology/biblatex-archaeology.sty +++ b/Master/texmf-dist/tex/latex/biblatex-archaeology/biblatex-archaeology.sty @@ -6,6 +6,7 @@ %% %% biblatex-archaeology.dtx (with options: `sty') %% + \def\blxarch@regex@location@match{\regexp{(.+?),[\s\~]+(.+)}} \def\blxarch@regex@location@replace{\regexp{$1\\mkbiblocationaddon\{$2\}}} \def\blxarch@opt@useinstitution@aspublisher{% @@ -153,10 +154,10 @@ \def\blxarch@namefirstsep{} \def\blxarch@namefirstdelim{\bibinitperiod\bibinitdelim} \ProvidesPackage{biblatex-archaeology} -[2018/06/10 v2.0 biblatex-archaeology (Ingram Braun) based on biblatex] -\RequirePackage{xpatch} +[2018/11/20 v2.1 biblatex-archaeology (Ingram Braun) based on biblatex] +\RequirePackage{xpatch,xstring} \RequireBiber[3] -\@ifpackagelater{biblatex}{2018/03/04} +\@ifpackagelater{biblatex}{2018/10/13} {} {\blxarch@errmsg{too old\MessageBreak biblatex version - update required}} \DeclareLanguageMappingSuffix{-archaeology} @@ -203,10 +204,11 @@ parentracker=true, singletitle=false, sortcites=false, - sorting=nyvt, + sorting=nyvc, + sortlocale=de_DE, terseinits=false, uniquelist=minyear, - uniquename=false, + uniquename=init, url=false, urldate=terse, useauthor=true, @@ -219,6 +221,40 @@ realdate=ymd, } \DeclareDriverSourcemap[datatype=bibtex]{ + \map[overwrite=true]{ + \step[ + fieldsource=journaltitle, + notfield=number, + final, + ] + \step[ + fieldsource=month, + match=\regexp{\A(\d|1[0-2])\Z}, + fieldset=number, + origfieldval=true, + ] + \step[ + fieldset=month, + null, + ] + } + \map[overwrite=true]{ + \step[ + fieldsource=journaltitle, + notfield=number, + final, + ] + \step[ + fieldsource=issue, + match=\regexp{\A\d+\Z}, + fieldset=number, + origfieldval=true, + ] + \step[ + fieldset=issue, + null, + ] + } \map[ overwrite ]{ @@ -234,7 +270,7 @@ overwrite=true, foreach={titleaddon,booktitleaddon,maintitleaddon}, ]{ -\pernottype{article} + \pernottype{article} \pernottype{review} \pernottype{reference} \pernottype{inreference} @@ -370,7 +406,6 @@ \DeclareFieldInputHandler{journalsubtitle}{\def\NewValue{}} \DeclareListInputHandler{language}{\def\NewValue{}} \DeclareListInputHandler{origlanguage}{\def\NewValue{}} -\DeclareFieldInputHandler{pagetotal}{\def\NewValue{}} \DeclareFieldInputHandler{volumes}{\def\NewValue{}} \newlength{\labelnamedatewidth} \setlength{\labelnamedatewidth}{0.33\linewidth} @@ -388,9 +423,96 @@ \renewcommand*{\makelabel}[1]{##1\hss}} {\endlist} {\item}% -\DeclareUniquenameTemplate{ - \namepart[use=true, base=true]{prefix} - \namepart[base=true]{family} +\ifnumequal\blx@uniquename\blx@opt@uniquename@false + {\DeclareSortingNamekeyTemplate{ + \keypart{ + \namepart[use=true]{prefix} + } + \keypart{ + \namepart{family} + } + }} + {\ifnumequal\blx@uniquename\blx@opt@uniquename@init + {\DeclareSortingNamekeyTemplate{ + \keypart{ + \namepart[use=true]{prefix} + } + \keypart{ + \namepart{family} + } + \keypart{ + \namepart[inits=true]{given} + } + } + \DeclareUniquenameTemplate{ + \namepart[use=true, base=true]{prefix} + \namepart[base=true]{family} + \namepart[disambiguation=init]{given} + }} + {}% + }% +\DeclareNosort{ + \nosort{setnames}{\regexp{^[^\p{Lu}]+}} +} +\DeclareSortingTemplate{lnyc}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \field{sortname} + \field{label} + \field{shorthand} + \field{shortauthor} + \field{author} + \field{editor} + \field{translator} + \field{anonstring} + \field{shorttitle} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{year} + } + \sort{ + \citeorder + } +} +\DeclareSortingTemplate{lnyvc}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \field{sortname} + \field{label} + \field{shorthand} + \field{shortauthor} + \field{author} + \field{editor} + \field{translator} + \field{anonstring} + \field{shorttitle} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{year} + } + \sort{ + \field{volume} + \literal{0} + } + \sort{ + \citeorder + } } \DeclareSortingTemplate{lnyvt}{ \sort{ @@ -402,10 +524,12 @@ \sort{ \field{sortname} \field{label} + \field{shorthand} \field{shortauthor} \field{author} \field{editor} \field{translator} + \field{anonstring} \field{shorttitle} \field{sorttitle} \field{title} @@ -418,6 +542,123 @@ \field{volume} \literal{0} } + \sort{ + \field{sorttitle} + \field{title} + } + \sort{ + \citeorder + } +} +\DeclareSortingTemplate{nyvc}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \field{sortname} + \field{author} + \field{editor} + \field{translator} + \field{anonstring} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{year} + } + \sort{ + \field{volume} + \literal{0} + } + \sort{ + \citeorder + } +} +\DeclareSortingTemplate{nyc}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \field{sortname} + \field{author} + \field{editor} + \field{translator} + \field{anonstring} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{year} + } + \sort{ + \citeorder + } +} +\DeclareSortingTemplate{nyvt}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \field{sortname} + \field{author} + \field{editor} + \field{translator} + \field{anonstring} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{year} + } + \sort{ + \field{volume} + \literal{0} + } + \sort{ + \field{sorttitle} + \field{title} + } +} +\DeclareSortingTemplate{nyt}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \field{sortname} + \field{author} + \field{editor} + \field{translator} + \field{anonstring} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{year} + } + \sort{ + \field{sorttitle} + \field{title} + } + \sort{ + \field{volume} + \literal{0} + } } \newcommand{\ifselfcontained}[2]{% \ifboolexpr{ @@ -619,6 +860,7 @@ {\let\bibhyperref\@empty} {}% \printtext[repeatlabel]{% + \togglefalse{archbool:capitalizeprefixinbiblist}{\midsentence}% \iffieldundef{shorthand} {\ifboolexpr{ test {\ifrepeatlabel{dashed}} @@ -647,6 +889,10 @@ \let\mkbibnamesuffix\blxarch@buffer@repeatsuffix% \savefield{namehash}{\blxarch@field@namehash}% } +\newtoggle{archbool:capitalizeprefixinbiblist} +\DeclareBibliographyOption{capitalizeprefixinbiblist}[false]{% + \settoggle{archbool:capitalizeprefixinbiblist}{#1}} +\ExecuteBibliographyOptions{capitalizeprefixinbiblist} \renewbibmacro*{begentry}{% \ifboolexpr{ togl {archbool:noseries} @@ -759,6 +1005,7 @@ \restorefield{subseries}{\blxarch@field@shortsubseries}}% } {}% + \togglefalse{archbool:capitalizeprefixinbiblist}{\ifbibliography{\midsentence}{}}% \ifrepeatlabel{false} {} {\usebibmacro{repeatlabel}\repeatlabeldelim}% @@ -2191,7 +2438,7 @@ {\bibstring{genitives}}% }% } -\DeclareNameFormat{labelname:poss}{% Based on labelname from biblatex.def +\DeclareNameFormat{labelname:poss}{ \let\blxarch@namepartfamily\namepartfamily% \ifcase\value{uniquename}% \usebibmacro{name:family}{\namepartfamily}{\namepartgiven}{\namepartprefix}{\namepartsuffix}% @@ -2233,8 +2480,8 @@ and not test {\ifcsdef{blxarch@fork@verbose}} } -{\blxarch@errmsg{option 'citeshortin=true' only in verbose styles}} -{}% + {\blxarch@errmsg{option 'citeshortin=true' only in verbose styles}} + {}% } \ExecuteBibliographyOptions{citeshortin=false} \DeclareFieldFormat*{citetitle}{#1} @@ -2248,6 +2495,7 @@ \field{author} \field{editor} \field{translator} + \field{anonstring} } \renewcommand*{\labelnamepunct}{\unspace\addcolon\space} \newcommand{\ifseenote}[2]{#2} @@ -2334,11 +2582,15 @@ }% \xpatchbibdriver{book}{usebibmacro {series+number}\newunit} {usebibmacro{series+number}} -{}{Patching driver 'book' failed (5)} + {}{Patching driver 'book' failed (5)} \xpatchbibdriver{inbook}{usebibmacro {series+number}\newunit} {usebibmacro{series+number}} -{}{Patching driver 'inbook' failed (4)} + {}{Patching driver 'inbook' failed (4)} \DeclareFieldFormat[book,inbook]{volume}{\addspace#1} +\DeclareFieldFormat*{pagetotal}{} + \xpatchbibdriver{thesis}{\newunit \printfield {pagetotal}} + {\setunit{\bibpagespunct}\printfield{pagetotal}} + {}{Patching driver 'thesis' failed (1)} \renewcommand*{\labelnamepunct}{\adddot\space} \urlstyle{same} \DeclareFieldFormat*{url}{\bibstring{urlfrom}\addcolon\space\url{#1}} @@ -2376,6 +2628,9 @@ \edef\blxarch@style@muensterverbose{\blxarch@style@muenster\space(geisteswissenschaftlich)} \edef\blxarch@style@muensternumeric{\blxarch@style@muenster\space(numerisch)} \edef\blxarch@style@muensterinline{\blxarch@style@muenster\space(naturwissenschaftlich)} +\edef\blxarch@style@kunde{Die Kunde. Zeitschrift f\"ur nieders\"asische Arch\"aologie} +\edef\blxarch@style@niedersachsen{Archäologische Kommission für Niedersachsen e.\,V.} +\edef\blxarch@style@nnu{Nachrichten aus Niedersachsens Urgeschichte} \edef\blxarch@style@aefkw{\"Agyptologische Forschungsst\"atte f\"ur Kulturwissenschaft (\"AFKW)} \edef\blxarch@style@afwl{Ausgrabungen und Funde in Westfalen-Lippe} \edef\blxarch@style@amit{Arch\"aologische Berichte aus Iran und Turan (AMIT)} @@ -2387,7 +2642,6 @@ \edef\blxarch@style@jbkrneuss{Jahrbuch f\"ur den Rhein-Kreis Neuss} \edef\blxarch@style@karl{Karl. Das kulturelle Schachmagazin} \edef\blxarch@style@maja{M\"unchner Arbeitskreis Junge Aegyptologie (MAJA)} -\edef\blxarch@style@nnu{Nachrichten aus Niedersachsens Urgeschichte} \edef\blxarch@style@offa{Offa} \edef\blxarch@style@sak{Studien zur Alt\"agyptischen Kultur} \edef\blxarch@style@volkskunde{Zeitschrift f\"ur Volkskunde} |