summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-09-07 23:26:47 +0000
committerKarl Berry <karl@freefriends.org>2011-09-07 23:26:47 +0000
commit063ecd96e1e2da7bb615c89f3ec27fa0c99400d7 (patch)
treefc7a072c89ec62e6d00176034353d34947507ed4
parent5508320ba1a6332a67f2e5d2840c6eba080715b8 (diff)
biblatex-nejm (7sep11)
git-svn-id: svn://tug.org/texlive/trunk@23856 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/biblatex-nejm/Makefile15
-rw-r--r--Master/texmf-dist/doc/latex/biblatex-nejm/README9
-rw-r--r--Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.pdfbin151965 -> 155822 bytes
-rw-r--r--Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.tex51
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-nejm/nejm.bbx133
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-nejm/nejm.cbx24
6 files changed, 186 insertions, 46 deletions
diff --git a/Master/texmf-dist/doc/latex/biblatex-nejm/Makefile b/Master/texmf-dist/doc/latex/biblatex-nejm/Makefile
deleted file mode 100644
index 3aef6519b53..00000000000
--- a/Master/texmf-dist/doc/latex/biblatex-nejm/Makefile
+++ /dev/null
@@ -1,15 +0,0 @@
-# Makefile for biblatex-nejm.tex
-# $Id: Makefile 16 2011-08-31 13:28:39Z marco $
-PACKAGE = biblatex-nejm
-PDFLATEX = pdflatex
-BACKEND = biber
-
-pdf: $(PACKAGE).tex
- $(PDFLATEX) $(PACKAGE).tex
- $(BACKEND) $(PACKAGE)
- $(PDFLATEX) $(PACKAGE).tex
- $(PDFLATEX) $(PACKAGE).tex
-clean:
- find -type f ! -iname "*.tex" ! -iname "*.pdf" ! -iname "*.cbx" ! -iname "*.bbx" ! -iname "README" ! -iname "Makefile" -exec rm '{}' +
-
-all: pdf clean
diff --git a/Master/texmf-dist/doc/latex/biblatex-nejm/README b/Master/texmf-dist/doc/latex/biblatex-nejm/README
index 5718428f757..1e5e76961c7 100644
--- a/Master/texmf-dist/doc/latex/biblatex-nejm/README
+++ b/Master/texmf-dist/doc/latex/biblatex-nejm/README
@@ -6,6 +6,15 @@ This package provides only a formated numeric style of the package
biblatex. The design based on the New England Journal of Medicine (NEJM).
--------------------------------
+v.03
+- changed required cite style of biblatex to numeric-comp
+- changed required bibliography style of biblatex to standard
+- added option sorting=none as standard
+- added new option articledoi (true or false) to print the doi of type article (default=false)
+- added new option articlein (true or false) to print "in" of type article (default=false)
+- execute option isbn=false
+
+--------------------------------
v.02
- fixes bug
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 3c2d3daafbe..8c9d1d620fe 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 8f7e5df0b58..d6ce80f1d5d 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 19 2011-09-01 11:15:52Z marco $
-%%$Rev: 19 $
+%%$Id: biblatex-nejm.tex 25 2011-09-07 11:23:41Z marco $
+%%$Rev: 25 $
%%$Author: marco $
-%%$Date: 2011-09-01 13:15:52 +0200 (Do, 01. Sep 2011) $
-\def\biblatexnejmversiontex{v0.2}
+%%$Date: 2011-09-07 13:23:41 +0200 (Mi, 07. Sep 2011) $
+\def\biblatexnejmversiontex{v0.3}
\def\biblatexnejmpackagenametex{biblatex-nejm.tex}
\def\biblatexnejmsvntex$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space }
@@ -14,6 +14,7 @@
\usepackage[english]{babel}
\usepackage[strict]{csquotes}
+\usepackage{multicol}
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{booktabs}
@@ -32,7 +33,7 @@
author={Marco Daniel},
email={marco.daniel@mada-nada.de},
revision={\biblatexnejmversiontex},
- date={\biblatexnejmsvnbbx$Id: biblatex-nejm.tex 19 2011-09-01 11:15:52Z marco $}}
+ date={\biblatexnejmsvnbbx$Id: biblatex-nejm.tex 25 2011-09-07 11:23:41Z marco $}}
\hypersetup{%
citecolor=red,
@@ -88,7 +89,7 @@
\section{Introduction}
\label{int}
-This package is a contributed \biblatex style. The idea base on a question at \href{http://tex.stackexchange.com/questions/26891/biblatex-style-file-for-new-england-journal-of-medicine-nejm/26894#26894}{Stack Exchange}. The package itself only redefine existing macros and use some of the \biblatex options. This package doesn't provide any new feature. If you want to use additional feature you can use the options and commands of the package \biblatex itself.
+This package is a contributed \biblatex style. The idea base on a question at \href{http://tex.stackexchange.com/questions/26891/biblatex-style-file-for-new-england-journal-of-medicine-nejm/26894#26894}{Stack Exchange}. The package itself only redefine existing macros and use some of the \biblatex options. This package doesn't provide some new feature. If you want to use additional feature you can use the options and commands of the package \biblatex itself.
\subsection[About]{About \sty{biblatex}}
\label{int:abt}
@@ -148,16 +149,37 @@ You can use the following code in your header.
\end{lstlisting}
\subsection{Used options}
The following options will be set by the package
+
+\kern\baselineskip
+\begin{multicols}{2}
\begin{itemize}
\item \kvopt{minnames}{3}
\item \kvopt{maxnames}{6}
\item \kvopt{terseinits}{true}
\item \kvopt{firstinits}{true}
+ \item \kvopt{isbn}{false}
+ \item \kvopt{labelnumber}{true}
+ \item \kvopt{sorting}{false}
\end{itemize}
+\end{multicols}
+
+\kern\baselineskip
You should also use the option \kvopt{backend}{biber}. Some settings doesn't work with \bibtex.
\BiberOnlyMark For example the package redefine the command \cmd{bibinitperiod} which only works with \biber.
+\subsection{New options}
+\begin{optionlist}
+\boolitem[false]{articledoi}
+
+Prints the \bibfield{doi} also for type \prm{article}
+
+\boolitem[false]{articlein}
+
+Prints the \bibfield{\cmd{bibstring}\{in\}} also for type \prm{article}
+
+\end{optionlist}
+
\subsection{Bibliopgraphy Entries}
In relation to \secref{guidlines} the following code represented the examples in the \file{bib} file. The code will be automaticly used as the \file{bib} file.
\begin{lstlisting}[style=bibtex]{}
@@ -217,17 +239,22 @@ In the following table I present the standard cite-command with their output. Th
\begin{table}[!ht]
\tablesetup
\renewcommand*\arraystretch{1.25}
-\begin{tabularx}{\textwidth}{@{}>{\ttfamily}p{100pt}XXX@{}}
+\begin{tabularx}{\textwidth}{@{}>{\ttfamily}p{80pt}*{3}{>{\qquad}c<{\qquad}}X@{}}
\toprule
\multicolumn{1}{@{}H}{\texttt{key}} &
\multicolumn{1}{@{}H}{\texttt{\textbackslash cite}} &
\multicolumn{1}{@{}H}{\texttt{\textbackslash parencite}}&
+\multicolumn{1}{@{}H}{\texttt{\textbackslash supercite}}&
\multicolumn{1}{@{}H}{\texttt{\textbackslash textcite}} \\
-\cmidrule(r){1-1}\cmidrule(r){2-2}\cmidrule(r){3-3}\cmidrule{4-4}
-Kuczmarski2000 & \cite{Kuczmarski2000} & \parencite{Kuczmarski2000} & \textcite{Kuczmarski2000}\\
-usposition2002 & \cite{usposition2002} & \parencite{usposition2002} & \textcite{usposition2002}\\
-Goadsby2001 & \cite{Goadsby2001} & \parencite{Goadsby2001} & \textcite{Goadsby2001}\\
-Shapiro2000 & \cite{Shapiro2000} & \parencite{Shapiro2000} & \textcite{Shapiro2000}\\
+\cmidrule(r){1-1}\cmidrule(r){2-2}\cmidrule(r){3-3}\cmidrule(r){4-4}\cmidrule{5-5}
+Kuczmarski2000 & \cite{Kuczmarski2000} & \parencite{Kuczmarski2000}
+ & \supercite{Kuczmarski2000} & \textcite{Kuczmarski2000}\\
+usposition2002 & \cite{usposition2002} & \parencite{usposition2002}
+ & \supercite{usposition2002} & \textcite{usposition2002}\\
+Goadsby2001 & \cite{Goadsby2001} & \parencite{Goadsby2001}
+ & \supercite{Goadsby2001} & \textcite{Goadsby2001}\\
+Shapiro2000 & \cite{Shapiro2000} & \parencite{Shapiro2000}
+ & \supercite{Shapiro2000} & \textcite{Shapiro2000}\\
\bottomrule
\end{tabularx}
\caption{Output for diffenrent cite-commands}
diff --git a/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.bbx b/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.bbx
index 9e9d5807e41..91e0948680f 100644
--- a/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.bbx
@@ -1,26 +1,106 @@
-%copyright Marco Daniel
-%%$Id: nejm.bbx 20 2011-09-01 11:18:48Z marco $
-%%$Rev: 20 $
+%% Copyright (C) 2011 by Marco Daniel
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3c
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.3c or later is part of all distributions of LaTeX
+%% version 2008/05/04 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Marco Daniel.
+%%
+%% 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 $
%%$Author: marco $
-%%$Date: 2011-09-01 13:18:48 +0200 (Do, 01. Sep 2011) $
-\def\biblatexnejmversionbbx{v0.2}
+%%$Date: 2011-09-07 13:29:51 +0200 (Mi, 07. Sep 2011) $
+\def\biblatexnejmversionbbx{v0.3}
\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]
+\ProvidesFile{nejm.bbx}[\biblatexnejmsvnbbx$Id: nejm.bbx 26 2011-09-07 11:29:51Z marco $ \biblatexnejmversionbbx: \biblatexnejmpackagenamebbx]
%use numeric.cbx as base
-\RequireBibliographyStyle{numeric}
%Warning if backend isn't biber
\RequireBiber[2]
+%need style:
+\RequireBibliographyStyle{standard}
+
%set options to biblatex
\ExecuteBibliographyOptions
{
- minnames = 3 ,
- maxnames = 6 ,
+ isbn = false ,
+ labelnumber = true ,
+ minnames = 3 ,
+ maxnames = 6 ,
firstinits = true ,
terseinits = true ,
+ sorting = none ,
}
+
+%provide original option
+\providebool{bbx:subentry}
+\DeclareBibliographyOption{subentry}[true]{%
+ \setbool{bbx:subentry}{#1}}
+
+\providetoggle{bbx:articledoi}
+\DeclareBibliographyOption{articledoi}[false]{%
+ \settoggle{bbx:articledoi}{#1}}
+
+\providetoggle{bbx:articlein}
+\DeclareBibliographyOption{articlein}[false]{%
+ \settoggle{bbx:articlein}{#1}}
+
+
+
+%Set environment
+\defbibenvironment{bibliography}
+ {\list
+ {\printtext[labelnumberwidth]{%
+ \printfield{prefixnumber}%
+ \printfield{labelnumber}}}
+ {\setlength{\labelwidth}{\labelnumberwidth}%
+ \setlength{\leftmargin}{\labelwidth}%
+ \setlength{\labelsep}{\biblabelsep}%
+ \addtolength{\leftmargin}{\labelsep}%
+ \setlength{\itemsep}{\bibitemsep}%
+ \setlength{\parsep}{\bibparsep}}%
+ \renewcommand*{\makelabel}[1]{\hss##1}}
+ {\endlist}
+ {\item}
+
+\defbibenvironment{shorthands}
+ {\list
+ {\printfield[shorthandwidth]{shorthand}}
+ {\setlength{\labelwidth}{\shorthandwidth}%
+ \setlength{\leftmargin}{\labelwidth}%
+ \setlength{\labelsep}{\biblabelsep}%
+ \addtolength{\leftmargin}{\labelsep}%
+ \setlength{\itemsep}{\bibitemsep}%
+ \setlength{\parsep}{\bibparsep}%
+ \renewcommand*{\makelabel}[1]{\hss##1}}}
+ {\endlist}
+ {\item}
+
+%%
+\DeclareBibliographyDriver{set}{%
+ \entryset
+ {\ifbool{bbx:subentry}
+ {\printfield[bibentrysetcount]{entrysetcount}%
+ \setunit*{\addnbspace}}
+ {}}
+ {}%
+ \newunit\newblock
+ \usebibmacro{setpageref}%
+ \finentry}
+
%remove punctuation and space after initials -- require biber
\renewrobustcmd*{\bibinitperiod}{}
%separator printed before the pages field
@@ -38,6 +118,10 @@
%Set name format
\DeclareNameAlias{default}{last-first}
\DeclareNameAlias{sortname}{last-first}
+%Not needed??
+\DeclareNameAlias{author}{last-first}
+\DeclareNameAlias{editor}{last-first}
+\DeclareNameAlias{translator}{last-first}
%remove comma between familyname and firstname
\renewbibmacro*{name:last-first}[4]{%
@@ -60,6 +144,37 @@
\ifblank{#2}{}{\bibnamedelimd\mkbibnamefirst{#2}\isdot}%
\ifblank{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}}}
+%option articledoi -- no doi / eprint / url in article
+\newbibmacro*{doi+eprint+url-use}{%
+ \iftoggle{bbx:doi}%
+ {\printfield{doi}}%
+ {}%
+ \newunit\newblock
+ \iftoggle{bbx:eprint}%
+ {\usebibmacro{eprint}}%
+ {}%
+ \newunit\newblock
+ \iftoggle{bbx:url}%
+ {\usebibmacro{url+urldate}}%
+ {}%
+}
+
+\renewbibmacro*{doi+eprint+url}{%
+ \ifentrytype{article}%
+ {%
+ \iftoggle{bbx:articledoi}%
+ {\usebibmacro{doi+eprint+url-use}}{}%
+ }{\usebibmacro{doi+eprint+url-use}
+ }%
+}
+
+%no bibstring in in article:
+\newbibmacro*{in:}{%
+\ifentrytype{article}%
+ {\iftoggle{bbx:articlein}{\printtext{\bibstring{in}\intitlepunct}}{}}%
+ {\printtext{\bibstring{in}\intitlepunct}}%
+}
+
%no number in ouput of bibliography
\renewbibmacro*{volume+number+eid}{%
\printfield{volume}%
diff --git a/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.cbx b/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.cbx
index 3e2bb325c50..27f03652caf 100644
--- a/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.cbx
+++ b/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.cbx
@@ -1,21 +1,25 @@
%copyright Marco Daniel
-%%$Id: nejm.cbx 19 2011-09-01 11:15:52Z marco $
-%%$Rev: 19 $
+%%$Id: nejm.cbx 22 2011-09-06 18:48:21Z marco $
+%%$Rev: 22 $
%%$Author: marco $
-%%$Date: 2011-09-01 13:15:52 +0200 (Do, 01. Sep 2011) $
-\def\biblatexnejmversioncbx{v0.2}
+%%$Date: 2011-09-06 20:48:21 +0200 (Di, 06. Sep 2011) $
+\def\biblatexnejmversioncbx{v0.3}
\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 19 2011-09-01 11:15:52Z marco $ \biblatexnejmversioncbx: \biblatexnejmpackagenamecbx]
+\ProvidesFile{nejm.bbx}[\biblatexnejmsvncbx$Id: nejm.cbx 22 2011-09-06 18:48:21Z marco $ \biblatexnejmversioncbx: \biblatexnejmpackagenamecbx]
-\RequireCitationStyle{numeric}
+\RequireCitationStyle{numeric-comp}
%cite without brackets
\DeclareCiteCommand{\cite}%[\mkbibbrackets]
- {\usebibmacro{prenote}}
+ {\usebibmacro{cite:init}%
+ \usebibmacro{prenote}}
{\usebibmacro{citeindex}%
- \usebibmacro{cite}}
- {\multicitedelim}
- {\usebibmacro{postnote}}
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}%
+ \usebibmacro{postnote}}
+
+
\endinput