From d74756a7c618d3f8e58046afb5f5f7d5a07e429f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 25 Sep 2016 21:04:43 +0000 Subject: biblatex-science git-svn-id: svn://tug.org/texlive/trunk@42147 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/biblatex-science/science.bbx | 22 ++++++++++++++-------- .../tex/latex/biblatex-science/science.cbx | 2 +- 2 files changed, 15 insertions(+), 9 deletions(-) (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/latex/biblatex-science/science.bbx b/Master/texmf-dist/tex/latex/biblatex-science/science.bbx index fb183f5e55c..a182dab7262 100644 --- a/Master/texmf-dist/tex/latex/biblatex-science/science.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-science/science.bbx @@ -8,7 +8,7 @@ %% --------------------------------------------------------------- %% -\ProvidesFile{science.bbx}[2016/03/13 v1.1f biblatex bibliography style] +\ProvidesFile{science.bbx}[2016/09/13 v1.1g biblatex bibliography style] % Load the standard style to avoid copy-pasting unnecessary material \RequireBibliographyStyle{numeric-comp} @@ -25,6 +25,7 @@ giveninits , maxnames = 5 , maxcitenames = 2 , + urldate = year , useprefix , } @@ -79,6 +80,7 @@ \DeclareFieldFormat[article]{title}{#1\adddot\space\nopunct} \DeclareFieldFormat[report]{title}{\mkbibquote{#1}} \DeclareFieldFormat{url}{\url{#1}} +\DeclareFieldFormat{urldate}{#1} \DeclareFieldFormat[article,periodical]{volume}{\mkbibbold{#1}} % Simple modifications to punctuation, etc. @@ -198,6 +200,16 @@ }% } +\renewbibmacro*{url+urldate}{% + \iffieldundef{url} + {} + {% + \printtext[parens]{% + \usebibmacro{urldate}% + \setunit*{\addsemicolon\space}% + \usebibmacro{url}% + }}} + % New bibliography drivers, using the required order of fields. These % are mainly copied from standard.bbx then modified. \DeclareBibliographyDriver{article}{% @@ -462,13 +474,7 @@ {\usebibmacro{eprint}} {}% \nopunct - \printtext[parens]{% - \iffieldundef{year} - {\printfield{urlyear}} - {\usebibmacro{date}}% - \setunit*{\addsemicolon\space}% - \printfield{url}% - }% + \usebibmacro{url+urldate}% \newunit\newblock \usebibmacro{addendum+pubstate}% \setunit{\bibpagerefpunct}\newblock diff --git a/Master/texmf-dist/tex/latex/biblatex-science/science.cbx b/Master/texmf-dist/tex/latex/biblatex-science/science.cbx index 26896e38df8..ea5f0d4f50f 100644 --- a/Master/texmf-dist/tex/latex/biblatex-science/science.cbx +++ b/Master/texmf-dist/tex/latex/biblatex-science/science.cbx @@ -8,7 +8,7 @@ %% --------------------------------------------------------------- %% -\ProvidesFile{science.cbx}[2016/03/13 v1.1f biblatex citation style] +\ProvidesFile{science.cbx}[2016/09/13 v1.1g biblatex citation style] \RequireCitationStyle{numeric-comp} -- cgit v1.2.3