diff options
author | Karl Berry <karl@freefriends.org> | 2016-06-09 22:51:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-06-09 22:51:51 +0000 |
commit | ca4b9be29a701e541c467c5888f76ff4c466c860 (patch) | |
tree | b83a12dcec157b5421cd7de8412d29ab73327518 /Master/texmf-dist/tex/latex/archaeologie/archaeologie.cbx | |
parent | e0e7b37a1cb8da46302fda86c287ba09275706e8 (diff) |
archaeologie (8jun16)
git-svn-id: svn://tug.org/texlive/trunk@41325 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/archaeologie/archaeologie.cbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/archaeologie/archaeologie.cbx | 274 |
1 files changed, 149 insertions, 125 deletions
diff --git a/Master/texmf-dist/tex/latex/archaeologie/archaeologie.cbx b/Master/texmf-dist/tex/latex/archaeologie/archaeologie.cbx index 6a8f96db32e..0ca2204ad72 100644 --- a/Master/texmf-dist/tex/latex/archaeologie/archaeologie.cbx +++ b/Master/texmf-dist/tex/latex/archaeologie/archaeologie.cbx @@ -1,5 +1,6 @@ % archaeologie --% -% biblatex fuer Archaeologen, Historiker und Philologen +% biblatex for archaeologists, +% historians and philologists % Copyright (c) 2016 Lukas C. Bossert | Johannes Friedl % % This work may be distributed and/or modified under the @@ -9,10 +10,10 @@ % 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. - \ProvidesFile{archaeologie.cbx}% - [2016/03/17 v1.42 archaeologie --% - biblatex fuer Archaeologen, Historiker und Philologen, cbx-Datei] + [2016/06/06 v2.0 archaeologie -- + biblatex for archaeologists, + historians and philologists, cbx-Datei] \ExecuteBibliographyOptions{% citetracker=true,% idemtracker=false,% @@ -20,27 +21,29 @@ opcittracker=true,% loccittracker=true,% labeldate=true,% -}% - -%%%%%%%% cbx %%%%%%%%%% -\newbool{cbx:yearinparens}%jahrinklammern -%%%%%%%% \DeclareBibliographyOption %%%%%%%%%% +} +%----------------------- +\newbool{cbx:yearinparens} +\newbool{cbx:seenote} +\newbool{cbx:seen} +%----------------------- \DeclareBibliographyOption{yearinparens}[true]{% \ifstrequal{#1}{true} {\DeclareFieldFormat{citeyear}{\mkbibparens{##1}} \csuse{bool#1}{cbx:yearinparens}} - {\DeclareFieldFormat{citeyear}{##1}}} - + {\DeclareFieldFormat{citeyear}{##1}}} +\DeclareBibliographyOption{seenote}[true]{\csuse{bool#1}% + {cbx:seenote}% + \ExecuteBibliographyOptions{maxnames=999}% + }% +%----------------------- \DeclareFieldFormat{citeyear}{#1} \DeclareFieldFormat{prenote}{#1\isdot}% \DeclareFieldFormat{postnote}{#1}% -\DeclareFieldFormat{shorttitle}{#1}% - - - - \DeclareNameFormat{frg}{% +\DeclareFieldFormat{shorttitle}{#1}% +\DeclareNameFormat{frg}{% \nameparts{#1}% - \ifgiveninits + \ifgiveninits% {\usebibmacro{name:family} {\namepartfamily} {\namepartgiveni} @@ -52,58 +55,62 @@ {\namepartprefix} {\namepartsuffix}}% \usebibmacro{name:andothers}} - - - - -\renewcommand*{\multicitedelim}{\addsemicolon\addspace}% +%----------------------- +\renewcommand*{\multicitedelim}{\addsemicolon\addspace} \newcommand*{\labelyeardelim}{\addspace} -\renewcommand{\textcitedelim}{} -\renewcommand{\postnotedelim}{ - \ifboolexpr{bool {cbx:antik}% - or bool {cbx:frgantik}% +\renewcommand{\textcitedelim}{\multicitedelim} +\renewcommand{\postnotedelim}{% + \ifboolexpr{bool {cbx:ancient}% + or bool {cbx:frgancient}% or bool {cbx:corpus}% }% - {\setunit{\addspace}}% + {\addspace}% {\newunitpunct}% } - - +%----------------------- \renewbibmacro*{postnote}{% -\iffieldundef{postnote} +\iffieldundef{postnote}% {}% {\postnotedelim\printfield{postnote}% - \ifbool{cbx:frgantik}% + \ifbool{cbx:frgancient}% {\setunit{\addspace}% \usebibmacro{cite:frgname}}% }% } - +%----------------------- \newbibmacro*{cite:frgname}{% \ifnameundef{shorteditor}% {\printnames[frg]{editor}}% {\printnames[frg]{shorteditor}}% } - -\newbibmacro*{cite:name}{% % 0: only last names, 1: last name + first name initials, 2: full name - \ifbool{cbx:fullnames}{\c@uniquename=2}{\ifbool{cbx:lastnames}{\c@uniquename=0}{\c@uniquename=1}} +%----------------------- +\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}% +}% +%----------------------- +\newbibmacro*{cite:name}{% +% 0: only last names, 1: last name + first name initials, 2: full name + \ifbool{cbx:fullnames}{\c@uniquename=2}{\ifbool{cbx:lastnames}{\c@uniquename=0}{\c@uniquename=1}}% \ifciteindex{\indexnames{labelname}}{}% \printtext[bibhyperref]{% \iffootnote{\c@uniquename=0 \printnames{labelname}}{\printnames{labelname}}}} - +%----------------------- \newbibmacro*{cite:title}{\printfield{labeltitle}}% - - +%----------------------- \newbibmacro*{cite:year}{% \iffieldundef{labelyear}% {}% {{\printtext[citeyear]{\printfield{labelyear}\printfield{extrayear}}}}} - - - - - - +%----------------------- \newbibmacro*{cite:lexikon}{% \printfield{booktitle}% \setunit{\addspace}% @@ -111,124 +118,144 @@ \setunit{\addspace}% \printfield[parens]{year}% \setunit{\addspace}% - \iffieldundef{postnote}{\printfield{pages}}{\printfield{postnote}}% - \iffieldundef{title}{}{\setunit{\addspace}\printtext{s\adddot\addnbthinspace v\adddot}}% + \iffieldundef{postnote}{\printfield{pages}}% + {\printfield{postnote}}% + \iffieldundef{title}{}{\setunit{\addspace}% + \printtext{s\adddot\addnbthinspace v\adddot}}% \setunit{\addspace}\printfield{title}% - \iffieldundef{number}{}{\setunit{\addspace}\printtext[brackets]{\printfield{number}}}% - \setunit{\addspace}\printtext[parens]{\c@uniquename=1 \printnames{labelname}}% + \iffieldundef{number}{}{\setunit{\addspace}% + \printtext[brackets]{\printfield{number}}}% + \setunit{\addspace}% + \printtext[parens]{\c@uniquename=1 \printnames{labelname}}% + } +%----------------------- +\newbibmacro{cite:seenote}{% +\ifboolexpr{bool{cbx:ancient}% + 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}}}% + }}}% } - - +%----------------------- \newbibmacro{cite}{% \ifboolexpr{% test {\ifbool{bbx:inreferences}}% and % test {\ifentrytype{inreference}}% }% -{\usebibmacro{cite:lexikon}}% +{\usebibmacro{cite:lexikon}}{% +\ifbool{cbx:seenote}{\usebibmacro{cite:seenote}}{% {\printtext[bibhyperref]{\iffieldundef{shorthand}% {\ifnameundef{labelname}% {\usebibmacro{cite:label}% \setunit{\labelyeardelim}}% {\printnames{labelname}% \setunit{\nameyeardelim}}% - \usebibmacro{cite:year}}% + \usebibmacro{cite:year}}% {\usebibmacro{cite:shorthand}}}}% + }% + }% + \ifciteseen{\global\booltrue{cbx:seen}}% + {\global\boolfalse{cbx:seen}}% + \usebibmacro{savestuff}% } - - +%----------------------- \newbibmacro*{citeyear}{% - \iffieldundef{shorthand} - {\iffieldundef{labelyear} - {\usebibmacro{cite:label}} - {\usebibmacro{cite:labelyear+extrayear}}} + \iffieldundef{shorthand}% + {\iffieldundef{labelyear}% + {\usebibmacro{cite:label}}% + {\usebibmacro{cite:labelyear+extrayear}}}% {\usebibmacro{cite}}} - +%----------------------- \newbibmacro*{textcite}{%aus authoryear - \ifnameundef{labelname} - {\iffieldundef{shorthand} + \ifnameundef{labelname}% + {\iffieldundef{shorthand}% {\usebibmacro{cite:label}% \setunit{% \global\booltrue{cbx:yearinparens}% \nonameyeardelim\bibopenparen}% - \ifnumequal{\value{citecount}}{1} - {\usebibmacro{prenote}} + \ifnumequal{\value{citecount}}{1}% + {\usebibmacro{prenote}}% {}% - \usebibmacro{cite:labelyear+extrayear}} - {\usebibmacro{cite}}} + \usebibmacro{cite:labelyear+extrayear}}% + {\usebibmacro{cite}}}% {\printnames{labelname}% \setunit{% \global\booltrue{cbx:yearinparens}% \nameyeardelim\bibopenparen}% - \ifnumequal{\value{citecount}}{1} - {\usebibmacro{prenote}} - {}% \usebibmacro{citeyear}}} - +%----------------------- \newbibmacro*{cite:shorthand}{% - \printtext[bibhyperref]{\printfield{shorthand}}} - + \ifbool{cbx:seenote}% + {\printtext{\printfield{shorthand}}}% + {\printtext[bibhyperref]{\printfield{shorthand}}}} +%----------------------- \newbibmacro*{cite:label}{% - \iffieldundef{label} - {\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}} + \iffieldundef{label}% + {\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}% {\printtext[bibhyperref]{\printfield{label}}}} - +%----------------------- \newbibmacro*{cite:labelyear+extrayear}{% \iffieldundef{labelyear}% {}% {\printtext[bibhyperref]{% \printfield{labelyear}% \printfield{extrayear}}}} - +%----------------------- \newbibmacro*{textcite:postnote}{% - \ifboolexpr{bool {cbx:antik}% - or bool {cbx:frgantik}% - or bool {cbx:corpus}% - }% - {\setunit{\addspace}}% -{}% - \iffieldundef{postnote} - {\ifbool{cbx:yearinparens} - {\bibcloseparen} - {}} - {\ifbool{cbx:yearinparens} - {\setunit{\postnotedelim}} + \iffieldundef{postnote}% + {\ifbool{cbx:yearinparens}% + {\bibcloseparen}% + {}}% + {\ifbool{cbx:yearinparens}% + {\setunit{\postnotedelim}}% {\setunit{\extpostnotedelim\bibopenparen}}% \printfield{postnote}% - \ifbool{cbx:frgantik}% - {\setunit{\addspace}% + \ifbool{cbx:frgancient}% + {\setunit{\addthinspace}% \usebibmacro{cite:frgname}% \bibcloseparen}% \bibcloseparen}} - - - -%% Cite Commands %%% +%----------------------- \DeclareCiteCommand{\cite}% - {\usebibmacro{prenote}}% -{\usebibmacro{citeindex}% -\usebibmacro{cite}}% -{\multicitedelim}% -{\ifboolexpr{% -test{\ifbool{bbx:inreferences}}% -and% -test{\ifentrytype{inreference}}% -}{}{\usebibmacro{postnote}}}% - + {\usebibmacro{prenote}}% + {\usebibmacro{citeindex}% + \usebibmacro{cite}}% + {\multicitedelim}% + {\ifboolexpr{% + test{\ifbool{bbx:inreferences}}% + and% + test{\ifentrytype{inreference}}% + }{}{\usebibmacro{postnote}}}% +%----------------------- \DeclareCiteCommand{\textcite}%aus authoryear - {\boolfalse{cbx:yearinparens}} + {\boolfalse{cbx:yearinparens}% + \usebibmacro{prenote}% + }% {\usebibmacro{citeindex}% - \iffirstcitekey - {\setcounter{textcitetotal}{1}} + \iffirstcitekey% + {\setcounter{textcitetotal}{1}}% {\stepcounter{textcitetotal}% \textcitedelim}% - \usebibmacro{textcite}} - {\ifbool{cbx:parens} - {\bibcloseparen\global\boolfalse{cbx:yearinparens}} - {}} - {\usebibmacro{textcite:postnote}} - - + \ifbool{cbx:seenote}{\usebibmacro{cite:seenote}}% + {\usebibmacro{textcite}}}% + {\ifbool{cbx:parens}% + {\bibcloseparen\global\boolfalse{cbx:yearinparens}}% + {}}% + {\ifbool{cbx:seenote}{\usebibmacro{postnote}}% + {\usebibmacro{textcite:postnote}}} +%----------------------- \DeclareCiteCommand{\parencite}[\mkbibparens]% {\usebibmacro{prenote}}% {\usebibmacro{citeindex}% @@ -239,17 +266,14 @@ test{\ifentrytype{inreference}}% and% test{\ifentrytype{inreference}}% }{}{\usebibmacro{postnote}}}% - - +%----------------------- \DeclareMultiCiteCommand{\cites}% {\cite}{\multicitedelim} \DeclareMultiCiteCommand{\parencites}[\mkbibparens]% {\parencite}{\multicitedelim} \DeclareMultiCiteCommand{\textcites}% - {\textcite}{\addspace\bibstring{and}\space} - - - + {\textcite}{\textcitedelim} +%----------------------- \DeclareCiteCommand{\citeauthor}% {\boolfalse{citetracker}% \boolfalse{pagetracker}% @@ -261,20 +285,20 @@ test{\ifentrytype{inreference}}% {\usebibmacro{cite:name}}% {\multicitedelim}% {\usebibmacro{postnote}}% - +%----------------------- \DeclareCiteCommand{\citetitle} % {\boolfalse{citetracker}% \boolfalse{pagetracker}% \usebibmacro{prenote}}% {\printtext[bibhyperref]{% - \ifbool{cbx:antik}{\printtext[emph]{\usebibmacro{cite:title}}}% + \ifbool{cbx:ancient}{\printtext[emph]{\usebibmacro{cite:title}}}% {\printtext[emph]{\usebibmacro{cite:title}}% \setunit{\addspace}% \printtext[parens]{\printfield{year}% - \iffieldundef{origyear}{}{\addspace\printfield[parens]{origyear}}% - }% - }}}% + \iffieldundef{origyear}{}% + {\addspace\printfield[parens]{origyear}}}% + }}}% {\multicitedelim}% {\usebibmacro{postnote}}% \endinput -%% End of file `archaeologie.cbx'. +%% End of file `archaeologie.cbx'.
\ No newline at end of file |