diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/archaeologie/archaeologie.cbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/archaeologie/archaeologie.cbx | 240 |
1 files changed, 157 insertions, 83 deletions
diff --git a/Master/texmf-dist/tex/latex/archaeologie/archaeologie.cbx b/Master/texmf-dist/tex/latex/archaeologie/archaeologie.cbx index 22f01596b5c..b6728f3d18c 100644 --- a/Master/texmf-dist/tex/latex/archaeologie/archaeologie.cbx +++ b/Master/texmf-dist/tex/latex/archaeologie/archaeologie.cbx @@ -1,7 +1,7 @@ % archaeologie --% % biblatex for archaeologists, % historians and philologists -% Copyright (c) 2016 Lukas C. Bossert | Johannes Friedl +% Copyright (c) 2017 Lukas C. Bossert | Johannes Friedl % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -15,9 +15,19 @@ %----------------------- \newbool{cbx:yearinparens} \newbool{cbx:seenote} -\newbool{cbx:seen} \newbool{cbx:uniqueme} %----------------------- +%\renewcommand*{\multicitedelim}{\addsemicolon\addspace} +\newcommand*{\labelyeardelim}{\addspace} +%\renewcommand{\textcitedelim}{\addcomma\space} +\renewcommand{\postnotedelim}{% + \ifboolexpr{% + bool {cbx:ancient}% + or bool {cbx:frgancient}% + or bool {cbx:corpus}% + }% + {\addspace}% + {\newunitpunct}} \newcommand*{\cbx@fseen@names}{} \newcommand*{\cbx@tseen@names}{} \newrobustcmd*{\cbx@nameseen}[1]{% @@ -28,33 +38,21 @@ \iftoggle{blx@footnote}% {\xifinlistcs{#1}{cbx@fseen@names}}% {\xifinlistcs{#1}{cbx@tseen@names}}} - -\renewcommand*{\multicitedelim}{\addsemicolon\addspace} -\newcommand*{\labelyeardelim}{\addspace} -\renewcommand{\textcitedelim}{\multicitedelim} -\renewcommand{\postnotedelim}{% - \ifboolexpr{bool {cbx:ancient}% - or bool {cbx:frgancient}% - or bool {cbx:corpus}% - }% - {\addspace}% - {\newunitpunct}% -} %----------------------- \DeclareBibliographyOption{yearinparens}[true]{% \ifstrequal{#1}{true}% {\DeclareFieldFormat{citeyear}{\mkbibparens{##1}}% \csuse{bool#1}{cbx:yearinparens}}% {\DeclareFieldFormat{citeyear}{##1}}}% -\DeclareBibliographyOption{seenote}[true]{\csuse{bool#1}% - {cbx:seenote}% +\DeclareBibliographyOption{seenote}[true]{% + \csuse{bool#1}{cbx:seenote}% \ExecuteBibliographyOptions{maxnames=999}% }% \DeclareBibliographyOption[string]{citeauthorformat}{% \ifcsdef{cbx@arch@citeauthorformat@#1}% {\csuse{cbx@arch@citeauthorformat@#1}}% {\PackageError{biblatex-archaeologie}% - {Option 'citeauthorformat=#1' invalid.\MessageBreak% + {Option 'citeauthorformat=#1' invalid.\MessageBreak Use one of the values 'initials', 'full', 'family' or 'firstfull'.}{}}% \def\citeauthorformatVALUE{#1}% } @@ -197,6 +195,7 @@ datecirca=true, citeauthorformat=initials,% uniquename=minfull,% + autocite=footnote, } %----------------------- \newbibmacro*{uniqueshorthand}{% @@ -205,7 +204,7 @@ {\ifnameundef{intranslator}% {\iffieldundef{series}% {\printnames[name:family]{editor}}% - {\usebibmacro*{series}}% + {\usebibmacro{series}}% }% {\printnames[name:family]{intranslator}}}% {\printnames[name:family]{translator}}}} @@ -221,14 +220,19 @@ } %----------------------- \renewbibmacro*{postnote}{% -\iffieldundef{postnote}% - {}% - {\postnotedelim\printfield{postnote}% - \ifbool{cbx:frgancient}% - {\setunit{\addspace}% - \usebibmacro{cite:frgname}}% - }% -} + \ifboolexpr{% + test{\ifbool{bbx:inreferences}}% + and% + test{\ifentrytype{inreference}}} + {} + {\iffieldundef{postnote}% + {}% + {\setunit{\postnotedelim}% + \printfield{postnote}% + \ifbool{cbx:frgancient}% + {\setunit{\addspace}% + \usebibmacro{cite:frgname}}% + {}}}} %----------------------- \newbibmacro*{cite:frgname}{% \ifnameundef{shorteditor}% @@ -237,16 +241,16 @@ } %----------------------- \newbibmacro*{seenote}{% -\ifnameundef{labelname}% - {\usebibmacro{cite:label}% - \setunit{\labelyeardelim}}% - {\printnames{labelname}% - \setunit{\nameyeardelim}}% -\setunit{\addspace}% -\bibstring{loccit}\addspace% -\printtext[parens]{\bibstring{seenote}\addspace% -\ref{footref:\thefield{entrykey}}}% -\renewcommand{\postnotedelim}{\addspace}% + \ifnameundef{labelname}% + {\usebibmacro{cite:label}}% + {\printnames{labelname}}% + \setunit{\labelyeardelim}% + \bibstring{loccit}% + \setunit{\addspace}% + \printtext[parens]{\bibstring{seenote}% + \addspace% + \ref{footref:\thefield{entrykey}}}% + \renewcommand{\postnotedelim}{\addspace}% }% %----------------------- \newbibmacro*{cite:title}{\printfield{labeltitle}}% @@ -275,19 +279,14 @@ or bool{cbx:frgancient}% or bool{cbx:corpus}}% {\usebibmacro{cite:shorthand}}% - {\ifciteseen{\usebibmacro{seenote}}{% - \ifboolexpr{% - test {\ifentrytype{book}}% - or % - test {\ifentrytype{proceedings}}% - or % - test {\ifentrytype{inreference}}% - }{\renewcommand{\postnotedelim}{\addspace}}{}% - \bibhypertarget{ref:\thefield{entrykey}}{% - \usedriver{}{\thefield{entrytype}}% - \iffootnote{\label{footref:\thefield{entrykey}}}% - }}}% -} + {\ifciteseen% + {\usebibmacro{seenote}}% + {\bibhypertarget{ref:\thefield{entrykey}}% + {\usedriver% + {\DeclareNameAlias{sortname}{default}}% + {\thefield{entrytype}}% + \iffootnote{\label{footref:\thefield{entrykey}}}}% +}}} %----------------------- \newbibmacro{cite}{% \ifboolexpr{% @@ -295,10 +294,10 @@ and % test {\ifentrytype{inreference}}% }% - {\usebibmacro{cite:lexikon}} - {\ifbool{cbx:seenote} - {\usebibmacro{cite:seenote}} - {\printtext[bibhyperref]{% + {\usebibmacro{cite:lexikon}}% + {\ifbool{cbx:seenote}% + {\usebibmacro{cite:seenote}}% + {\printtext[bibhyperref]{% \iffieldundef{shorthand}% {\ifnameundef{labelname}% {\usebibmacro{cite:label}% @@ -307,11 +306,7 @@ \setunit{\nameyeardelim}}% \usebibmacro{cite:year}}% {\usebibmacro{cite:shorthand}}% - }}}% - \ifciteseen{\global\booltrue{cbx:seen}}% - {\global\boolfalse{cbx:seen}}% - \usebibmacro{savestuff}% -} + }}}} %----------------------- \newbibmacro*{citeyear}{% \iffieldundef{shorthand}% @@ -361,28 +356,28 @@ {} {\datecircaprint}% \dateeraprintpre{labelyear}% - \iffieldnums{labelyear} - {\mkyearzeros{\thefield{labelyear}}} + \iffieldnums{labelyear}% + {\mkyearzeros{\thefield{labelyear}}}% {\printfield{labelyear}}% \printfield{extrayear}% - \iffieldsequal{labeldateera}{labelenddateera}{} + \iffieldsequal{labeldateera}{labelenddateera}{}% {\dateeraprint{labelyear}}% \dateuncertainprint% - \ifdefstring\blx@dateformat@labeldate{edtf} - {\datecircaprintedtf} + \ifdefstring\blx@dateformat@labeldate{edtf}% + {\datecircaprintedtf}% {}% - \iffieldundef{labelendyear} + \iffieldundef{labelendyear}% {} - {\iffieldsequal{labelyear}{labelendyear}{} - {\ifdefstring\blx@dateformat@labeldate{edtf} + {\iffieldsequal{labelyear}{labelendyear}{}% + {\ifdefstring\blx@dateformat@labeldate{edtf}% {\slash}% strict EDTF - {\bibdaterangesep + {\bibdaterangesep% \enddatecircaprint}% \dateeraprintpre{labelendyear}% \mkyearzeros{\thefield{labelendyear}}% - \enddateuncertainprint - \ifdefstring\blx@dateformat@labeldate{edtf} - {\enddatecircaprintedtf} + \enddateuncertainprint% + \ifdefstring\blx@dateformat@labeldate{edtf}% + {\enddatecircaprintedtf}% {}% \dateeraprint{labelendyear}}}}}} %----------------------- @@ -406,25 +401,21 @@ {\usebibmacro{citeindex}% \usebibmacro{cite}}% {\multicitedelim}% - {\ifboolexpr{% - test{\ifbool{bbx:inreferences}}% - and% - test{\ifentrytype{inreference}}% - }{}{\usebibmacro{postnote}}}% + {\usebibmacro{postnote}} %----------------------- \DeclareCiteCommand{\footcite}[\mkbibfootnote] {\usebibmacro{prenote}}% {\usebibmacro{citeindex}% \usebibmacro{cite}}% {\multicitedelim}% - {\ifboolexpr{% - test{\ifbool{bbx:inreferences}}% - and% - test{\ifentrytype{inreference}}% - }{}{\usebibmacro{postnote}}}% + {\usebibmacro{postnote}} %----------------------- \DeclareCiteCommand{\textcite}% {\boolfalse{cbx:yearinparens}% + \renewcommand*{\multinamedelim}{\addcomma\space}% + \renewcommand*{\finalnamedelim}{% + \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}% + \addspace\bibstring{and}\space}% \usebibmacro{prenote}% }% {\usebibmacro{citeindex}% @@ -445,18 +436,43 @@ {\usebibmacro{citeindex}% \usebibmacro{cite}}% {\multicitedelim}% - {\ifboolexpr{% + {\usebibmacro{postnote}} +%----------------------- +\DeclareCiteCommand{\smartcite}[\iffootnote\textnormal\mkbibfootnote] + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {\multicitedelim} + {\ifboolexpr{% test{\ifbool{bbx:inreferences}}% and% test{\ifentrytype{inreference}}% }{}{\usebibmacro{postnote}}}% -%----------------------- +%----------------------- + \DeclareCiteCommand{\fullcite} + {\usebibmacro{prenote}} + {\usedriver + {\DeclareNameAlias{sortname}{default}} + {\thefield{entrytype}}} + {\multicitedelim} + {\usebibmacro{postnote}} +%----------------------- +\DeclareCiteCommand{\footfullcite}[\mkbibfootnote] + {\usebibmacro{prenote}} + {\usedriver + {\DeclareNameAlias{sortname}{default}} + {\thefield{entrytype}}} + {\multicitedelim} + {\usebibmacro{postnote}} +%----------------------- \DeclareMultiCiteCommand{\cites}% {\cite}{\multicitedelim}% \DeclareMultiCiteCommand{\parencites}[\mkbibparens]% {\parencite}{\multicitedelim}% \DeclareMultiCiteCommand{\textcites}% - {\textcite}{\textcitedelim}% + {\textcite}{\textcitedelim} +\DeclareMultiCiteCommand{\smartcites} + [\iffootnote\textnormal\mkbibfootnote]{\smartcite}{\multicitedelim} %----------------------- \DeclareCiteCommand{\citeauthor} {\boolfalse{citetracker}% @@ -478,6 +494,64 @@ {\multicitedelim}% {\usebibmacro{postnote}} %----------------------- +\DeclareCiteCommand{\citetranslator} + {\boolfalse{citetracker}% + \boolfalse{pagetracker}% + \renewcommand*{\multinamedelim}{\addcomma\space}% + \renewcommand*{\finalnamedelim}{% + \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}% + \addspace\bibstring{and}\space}% + \usebibmacro{prenote}}% + {\usebibmacro{citeindex}% +\ifboolexpr{% + test {\ifbool{bbx:inreferences}}% + and % + test {\ifentrytype{inreference}}% + }% + {\printtext}% + {\printtext[bibhyperref]}% + {\ifthenelse{% + \ifentrytype{incollection}% + \OR% + \ifentrytype{inbook}% + }% + {\printnames[citeauthor]{intranslator}}% + {\printnames[citeauthor]{translator}}}% + }% + {\multicitedelim}% + {\usebibmacro{postnote}} +%----------------------- +\DeclareCiteCommand*{\citetranslator} + {\boolfalse{citetracker}% + \boolfalse{pagetracker}% + \DeclareNameAlias{bytranslator}{citeauthor}% + \renewcommand*{\multinamedelim}{\addcomma\space}% + \renewcommand*{\finalnamedelim}{% + \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}% + \addspace\bibstring{and}\space}% + \usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \ifboolexpr{% + test {\ifbool{bbx:inreferences}}% + and % + test {\ifentrytype{inreference}}% + }% + {\printtext}% + {\printtext[bibhyperref]}% + {\ifthenelse{% + \ifentrytype{incollection}% + \OR% + \ifentrytype{inbook}% + }% + {\ifnameundef{intranslator}% + {\bibstring{owntranslation}}% + {\usebibmacro{byintranslator+others}}}% + {\ifnameundef{translator}% + {\bibstring{owntranslation}}% + {\usebibmacro{bytranslator+others}}}}}% + {\multicitedelim}% + {\usebibmacro{postnote}} +%----------------------- \DeclareCiteCommand*{\citeauthor} {\boolfalse{citetracker}% \boolfalse{pagetracker}% |