summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-nature
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-10-23 22:05:11 +0000
committerKarl Berry <karl@freefriends.org>2016-10-23 22:05:11 +0000
commita0dae79da4d3a6fc4760702f913cffe11d738b0a (patch)
tree3b3c6affadae774ede9bc22369b31b02e1e3997d /Master/texmf-dist/tex/latex/biblatex-nature
parent982bd62af967c6d0b2b31ee09085915ca1addfc5 (diff)
biblatex-nature (23oct16)
git-svn-id: svn://tug.org/texlive/trunk@42338 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-nature')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-nature/nature.bbx37
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-nature/nature.cbx2
2 files changed, 29 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-nature/nature.bbx b/Master/texmf-dist/tex/latex/biblatex-nature/nature.bbx
index 91b79eaf7cf..20b347fa7fd 100644
--- a/Master/texmf-dist/tex/latex/biblatex-nature/nature.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-nature/nature.bbx
@@ -8,7 +8,7 @@
%% ---------------------------------------------------------------
%%
-\ProvidesFile{nature.bbx}[2016/09/13 v1.2h biblatex bibliography style]
+\ProvidesFile{nature.bbx}[2016/10/23 v1.3 biblatex bibliography style]
% Load the standard style to avoid copy-pasting unnecessary material
\RequireBibliographyStyle{numeric-comp}
@@ -18,8 +18,11 @@
\DeclareBibliographyOption{articletitle}[true]{%
\settoggle{bbx:articletitle}{#1}%
}
+\newtoggle{bbx:intitle}
+\DeclareBibliographyOption{intitle}[false]{%
+ \settoggle{bbx:intitle}{#1}%
+}
-% Alter settings that carry through from biblatex
\ExecuteBibliographyOptions{
articletitle ,
giveninits ,
@@ -30,14 +33,12 @@
useprefix ,
}
+\@ifpackagelater{biblatex}{2016/03/27}
+ {\ExecuteBibliographyOptions{giveninits}}
+ {\ExecuteBibliographyOptions{firstinits}}
+
% Modify the name format
-\@ifpackageloaded{biblatex_legacy}
- {
- \DeclareNameFormat{default}{%
- \usebibmacro{name:last-first}{#1}{#4}{#5}{#7}%
- \usebibmacro{name:andothers}%
- }
- }
+\@ifpackagelater{biblatex}{2016/03/27}
{
\DeclareNameFormat{default}{%
\nameparts{#1}%
@@ -49,6 +50,12 @@
\usebibmacro{name:andothers}%
}
}
+ {
+ \DeclareNameFormat{default}{%
+ \usebibmacro{name:last-first}{#1}{#4}{#5}{#7}%
+ \usebibmacro{name:andothers}%
+ }
+ }
% Field formats for the bibliography environment
\DeclareFieldFormat{labelnumberwidth}{#1\adddot}
@@ -413,6 +420,12 @@
\newunit\newblock
\usebibmacro{byauthor}%
\newunit\newblock
+ \iftoggle{bbx:intitle}
+ {%
+ \usebibmacro{title}%
+ \newblock
+ }
+ {}%
\usebibmacro{in:}%
\usebibmacro{bybookauthor}%
\setunit*{\newunitpunct}\newblock
@@ -455,6 +468,12 @@
\newunit\newblock
\usebibmacro{byauthor}%
\newunit\newblock
+ \iftoggle{bbx:intitle}
+ {%
+ \usebibmacro{title}%
+ \newblock
+ }
+ {}%
\usebibmacro{in:}%
\usebibmacro{maintitle+booktitle}%
\newunit\newblock
diff --git a/Master/texmf-dist/tex/latex/biblatex-nature/nature.cbx b/Master/texmf-dist/tex/latex/biblatex-nature/nature.cbx
index 1355993d42c..8fe9493cbbe 100644
--- a/Master/texmf-dist/tex/latex/biblatex-nature/nature.cbx
+++ b/Master/texmf-dist/tex/latex/biblatex-nature/nature.cbx
@@ -8,7 +8,7 @@
%% ---------------------------------------------------------------
%%
-\ProvidesFile{nature.cbx}[2016/09/13 v1.2h biblatex citation style]
+\ProvidesFile{nature.cbx}[2016/10/23 v1.3 biblatex citation style]
\RequireCitationStyle{numeric-comp}