summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
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
parent7a9f237be3d1f966fe9172f4704ee052ca09c551 (diff)
biblatex-nejm
git-svn-id: svn://tug.org/texlive/trunk@24011 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/biblatex-nejm/README5
-rw-r--r--Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.pdfbin155822 -> 156008 bytes
-rw-r--r--Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.tex18
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-nejm/nejm.bbx50
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-nejm/nejm.cbx10
5 files changed, 65 insertions, 18 deletions
diff --git a/Master/texmf-dist/doc/latex/biblatex-nejm/README b/Master/texmf-dist/doc/latex/biblatex-nejm/README
index 1e5e76961c7..a021a2c656f 100644
--- a/Master/texmf-dist/doc/latex/biblatex-nejm/README
+++ b/Master/texmf-dist/doc/latex/biblatex-nejm/README
@@ -6,6 +6,11 @@ This package provides only a formated numeric style of the package
biblatex. The design based on the New England Journal of Medicine (NEJM).
--------------------------------
+v.04
+- changed formating of date -- only year is printed
+- added option printlang
+
+--------------------------------
v.03
- changed required cite style of biblatex to numeric-comp
- changed required bibliography style of biblatex to standard
diff --git a/Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.pdf b/Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.pdf
index 8c9d1d620fe..bd926212980 100644
--- a/Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.pdf
+++ b/Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.tex b/Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.tex
index d6ce80f1d5d..d8b4ea09d08 100644
--- a/Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.tex
+++ b/Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.tex
@@ -1,8 +1,8 @@
-%%$Id: biblatex-nejm.tex 25 2011-09-07 11:23:41Z marco $
-%%$Rev: 25 $
+%%$Id: biblatex-nejm.tex 28 2011-09-09 17:17:01Z marco $
+%%$Rev: 28 $
%%$Author: marco $
-%%$Date: 2011-09-07 13:23:41 +0200 (Mi, 07. Sep 2011) $
-\def\biblatexnejmversiontex{v0.3}
+%%$Date: 2011-09-09 19:17:01 +0200 (Fr, 09. Sep 2011) $
+\def\biblatexnejmversiontex{v0.4}
\def\biblatexnejmpackagenametex{biblatex-nejm.tex}
\def\biblatexnejmsvntex$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space }
@@ -33,7 +33,7 @@
author={Marco Daniel},
email={marco.daniel@mada-nada.de},
revision={\biblatexnejmversiontex},
- date={\biblatexnejmsvnbbx$Id: biblatex-nejm.tex 25 2011-09-07 11:23:41Z marco $}}
+ date={\biblatexnejmsvnbbx$Id: biblatex-nejm.tex 28 2011-09-09 17:17:01Z marco $}}
\hypersetup{%
citecolor=red,
@@ -172,11 +172,15 @@ You should also use the option \kvopt{backend}{biber}. Some settings doesn't wor
\begin{optionlist}
\boolitem[false]{articledoi}
-Prints the \bibfield{doi} also for type \prm{article}
+Print the \bibfield{doi} also for type \prm{article}
\boolitem[false]{articlein}
-Prints the \bibfield{\cmd{bibstring}\{in\}} also for type \prm{article}
+Print the \bibfield{\cmd{bibstring}\{in\}} also for type \prm{article}
+
+\boolitem[false]{printlang}
+
+Print the \bibfield{language}
\end{optionlist}
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}