summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-chem/chem-biochem.bbx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-chem/chem-biochem.bbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-chem/chem-biochem.bbx86
1 files changed, 80 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-chem/chem-biochem.bbx b/Master/texmf-dist/tex/latex/biblatex-chem/chem-biochem.bbx
index da9b78de45d..ce7029f12f3 100644
--- a/Master/texmf-dist/tex/latex/biblatex-chem/chem-biochem.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-chem/chem-biochem.bbx
@@ -8,7 +8,7 @@
%% ---------------------------------------------------------------
%%
-\ProvidesFile{chem-biochem.bbx}[2012/08/16 v1.1h biblatex bibliography style]
+\ProvidesFile{chem-biochem.bbx}[2013/01/27 v1.1j biblatex bibliography style]
% Load the standard style to avoid copy-pasting unnecessary material
\RequireBibliographyStyle{numeric-comp}
@@ -92,10 +92,10 @@
}
{\multinamedelim}%
}
-\renewcommand*\intitlepunct{\addspace}
-\renewcommand*\labelnamepunct{\addspace}
-\renewcommand*\mkbibnameaffix[1]{\addcomma\addspace#1}
-\renewcommand*\newunitpunct{\addcomma\addspace}
+\renewcommand*{\intitlepunct}{\addspace}
+\renewcommand*{\labelnamepunct}{\addspace}
+\renewcommand*{\mkbibnameaffix}[1]{\addcomma\addspace#1}
+\renewcommand*{\newunitpunct}{\addcomma\addspace}
% Bibliography strings
\DefineBibliographyStrings{english}{%
@@ -228,6 +228,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}%
@@ -331,6 +387,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}%
}
@@ -366,6 +424,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}%
}
@@ -404,6 +464,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}%
}
@@ -450,6 +512,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}%
}
@@ -494,6 +558,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}%
}
\DeclareBibliographyDriver{inproceedings}{%
@@ -531,6 +597,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}%
}
@@ -574,6 +642,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}%
}
@@ -605,6 +675,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}%
}
@@ -640,11 +712,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