diff options
author | Karl Berry <karl@freefriends.org> | 2013-01-27 22:56:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-01-27 22:56:34 +0000 |
commit | 9db8593705387d67df5da134385828474c0874d8 (patch) | |
tree | fc66ff8755feab79420c9af1f49c8c6f4ee4b715 /Master/texmf-dist/tex/latex/biblatex-chem/chem-acs.bbx | |
parent | 25cd9e0c2fa07884d462e87f0aedad4e9cfb1694 (diff) |
biblatex-chem 1.1j (27jan13)
git-svn-id: svn://tug.org/texlive/trunk@28960 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-chem/chem-acs.bbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-chem/chem-acs.bbx | 91 |
1 files changed, 84 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-chem/chem-acs.bbx b/Master/texmf-dist/tex/latex/biblatex-chem/chem-acs.bbx index 3e8bb1adb17..8fd5a081d4b 100644 --- a/Master/texmf-dist/tex/latex/biblatex-chem/chem-acs.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-chem/chem-acs.bbx @@ -8,7 +8,7 @@ %% --------------------------------------------------------------- %% -\ProvidesFile{chem-acs.bbx}[2012/08/16 v1.1h biblatex bibliography style] +\ProvidesFile{chem-acs.bbx}[2013/01/27 v1.1j biblatex bibliography style] % Load the standard style to avoid copy-pasting unnecessary material \RequireBibliographyStyle{numeric-comp} @@ -51,7 +51,8 @@ maxnames = 15 , maxcitenames = 2 , pageranges = true , - url = false + url = false , + useprefix = true } % Modify the name format @@ -98,9 +99,9 @@ } {\multinamedelim}% } -\renewcommand*\intitlepunct{\addspace} -\renewcommand*\labelnamepunct{\addspace} -\renewcommand*\newunitpunct{\addcomma\addspace} +\renewcommand*{\intitlepunct}{\addspace} +\renewcommand*{\labelnamepunct}{\addspace} +\renewcommand*{\newunitpunct}{\addcomma\addspace} % Bibliography strings \DefineBibliographyStrings{english}{% @@ -198,7 +199,7 @@ {} {\clearfield{doi}}% }% -} +} \renewbibmacro*{publisher+location+date}{% \printlist{publisher}% @@ -211,6 +212,62 @@ \newunit } +\renewbibmacro*{related}{% + \ifboolexpr{ + not test {\iftoggle{bbx:related}} + or + test {\iffieldundef{related}} + } + {} + {% + \setunit{\addsemicolon\space}% + \setcounter{bbx:relatedcount}{0}% + \setcounter{bbx:relatedtotal}{0}% + \def\do##1{\stepcounter{bbx:relatedtotal}}% + \docsvfield{related}% + \def\do{% + \stepcounter{bbx:relatedcount}% + \ifnumgreater{\value{bbx:relatedcount}}{1} + {\printtext{\relateddelim}} + {}}% + \ifbibmacroundef{related:\strfield{relatedtype}} + {\appto{\do}{\usebibmacro{related:default}}} + {\appto{\do}{\usebibmacro*{related:\strfield{relatedtype}}}}% + \iffieldformatundef{related:\strfield{relatedtype}} + {\def\bbx@tempa{related}} + {\def\bbx@tempa{related:\strfield{relatedtype}}}% + \printtext[\bbx@tempa]{% + \iffieldundef{relatedstring} + {\ifboolexpr{ + test {\ifnumgreater{\value{bbx:relatedtotal}}{1}} + and + test {\ifbibxstring{\thefield{relatedtype}s}} + } + {\printtext{\bibstring{\thefield{relatedtype}s}\relatedpunct}} + {\iffieldbibstring{relatedtype} + {\printtext{\bibstring{\thefield{relatedtype}}\relatedpunct}} + {}}} + {\iffieldbibstring{relatedstring} + {\printtext{\bibstring{\thefield{relatedstring}}\relatedpunct}} + {\printtext{\printfield{relatedstring}\relatedpunct}}}% + \docsvfield{related}}}} + +\newbibmacro*{related:translatedas}[1]{% + \entrydata{#1}{% + \usebibmacro{journal+issuetitle}% + \newunit + \usebibmacro{byeditor+others}% + \newunit + \usebibmacro{note+pages}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{issn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + }% +} + \renewbibmacro*{series+number}{% \printfield{series}% \setunit*{\addspace}% @@ -308,6 +365,8 @@ \usebibmacro{addendum+pubstate}% \setunit{\bibpagerefpunct}\newblock \usebibmacro{pageref}% + \newunit\newblock + \usebibmacro{related}% \usebibmacro{finentry}% } @@ -343,6 +402,8 @@ \usebibmacro{addendum+pubstate}% \setunit{\bibpagerefpunct}\newblock \usebibmacro{pageref}% + \newunit\newblock + \usebibmacro{related}% \usebibmacro{finentry}% } @@ -381,6 +442,8 @@ \usebibmacro{addendum+pubstate}% \setunit{\bibpagerefpunct}\newblock \usebibmacro{pageref}% + \newunit\newblock + \usebibmacro{related}% \usebibmacro{finentry}% } @@ -427,6 +490,8 @@ \usebibmacro{addendum+pubstate}% \setunit{\bibpagerefpunct}\newblock \usebibmacro{pageref}% + \newunit\newblock + \usebibmacro{related}% \usebibmacro{finentry}% } @@ -471,6 +536,8 @@ \usebibmacro{addendum+pubstate}% \setunit{\bibpagerefpunct}\newblock \usebibmacro{pageref}% + \newunit\newblock + \usebibmacro{related}% \usebibmacro{finentry}% } \DeclareBibliographyDriver{inproceedings}{% @@ -508,6 +575,8 @@ \usebibmacro{addendum+pubstate}% \setunit{\bibpagerefpunct}\newblock \usebibmacro{pageref}% + \newunit\newblock + \usebibmacro{related}% \usebibmacro{finentry}% } @@ -551,6 +620,8 @@ \usebibmacro{addendum+pubstate}% \setunit{\bibpagerefpunct}\newblock \usebibmacro{pageref}% + \newunit\newblock + \usebibmacro{related}% \usebibmacro{finentry}% } @@ -582,6 +653,8 @@ \usebibmacro{addendum+pubstate}% \setunit{\bibpagerefpunct}\newblock \usebibmacro{pageref}% + \newunit\newblock + \usebibmacro{related}% \usebibmacro{finentry}% } @@ -617,6 +690,8 @@ \usebibmacro{addendum+pubstate}% \setunit{\bibpagerefpunct}\newblock \usebibmacro{pageref}% + \newunit\newblock + \usebibmacro{related}% \usebibmacro{finentry}% } @@ -654,11 +729,13 @@ \usebibmacro{addendum+pubstate}% \setunit{\bibpagerefpunct}\newblock \usebibmacro{pageref}% + \newunit\newblock + \usebibmacro{related}% \usebibmacro{finentry}% } %% -%% Copyright (C) 2010-2012 by +%% Copyright (C) 2010-2013 by %% Joseph Wright <joseph.wright@morningstar2.co.uk> %% %% It may be distributed and/or modified under the conditions of |