summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-chem/chem-rsc.bbx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-chem/chem-rsc.bbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-chem/chem-rsc.bbx84
1 files changed, 79 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-chem/chem-rsc.bbx b/Master/texmf-dist/tex/latex/biblatex-chem/chem-rsc.bbx
index 5f09f959353..781a8c73290 100644
--- a/Master/texmf-dist/tex/latex/biblatex-chem/chem-rsc.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-chem/chem-rsc.bbx
@@ -8,7 +8,7 @@
%% ---------------------------------------------------------------
%%
-\ProvidesFile{chem-rsc.bbx}[2012/08/16 v1.1h biblatex bibliography style]
+\ProvidesFile{chem-rsc.bbx}[2013/01/27 v1.1j biblatex bibliography style]
% Load the standard style to avoid copy-pasting unnecessary material
\RequireBibliographyStyle{numeric-comp}
@@ -84,9 +84,9 @@
\DeclareFieldFormat[article]{volume}{\mkbibbold{#1}}
% Simple modifications to punctuation, etc.
-\renewcommand*\intitlepunct{\addspace}
-\renewcommand*\mkbibnameaffix[1]{\addcomma\space#1}
-\renewcommand*\newunitpunct{\addcomma\addspace}
+\renewcommand*{\intitlepunct}{\addspace}
+\renewcommand*{\mkbibnameaffix}[1]{\addcomma\space#1}
+\renewcommand*{\newunitpunct}{\addcomma\addspace}
% Bibliography strings
\DefineBibliographyStrings{english}{%
@@ -193,6 +193,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}%
+ }%
+}
+
% Specialised functions for manipulating data, where the biblatex
% kernel does not provide a suitable function.
\newcommand*\mkgroupeddigits[1]{%
@@ -286,6 +342,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}%
}
@@ -321,6 +379,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}%
}
@@ -352,6 +412,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}%
}
@@ -392,6 +454,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}%
}
@@ -430,6 +494,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}%
}
@@ -465,6 +531,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}%
}
@@ -506,6 +574,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}%
}
@@ -538,6 +608,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}%
}
@@ -569,11 +641,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