diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex/biblatex.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex/biblatex.def | 374 |
1 files changed, 310 insertions, 64 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex/biblatex.def b/Master/texmf-dist/tex/latex/biblatex/biblatex.def index f3f495a6619..a10317f12a6 100644 --- a/Master/texmf-dist/tex/latex/biblatex/biblatex.def +++ b/Master/texmf-dist/tex/latex/biblatex/biblatex.def @@ -1,7 +1,7 @@ -% $Id: biblatex.def,v 1.0 2010/11/19 16:16:35 lehman stable $ +% $Id: biblatex.def,v 1.1 2011/01/05 21:45:11 lehman stable $ \ProvidesFile{biblatex.def} -[\abx@rcsid $Id: biblatex.def,v 1.0 2010/11/19 16:16:35 lehman stable $ +[\abx@rcsid $Id: biblatex.def,v 1.1 2011/01/05 21:45:11 lehman stable $ biblatex generic definitions] % ------------------------------------------------------------------ @@ -255,16 +255,12 @@ % Used in citations \DeclareFieldFormat{citetitle}{\mkbibemph{#1}} -\DeclareFieldFormat[article]{citetitle}{\mkbibquote{#1\isdot}} -\DeclareFieldFormat[inbook]{citetitle}{\mkbibquote{#1\isdot}} -\DeclareFieldFormat[incollection]{citetitle}{\mkbibquote{#1\isdot}} -\DeclareFieldFormat[inproceedings]{citetitle}{\mkbibquote{#1\isdot}} -\DeclareFieldFormat[patent]{citetitle}{\mkbibquote{#1\isdot}} -\DeclareFieldFormat[thesis]{citetitle}{\mkbibquote{#1\isdot}} -\DeclareFieldFormat[unpublished]{citetitle}{\mkbibquote{#1\isdot}} -\DeclareFieldFormat[suppbook]{citetitle}{#1} -\DeclareFieldFormat[suppcollection]{citetitle}{#1} -\DeclareFieldFormat[suppperiodical]{citetitle}{#1} +\DeclareFieldFormat + [article,inbook,incollection,inproceedings,patent,thesis,unpublished] + {citetitle}{\mkbibquote{#1\isdot}} +\DeclareFieldFormat + [suppbook,suppcollection,suppperiodical] + {citetitle}{#1} \DeclareFieldFormat{labelyear}{#1}% = the '1995' part in 'Jones 1995a' \DeclareFieldFormat{extrayear}{\mknumalph{#1}}% = the 'a' in 'Jones 1995a' \DeclareFieldFormat{labelalpha}{#1}% = the 'Jon95' part of 'Jon95a' @@ -354,39 +350,31 @@ \DeclareFieldFormat{month}{\mkbibmonth{#1}} \DeclareFieldFormat{note}{#1\isdot} \DeclareFieldFormat{number}{#1}% number in a series -\DeclareFieldFormat[article]{number}{#1}% number of a journal +\DeclareFieldFormat[article,periodical]{number}{#1}% number of a journal \DeclareFieldFormat{pages}{\mkpageprefix[bookpagination]{#1}} \DeclareFieldFormat{pagetotal}{\mkpagetotal[bookpagination]{#1}} \DeclareFieldFormat{part}{.#1}% physical part of a logical volume \DeclareFieldFormat{series}{#1}% publication series -\DeclareFieldFormat[article]{series}{% series of a journal +\DeclareFieldFormat[article,periodical]{series}{% series of a journal \ifinteger{#1} {\mkbibordseries{#1}~\bibstring{jourser}} {\ifbibstring{#1}{\bibstring{#1}}{#1}}} \DeclareFieldFormat{pubstate}{\ifbibstring{#1}{\bibstring{#1}}{#1}} \DeclareFieldFormat{title}{\mkbibemph{#1}} -\DeclareFieldFormat[article]{title}{\mkbibquote{#1\isdot}} -\DeclareFieldFormat[inbook]{title}{\mkbibquote{#1\isdot}} -\DeclareFieldFormat[incollection]{title}{\mkbibquote{#1\isdot}} -\DeclareFieldFormat[inproceedings]{title}{\mkbibquote{#1\isdot}} -\DeclareFieldFormat[patent]{title}{\mkbibquote{#1\isdot}} -\DeclareFieldFormat[thesis]{title}{\mkbibquote{#1\isdot}} -\DeclareFieldFormat[unpublished]{title}{\mkbibquote{#1\isdot}} -\DeclareFieldFormat[suppbook]{title}{#1} -\DeclareFieldFormat[suppcollection]{title}{#1} -\DeclareFieldFormat[suppperiodical]{title}{#1} +\DeclareFieldFormat + [article,inbook,incollection,inproceedings,patent,thesis,unpublished] + {title}{\mkbibquote{#1\isdot}} +\DeclareFieldFormat + [suppbook,suppcollection,suppperiodical] + {title}{#1} \DeclareFieldFormat{type}{\ifbibstring{#1}{\bibstring{#1}}{#1}} \DeclareFieldFormat{url}{\mkbibacro{URL}\addcolon\space\url{#1}} \DeclareFieldFormat{urldate}{\mkbibparens{\bibstring{urlseen}\space#1}} \DeclareFieldFormat{version}{\bibstring{version}~#1} \DeclareFieldFormat{volume}{\bibstring{volume}~#1}% volume of a book -\DeclareFieldFormat[article]{volume}{#1}% volume of a journal +\DeclareFieldFormat[article,periodical]{volume}{#1}% volume of a journal \DeclareFieldFormat{volumes}{#1~\bibstring{volumes}} -\DeclareFieldAlias[periodical]{number}[article]{number} -\DeclareFieldAlias[periodical]{series}[article]{series} -\DeclareFieldAlias[periodical]{volume}[article]{volume} - % Generic formats for \printtext and \printfield \DeclareFieldFormat{emph}{\mkbibemph{#1}} @@ -904,6 +892,254 @@ \endgroup} % ------------------------------------------------------------------ +% CUSTOMIZATION +% ------------------------------------------------------------------ + +\DeclareLabelname{% + shortauthor, + author, + shorteditor, + editor, + translator} + +\DeclareLabelyear{% + year, + eventyear, + origyear, + urlyear} + +% ------------------------------------------------------------------ +% SORTING +% ------------------------------------------------------------------ + +\DeclarePresort{mm} + +\DeclareSortingScheme{none}{ + \sort{\citeorder} +} + +\DeclareSortingScheme{debug}{ + \sort{ + \field{entrykey} + } +} + +\DeclareSortingScheme{nty}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \name{sortname} + \name{author} + \name{editor} + \name{translator} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{year} + } + \sort{ + \field[padside=left,padwidth=4,padchar=0]{volume} + \literal{0000} + } +} + +\DeclareSortingScheme{nyt}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \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{nyvt}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \name{sortname} + \name{author} + \name{editor} + \name{translator} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{year} + } + \sort{ + \field[padside=left,padwidth=4,padchar=0]{volume} + \literal{0000} + } + \sort{ + \field{sorttitle} + \field{title} + } +} + +\DeclareSortingScheme{anyt}{ + \sort{ + \field{presort} + } + \sort[pass=label]{ + \field{labelalpha} + } + \sort[final]{ + \field{sortkey} + } + \sort[pass=final]{ + \field{labelalpha} + } + \sort[pass=final]{ + \field[padside=left,padwidth=4,padchar=0]{extraalpha} + } + \sort{ + \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{anyvt}{ + \sort{ + \field{presort} + } + \sort[pass=label]{ + \field{labelalpha} + } + \sort[final]{ + \field{sortkey} + } + \sort[pass=final]{ + \field{labelalpha} + } + \sort[pass=final]{ + \field[padside=left,padwidth=4,padchar=0]{extraalpha} + } + \sort{ + \name{sortname} + \name{author} + \name{editor} + \name{translator} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{year} + } + \sort{ + \field[padside=left,padwidth=4,padchar=0]{volume} + \literal{0000} + } + \sort{ + \field{sorttitle} + \field{title} + } +} + +\DeclareSortingScheme{ynt}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \field{sortyear} + \field{year} + \literal{9999} + } + \sort{ + \name{sortname} + \name{author} + \name{editor} + \name{translator} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sorttitle} + \field{title} + } +} + +\DeclareSortingScheme{ydnt}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort[direction=descending]{ + \field[strside=left,strwidth=4]{sortyear} + \field[strside=left,strwidth=4]{year} + \literal{9999} + } + \sort{ + \name{sortname} + \name{author} + \name{editor} + \name{translator} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sorttitle} + \field{title} + } +} + +% ------------------------------------------------------------------ % MACROS FOR LBX FILES % ------------------------------------------------------------------ @@ -993,18 +1229,18 @@ \ifcase\abx@classtype\relax % article \defbibheading{bibliography}[\refname]{% \section*{#1}% - \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} + \markboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} \defbibheading{shorthands}[\losname]{% \section*{#1}% - \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} + \markboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} \defbibheading{bibintoc}[\refname]{% \section*{#1}% \addcontentsline{toc}{section}{#1}% - \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} + \markboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} \defbibheading{losintoc}[\losname]{% \section*{#1}% \addcontentsline{toc}{section}{#1}% - \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} + \markboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} \defbibheading{bibnumbered}[\refname]{% \section{#1}% \if@twoside\markright{\MakeUppercase{#1}}\fi} @@ -1022,18 +1258,18 @@ \or % book/report \defbibheading{bibliography}[\bibname]{% \chapter*{#1}% - \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} + \markboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} \defbibheading{shorthands}[\losname]{% \chapter*{#1}% - \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} + \markboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} \defbibheading{bibintoc}[\bibname]{% \chapter*{#1}% \addcontentsline{toc}{chapter}{#1}% - \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} + \markboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} \defbibheading{losintoc}[\losname]{% \chapter*{#1}% \addcontentsline{toc}{chapter}{#1}% - \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} + \markboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} \defbibheading{bibnumbered}[\bibname]{% \chapter{#1}% \if@twoside\markright{\MakeUppercase{#1}}\fi} @@ -1057,26 +1293,26 @@ {\ifkomabibtotoc {\addsec{#1}} {\section*{#1}}% - \@mkboth{#1}{#1}}} + \markboth{#1}{#1}}} \defbibheading{shorthands}[\losname]{% \ifkomabibtotocnumbered {\section{#1}} {\ifkomabibtotoc {\addsec{#1}} {\section*{#1}}% - \@mkboth{#1}{#1}}} + \markboth{#1}{#1}}} \defbibheading{bibintoc}[\refname]{% \addsec{#1}% - \@mkboth{#1}{#1}} + \markboth{#1}{#1}} \defbibheading{losintoc}[\losname]{% \addsec{#1}% - \@mkboth{#1}{#1}} + \markboth{#1}{#1}} \defbibheading{bibnumbered}[\refname]{% \section{#1}% - \@mkboth{\sectionmarkformat#1}{\sectionmarkformat#1}} + \markboth{\sectionmarkformat#1}{\sectionmarkformat#1}} \defbibheading{losnumbered}[\losname]{% \section{#1}% - \@mkboth{\sectionmarkformat#1}{\sectionmarkformat#1}} + \markboth{\sectionmarkformat#1}{\sectionmarkformat#1}} \defbibheading{subbibliography}[\refname]{% \subsection*{#1}} \defbibheading{subbibintoc}[\refname]{% @@ -1092,60 +1328,61 @@ {\ifkomabibtotoc {\addchap{#1}} {\chapter*{#1}}% - \@mkboth{#1}{#1}}} + \markboth{#1}{#1}}} \defbibheading{shorthands}[\losname]{% \ifkomabibtotocnumbered {\chapter{#1}} {\ifkomabibtotoc {\addchap{#1}} {\chapter*{#1}}% - \@mkboth{#1}{#1}}} + \markboth{#1}{#1}}} \defbibheading{bibintoc}[\bibname]{% \addchap{#1}% - \@mkboth{#1}{#1}} + \markboth{#1}{#1}} \defbibheading{losintoc}[\losname]{% \addchap{#1}% - \@mkboth{#1}{#1}} + \markboth{#1}{#1}} \defbibheading{bibnumbered}[\bibname]{% \chapter{#1}% - \@mkboth{\chaptermarkformat#1}{\chaptermarkformat#1}} + \markboth{\chaptermarkformat#1}{\chaptermarkformat#1}} \defbibheading{losnumbered}[\losname]{% \chapter{#1}% - \@mkboth{\chaptermarkformat#1}{\chaptermarkformat#1}} + \markboth{\chaptermarkformat#1}{\chaptermarkformat#1}} \defbibheading{subbibliography}[\refname]{% \section*{#1}% \if@twoside\markright{\sectionmarkformat#1}\fi} \defbibheading{subbibintoc}[\refname]{% \addsec{#1}% - \@mkboth{#1}{#1}} + \markboth{#1}{#1}} \defbibheading{subbibnumbered}[\refname]{% \section{#1}} \or % memoir (article) + \providecommand*{\memUChead}{\MakeUppercase} \defbibheading{bibliography}[\refname]{% \section*{#1}% \ifmemoirbibintoc {\phantomsection \addcontentsline{toc}{section}{#1}} {}% - \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} + \markboth{\memUChead{#1}}{\memUChead{#1}}} \defbibheading{shorthands}[\losname]{% \section*{#1}% \ifmemoirbibintoc {\phantomsection \addcontentsline{toc}{section}{#1}} {}% - \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} + \markboth{\memUChead{#1}}{\memUChead{#1}}} \defbibheading{bibintoc}[\refname]{% \section*{#1}% \phantomsection \addcontentsline{toc}{section}{#1}% - \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} + \markboth{\memUChead{#1}}{\memUChead{#1}}} \defbibheading{losintoc}[\losname]{% \section*{#1}% \phantomsection \addcontentsline{toc}{section}{#1}% - \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} + \markboth{\memUChead{#1}}{\memUChead{#1}}} \defbibheading{bibnumbered}[\refname]{% \section{#1}} \defbibheading{losnumbered}[\losname]{% @@ -1156,58 +1393,59 @@ {\phantomsection \addcontentsline{toc}{subsection}{#1}} {}% - \if@twoside\markright{\MakeUppercase{#1}}\fi} + \if@twoside\markright{\memUChead{#1}}\fi} \defbibheading{subbibintoc}[\refname]{% \subsection*{#1}% \phantomsection \addcontentsline{toc}{subsection}{#1}% - \if@twoside\markright{\MakeUppercase{#1}}\fi} + \if@twoside\markright{\memUChead{#1}}\fi} \defbibheading{subbibnumbered}[\refname]{% \subsection{#1}} \or % memoir (book) + \providecommand*{\memUChead}{\MakeUppercase} \defbibheading{bibliography}[\bibname]{% \chapter*{#1}% \ifmemoirbibintoc {\phantomsection \addcontentsline{toc}{chapter}{#1}} {}% - \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} + \markboth{\memUChead{#1}}{\memUChead{#1}}} \defbibheading{shorthands}[\losname]{% \chapter*{#1}% \ifmemoirbibintoc {\phantomsection \addcontentsline{toc}{chapter}{#1}} {}% - \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} + \markboth{\memUChead{#1}}{\memUChead{#1}}} \defbibheading{bibintoc}[\bibname]{% \chapter*{#1}% \phantomsection \addcontentsline{toc}{chapter}{#1}% - \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} + \markboth{\memUChead{#1}}{\memUChead{#1}}} \defbibheading{losintoc}[\losname]{% \chapter*{#1}% \phantomsection \addcontentsline{toc}{chapter}{#1}% - \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}} + \markboth{\memUChead{#1}}{\memUChead{#1}}} \defbibheading{bibnumbered}[\bibname]{% \chapter{#1}% - \if@twoside\markright{\MakeUppercase{#1}}\fi} + \if@twoside\markright{\memUChead{#1}}\fi} \defbibheading{losnumbered}[\losname]{% \chapter{#1}% - \if@twoside\markright{\MakeUppercase{#1}}\fi} + \if@twoside\markright{\memUChead{#1}}\fi} \defbibheading{subbibliography}[\refname]{% \section*{#1}% \ifmemoirbibintoc {\phantomsection \addcontentsline{toc}{section}{#1}} {}% - \if@twoside\markright{\MakeUppercase{#1}}\fi} + \if@twoside\markright{\memUChead{#1}}\fi} \defbibheading{subbibintoc}[\refname]{% \section*{#1}% \phantomsection \addcontentsline{toc}{section}{#1}% - \if@twoside\markright{\MakeUppercase{#1}}\fi} + \if@twoside\markright{\memUChead{#1}}\fi} \defbibheading{subbibnumbered}[\refname]{% \section{#1}} @@ -1274,6 +1512,14 @@ {\multicitedelim} {\usebibmacro{postnote}} +\DeclareCiteCommand{\citedate} + {\boolfalse{citetracker}% + \boolfalse{pagetracker}% + \usebibmacro{prenote}} + {\printdate} + {\multicitedelim} + {\usebibmacro{postnote}} + \DeclareCiteCommand{\citeurl} {\boolfalse{citetracker}% \boolfalse{pagetracker}% |