summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-nejm
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-09-18 22:55:53 +0000
committerKarl Berry <karl@freefriends.org>2011-09-18 22:55:53 +0000
commit0a0068c1fa567ef5e5fd09714e543d2a212369c4 (patch)
tree6ac73d8cdae44d64ad0691a10fc09a9a950c2250 /Master/texmf-dist/tex/latex/biblatex-nejm
parent7a9f237be3d1f966fe9172f4704ee052ca09c551 (diff)
biblatex-nejm
git-svn-id: svn://tug.org/texlive/trunk@24011 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-nejm')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-nejm/nejm.bbx50
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-nejm/nejm.cbx10
2 files changed, 49 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.bbx b/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.bbx
index 91e0948680f..00af201f37a 100644
--- a/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.bbx
@@ -17,14 +17,14 @@
%% This work consists of the files nejm.bbx, nejm.cbx, biblatex-nejm.tex
%% and biblatex-nejm.pdf
-%%$Id: nejm.bbx 26 2011-09-07 11:29:51Z marco $
-%%$Rev: 26 $
+%%$Id: nejm.bbx 28 2011-09-09 17:17:01Z marco $
+%%$Rev: 28 $
%%$Author: marco $
-%%$Date: 2011-09-07 13:29:51 +0200 (Mi, 07. Sep 2011) $
-\def\biblatexnejmversionbbx{v0.3}
+%%$Date: 2011-09-09 19:17:01 +0200 (Fr, 09. Sep 2011) $
+\def\biblatexnejmversionbbx{v0.4}
\def\biblatexnejmpackagenamebbx{nejm.bbx}
\def\biblatexnejmsvnbbx$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space }
-\ProvidesFile{nejm.bbx}[\biblatexnejmsvnbbx$Id: nejm.bbx 26 2011-09-07 11:29:51Z marco $ \biblatexnejmversionbbx: \biblatexnejmpackagenamebbx]
+\ProvidesFile{nejm.bbx}[\biblatexnejmsvnbbx$Id: nejm.bbx 28 2011-09-09 17:17:01Z marco $ \biblatexnejmversionbbx: \biblatexnejmpackagenamebbx]
%use numeric.cbx as base
%Warning if backend isn't biber
@@ -42,6 +42,7 @@
firstinits = true ,
terseinits = true ,
sorting = none ,
+ % language = nejm ,
}
@@ -58,7 +59,44 @@
\DeclareBibliographyOption{articlein}[false]{%
\settoggle{bbx:articlein}{#1}}
+\providetoggle{bbx:printlang}
+\DeclareBibliographyOption{printlang}[false]{%
+ \settoggle{bbx:printlang}{#1}}
+
+
+%specify language
+\DeclareListFormat{language}{%
+ \iftoggle{bbx:printlang}{%
+ \usebibmacro{list:delim}{%
+ \ifbibstring{#1}%
+ {\bibxstring{#1}}%
+ {\ifbibstring{lang#1}%
+ {\bibxstring{lang#1}}%
+ {#1}}}%
+ \ifbibstring{#1}%
+ {\bibstring{#1}}%
+ {\ifbibstring{lang#1}%
+ {\bibstring{lang#1}}%
+ {#1}}%
+ \usebibmacro{list:andothers}%
+ }{}%
+}
+%format date -- only year printed
+\@ifpackageloaded{babel}{%
+ \edef\blx@tempa{\bbl@main@language}%
+ }{%
+ \edef\blx@tempa{\blx@languagename}%
+}
+\DefineBibliographyExtras{\blx@tempa}{%
+%<year><month><day>
+ \protected\def\mkbibdatelong#1#2#3{%
+ \stripzeros{\thefield{#1}}%
+ }%
+ \protected\def\mkbibdateshort#1#2#3{%
+ \mkdatezeros{\thefield{#1}}%
+ }%
+}
%Set environment
\defbibenvironment{bibliography}
@@ -169,7 +207,7 @@
}
%no bibstring in in article:
-\newbibmacro*{in:}{%
+\renewbibmacro*{in:}{%
\ifentrytype{article}%
{\iftoggle{bbx:articlein}{\printtext{\bibstring{in}\intitlepunct}}{}}%
{\printtext{\bibstring{in}\intitlepunct}}%
diff --git a/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.cbx b/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.cbx
index 27f03652caf..04a73e0c5fd 100644
--- a/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.cbx
+++ b/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.cbx
@@ -1,12 +1,12 @@
%copyright Marco Daniel
-%%$Id: nejm.cbx 22 2011-09-06 18:48:21Z marco $
-%%$Rev: 22 $
+%%$Id: nejm.cbx 28 2011-09-09 17:17:01Z marco $
+%%$Rev: 28 $
%%$Author: marco $
-%%$Date: 2011-09-06 20:48:21 +0200 (Di, 06. Sep 2011) $
-\def\biblatexnejmversioncbx{v0.3}
+%%$Date: 2011-09-09 19:17:01 +0200 (Fr, 09. Sep 2011) $
+\def\biblatexnejmversioncbx{v0.4}
\def\biblatexnejmpackagenamecbx{nejm.cbx}
\def\biblatexnejmsvncbx$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space }
-\ProvidesFile{nejm.bbx}[\biblatexnejmsvncbx$Id: nejm.cbx 22 2011-09-06 18:48:21Z marco $ \biblatexnejmversioncbx: \biblatexnejmpackagenamecbx]
+\ProvidesFile{nejm.bbx}[\biblatexnejmsvncbx$Id: nejm.cbx 28 2011-09-09 17:17:01Z marco $ \biblatexnejmversioncbx: \biblatexnejmpackagenamecbx]
\RequireCitationStyle{numeric-comp}