diff options
author | Karl Berry <karl@freefriends.org> | 2016-03-31 21:15:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-03-31 21:15:21 +0000 |
commit | 04599a378adc76d2b1e54df49c17ba45aee22672 (patch) | |
tree | 02fd9c3a41c8330aa2d65808218e56c7ec6e7480 /Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.bbx | |
parent | 7e2ae4704f0e798e129edb4c3b5e4ababd2d5bb7 (diff) |
biblatex-caspervector (31mar16)
git-svn-id: svn://tug.org/texlive/trunk@40195 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.bbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.bbx | 50 |
1 files changed, 47 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.bbx b/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.bbx index ebcd8239f15..a4a624d86d2 100644 --- a/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.bbx @@ -20,7 +20,7 @@ % biblatex-caspervector-utf8.def \ProvidesFile{caspervector.bbx}% - [2016/03/22 v0.2.4 Casper Ti. Vector's biblatex bibliography style] + [2016/03/31 v0.2.5 Casper Ti. Vector's biblatex bibliography style] \RequireBiber[3] \RequireBibliographyStyle{numeric} @@ -29,7 +29,8 @@ \DeclareBibliographyOption{utf8}[true]{\togglefalse{bbx:gbk}} \DeclareBibliographyOption{gbk}[true]{\toggletrue{bbx:gbk}} \ExecuteBibliographyOptions{ - alldates = iso8601, gbk, defernumbers = true, sorting = none + alldates = iso8601, gbk, defernumbers = true, + sorting = none, minnames = 3, minitems = 3 } \AtEndOfPackage{% \iftoggle{bbx:gbk}{ @@ -49,14 +50,26 @@ \newcommand*{\bbx@cespace}{\bbx@cegen{}{\addspace}} \newcommand*{\bbx@mybibquote}[1]% {\bbx@cegen{\bbx@cnldquot{#1}\bbx@cnrdquot}{\mkbibquote{#1}}} +\renewcommand*{\finallistdelim}% + {\bbx@cegen{\bbx@cncomma}{\addspace\bibstring{and}\space}} \renewcommand*{\finalnamedelim}% {\bbx@cegen{\bbx@cncomma}{\addspace\bibstring{and}\space}} +\renewcommand*{\multilistdelim}{\bbx@cecomma} \renewcommand*{\multinamedelim}{\bbx@cecomma} +\renewcommand*{\andmoredelim}{\bbx@cespace} \renewcommand*{\andothersdelim}{\bbx@cespace} \renewcommand*{\postnotedelim}{\bbx@cecomma} \renewcommand*{\finentrypunct}{\bbx@cegen{\bbx@cnperiod}{.}} \renewcommand{\bibendnotewrapper}[1]{\bibsentence #1\bbx@cnperiod} \renewcommand{\bibfootnotewrapper}[1]{\bibsentence #1\bbx@cnperiod} +\DefineBibliographyExtras{english}{% + \renewcommand*{\finalandcomma}{\bbx@cegen{\addspace}{}}% +} +\DefineBibliographyStrings{english}{ + andmore = {\bbx@cegen{\bbx@cnetal}{\mkbibemph{et\addabbrvspace al\adddot}}}, + andothers = {\bbx@cegen{\bbx@cnetal}{\mkbibemph{et\addabbrvspace al\adddot}}}, + bibliography = {\bbx@cnbib}, references = {\bbx@cnbib} +} \DeclareFieldFormat*{booktitle}{\mkbibemph{#1}} \DeclareFieldFormat*{journaltitle}{\mkbibemph{#1}} @@ -66,7 +79,6 @@ \DeclareFieldFormat*{pages}{#1} \DeclareFieldFormat*{url}{\url{#1}} \DeclareFieldFormat*{urldate}{#1} - \DeclareFieldFormat[inbook, inproceedings, incollection, article]% {title}{\bbx@mybibquote{\mkbibemph{#1}}} \DeclareFieldFormat*{type}{\mkbibbrackets{#1}} @@ -75,7 +87,33 @@ \renewbibmacro*{title}{\iffieldundef{title}{}{\printfield{title}}} \newbibmacro*{type}{\iffieldundef{type}{}{\printfield{type}}} \newbibmacro*{number}{\iffieldundef{number}{}{\printfield{number}}} +\newbibmacro*{cein:}{\printtext{\bbx@cegen{\bbx@cnin}{In}\bbx@cecolon}} +\newcommand*{\bbx@byspace}[1]{% + \ifnumgreater{\value{#1}}{\value{maxnames}}{}{\addspace}% +} +\newbibmacro*{cebyauthor}{% + \ifnameundef{author}{}{% + \bbx@cegen% + {\printnames{author}\printtext{\bbx@byspace{author}\bbx@cnauth}}% + % `\usebibmacro{byauthor}' does not print with `useauthor' enabled. + {\printnames[byauthor]{author}}% + }% +} +\newbibmacro*{cebyeditor}{% + \ifnameundef{editor}{}{% + \bbx@cegen% + {\printnames{editor}\printtext{\bbx@byspace{editor}\bbx@cnedit}}% + {\usebibmacro{byeditor}}% + }% +} +\newbibmacro*{cebytranslator}{% + \ifnameundef{translator}{}{% + \bbx@cegen% + {\printnames{translator}\printtext{\bbx@byspace{translator}\bbx@cntrans}}% + {\usebibmacro{bytranslator}}% + }% +} \newbibmacro*{author+others}{% \ifthenelse% {\ifnameundef{author} \and \ifnameundef{editor} \and \ifnameundef{translator}}% @@ -105,6 +143,12 @@ \usebibmacro{number}% }{\printdate}% } +\renewbibmacro*{urldate}{% + \iffieldundef{urlyear}{}{% + \printtext{\bbx@cegen{\bbx@cnretr}{retrieved on}\addspace}% + \printurldate% + }% +} \DeclareBibliographyDriver{book}{% \usebibmacro{bibindex}% |