diff options
author | Karl Berry <karl@freefriends.org> | 2011-09-03 23:13:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-09-03 23:13:14 +0000 |
commit | 320a834d2e64000bb5ba96aa67dfcc2435ad26f8 (patch) | |
tree | 9774c50cffd26f9811aa02312c84c290380d7958 /Master/texmf-dist/tex/latex/biblatex-nejm/nejm.bbx | |
parent | 2898d79db8fd35f3151ead38d075c66507556f8e (diff) |
new biblatex package biblatex-nejm (1sep11)
git-svn-id: svn://tug.org/texlive/trunk@23780 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-nejm/nejm.bbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-nejm/nejm.bbx | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.bbx b/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.bbx new file mode 100644 index 00000000000..9e9d5807e41 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.bbx @@ -0,0 +1,97 @@ +%copyright Marco Daniel +%%$Id: nejm.bbx 20 2011-09-01 11:18:48Z marco $ +%%$Rev: 20 $ +%%$Author: marco $ +%%$Date: 2011-09-01 13:18:48 +0200 (Do, 01. Sep 2011) $ +\def\biblatexnejmversionbbx{v0.2} +\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 20 2011-09-01 11:18:48Z marco $ \biblatexnejmversionbbx: \biblatexnejmpackagenamebbx] + +%use numeric.cbx as base +\RequireBibliographyStyle{numeric} +%Warning if backend isn't biber +\RequireBiber[2] +%set options to biblatex +\ExecuteBibliographyOptions + { + minnames = 3 , + maxnames = 6 , + firstinits = true , + terseinits = true , + } + +%remove punctuation and space after initials -- require biber +\renewrobustcmd*{\bibinitperiod}{} +%separator printed before the pages field +\renewcommand*{\bibpagespunct}{\addcolon} +%no bracktes in thebibliography and add dot +\DeclareFieldFormat{labelnumberwidth}{#1\adddot} +%not formating pages +\DeclareFieldFormat*{pages}{#1} +%not formated journaltitle +\DeclareFieldFormat*{journaltitle}{#1} +%not formated title +\DeclareFieldFormat*{title}{#1} + + +%Set name format +\DeclareNameAlias{default}{last-first} +\DeclareNameAlias{sortname}{last-first} + +%remove comma between familyname and firstname +\renewbibmacro*{name:last-first}[4]{% + \ifuseprefix + {\usebibmacro{name:delim}{#3#1}% + \usebibmacro{name:hook}{#3#1}% + \ifblank{#3}{}{% + \ifcapital + {\mkbibnameprefix{\MakeCapital{#3}}\isdot} + {\mkbibnameprefix{#3}\isdot}% + \ifpunctmark{'}{}{\bibnamedelimc}}% + \mkbibnamelast{#1}\isdot + \ifblank{#4}{}{\bibnamedelimd\mkbibnameaffix{#4}\isdot}% + \ifblank{#2}{}{\bibnamedelimd\mkbibnamefirst{#2}\isdot}}%remove \addcomma + {\usebibmacro{name:delim}{#1}% + \usebibmacro{name:hook}{#1}% + \mkbibnamelast{#1}\isdot + \ifblank{#4}{}{\bibnamedelimd\mkbibnameaffix{#4}\isdot}% +% \ifblank{#2#3}{}{\addcomma}%%commented + \ifblank{#2}{}{\bibnamedelimd\mkbibnamefirst{#2}\isdot}% + \ifblank{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}}} + +%no number in ouput of bibliography +\renewbibmacro*{volume+number+eid}{% + \printfield{volume}% +% \setunit*{\adddot}% +% \printfield{number}% + \setunit{\addcomma\space}% + \printfield{eid}} + +%Order year;volume:page +\renewbibmacro*{issue+date}{% + \printtext{% + \iffieldundef{issue} + {\usebibmacro{date}} + {\printfield{issue}% + \setunit*{\addspace}% + \usebibmacro{date}}}% + \newunit} + +\renewbibmacro*{journal+issuetitle}{% + \usebibmacro{journal}% + \setunit*{\addspace}% + \usebibmacro{issue+date}% + \setunit*{\addsemicolon} + \iffieldundef{series} + {} + {\newunit + \printfield{series}% + \setunit{\addspace}}% + \usebibmacro{volume+number+eid}% + \setunit{\addspace}% + \setunit{\addcomma\space}% + \usebibmacro{issue}% + \newunit} + +\endinput |