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 | |
parent | 2898d79db8fd35f3151ead38d075c66507556f8e (diff) |
new biblatex package biblatex-nejm (1sep11)
git-svn-id: svn://tug.org/texlive/trunk@23780 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-nejm/Makefile | 15 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-nejm/README | 14 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.pdf | bin | 0 -> 151965 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.tex | 239 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-nejm/nejm.bbx | 97 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-nejm/nejm.cbx | 21 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 2 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/biblatex-nejm.tlpsrc | 0 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc | 1 |
9 files changed, 388 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/biblatex-nejm/Makefile b/Master/texmf-dist/doc/latex/biblatex-nejm/Makefile new file mode 100644 index 00000000000..3aef6519b53 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-nejm/Makefile @@ -0,0 +1,15 @@ +# 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 new file mode 100644 index 00000000000..5718428f757 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-nejm/README @@ -0,0 +1,14 @@ +%%$Id: nejm.bbx 9 2011-08-31 11:15:54Z marco $ + +README biblatex-nejm + +This package provides only a formated numeric style of the package +biblatex. The design based on the New England Journal of Medicine (NEJM). + +-------------------------------- +v.02 +- fixes bug + +-------------------------------- +v.01 +- submitted style diff --git a/Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.pdf b/Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.pdf Binary files differnew file mode 100644 index 00000000000..3c2d3daafbe --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.pdf diff --git a/Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.tex b/Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.tex new file mode 100644 index 00000000000..8f7e5df0b58 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.tex @@ -0,0 +1,239 @@ +%%$Id: biblatex-nejm.tex 19 2011-09-01 11:15:52Z marco $ +%%$Rev: 19 $ +%%$Author: marco $ +%%$Date: 2011-09-01 13:15:52 +0200 (Do, 01. Sep 2011) $ +\def\biblatexnejmversiontex{v0.2} +\def\biblatexnejmpackagenametex{biblatex-nejm.tex} +\def\biblatexnejmsvntex$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space } + + + +\documentclass[english]{ltxdockit}[2011/03/25] +\usepackage{btxdockit} +\usepackage[utf8]{inputenc} +\usepackage[english]{babel} +\usepackage[strict]{csquotes} + +\usepackage{tabularx} +\usepackage{longtable} +\usepackage{booktabs} +\usepackage[style=nejm,backend=biber]{biblatex} +\addbibresource{\jobname} + +\newcommand*{\biber}{Biber\xspace} +\newcommand*{\biblatex}{Biblatex\xspace} +\newcommand*{\biblatexnejm}{biblatex-nejm\xspace} +\newcommand*{\biblatexctan}{http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex/} + +\titlepage{% + title={The \sty{biblatex-nejm} Package}, + subtitle={Modification of \biblatex for New England Journal of Medicine (NEJM)}, + url={\biblatexctan}, + 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 $}} + +\hypersetup{% + citecolor=red, + pdftitle={The \biblatex-NEJM Package}, + pdfsubject={Modification of \biblatex for New England Journal of Medicine (NEJM)}, + pdfauthor={Marco Daniel}, + pdfkeywords={tex, latex, bibtex, bibliography, references, citation, NEJM}} + +% tables + +\newcolumntype{H}{>{\sffamily\bfseries\spotcolor}l} +\newcolumntype{L}{>{\raggedright\let\\=\tabularnewline}p} +\newcolumntype{R}{>{\raggedleft\let\\=\tabularnewline}p} +\newcolumntype{V}{>{\raggedright\let\\=\tabularnewline\ttfamily}p} + +\newcommand*{\sorttablesetup}{% + \tablesetup + \ttfamily + \def\new{\makebox[1.25em][r]{\ensuremath\rightarrow}\,}% + \def\alt{\par\makebox[1.25em][r]{\ensuremath\hookrightarrow}\,}% + \def\note##1{\textrm{##1}}} + +% markup and misc + +\setcounter{secnumdepth}{4} + + +\newrobustcmd*{\Deprecated}{% + \textcolor{spot}{\margnotefont Deprecated}} +\newrobustcmd*{\DeprecatedMark}{% + \leavevmode\marginpar{\Deprecated}} +\newrobustcmd*{\BiberOnly}{% + \textcolor{spot}{\margnotefont Biber only}} +\newrobustcmd*{\BiberOnlyMark}{% + \leavevmode\marginpar{\BiberOnly}} +\newrobustcmd*{\BibTeXOnly}{% + \textcolor{spot}{\margnotefont BibTeX only}} +\newrobustcmd*{\BibTeXOnlyMark}{% + \leavevmode\marginpar{\BibTeXOnly}} + +\hyphenation{% + star-red + bib-lio-gra-phy + white-space +} + +\begin{document} + +\printtitlepage +\tableofcontents + + +\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. + +\subsection[About]{About \sty{biblatex}} +\label{int:abt} + +This package was tested with \biblatex verson 1.6. + + +\subsection{License} +Copyright \textcopyright\ 2011 Marco Daniel. Permission is granted to copy, distribute and\slash or modify this software under the terms of the \lppl, version 1.3.\fnurl{http://www.ctan.org/tex-archive/macros/latex/base/lppl.txt} This package is author"=maintained. + +\subsection{Feedback} +\label{int:feb} + +You can wrote me an \href{mailto:marco.daniel@mada-nada.de}{e-mail} or ask a question on \href{http://tex.stackexchange.com}{Stack Exchange}. + +In both cases it is very important that you provide a \href{http://www.minimalbeispiel.de/mini-en.html}{minimal working example}. + +\section{Installation} +\label{inst} + +The package is avaidable on \href{http://www.ctan.org}{CTAN}. It will be installed by you package manager (\href{http://www.tug.org/texlive}{TeX Live} or \href{http://www.miktex.org}{MikTeX}). + +If you don't want to use the package manager you can install the files directly in the search path of your distribution or in you working folder. + +\section[Guidelines for NEJM]{Guidelines for New England Journal of Medicine} +\label{guidlines} +The motivation is the question on \href{http://tex.stackexchange.com/questions/26891/biblatex-style-file-for-new-england-journal-of-medicine-nejm/26894#26894}{Stack Exchange}. \href{http://www.nejm.org/page/author-center/manuscript-submission}{The guidelines are written at the page of NEJM itself}. + +The guidlines are listed below: +\begin{quote} +References must be double-spaced and numbered consecutively as they are cited. References first cited in a table or figure legend should be numbered so that they will be in sequence with references cited in the text at the point where the table or figure is first mentioned. List all authors when there are six or fewer; when there are seven or more, list the first three, followed by \glqq et al.\grqq\ The following are sample references: +\begin{enumerate} + \item Shapiro AMJ, Lakey JRT, Ryan EA, et al. Islet transplantation in seven patients with type 1 + diabetes mellitus using a glucocorticoid-free immunosuppressive regimen. N Engl J Med + 2000;343:230-8. + \item Goadsby PJ. Pathophysiology of headache. In: Silberstein SD, Lipton RB, Dalessio DJ, eds. + Wolff's headache and other head pain. 7th ed. Oxford, England: Oxford University Press, + 2001:57-72. + \item Kuczmarski RJ, Ogden CL, Grammer-Strawn LM, et al. CDC growth charts: United States. Advance + data from vital and health statistics. No. 314. Hyattsville, Md.: National Center for Health + Statistics, 2000. (DHHS publication no. (PHS) 2000-1250 0-0431.) + \item U.S. positions on selected issues at the third negotiating session of the Framework Convention + on Tobacco Control. Washington, D.C.: Committee on Government Reform, 2002. (Accessed March + 4, 2002, at \url{http://www.house.gov/reform/min/inves_tobacco/index_accord.htm.}) +\end{enumerate} +Numbered references to personal communications, unpublished data, or manuscripts either \glqq in preparation\grqq\ or \glqq submitted for publication\grqq are unacceptable. If essential, such material can be incorporated at the appropriate place in the text. +\end{quote} +Based on these examples the \file{bib} file will be created. + +\section{Usage} +\label{usage} +The package consists of the files \file{nejm.cbx}, \file{nejm.bbx}, \file{biblatex-nejm.tex} and \file{biblatex-nejm.pdf}. + +You can use the following code in your header. +\begin{lstlisting}[style=latex]{} +\usepackage[style=nejm]{biblatex} +\end{lstlisting} +\subsection{Used options} +The following options will be set by the package +\begin{itemize} + \item \kvopt{minnames}{3} + \item \kvopt{maxnames}{6} + \item \kvopt{terseinits}{true} + \item \kvopt{firstinits}{true} +\end{itemize} +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{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]{} +%% Examples for biblatex-nejm +@ARTICLE{Shapiro2000, + author = "A.M. James Shapiro and Jonathan R.T. Lakey and + Edmond A. Ryan and Gregory S. Korbutt and Ellen Toth and + Garth L. Warnock and Norman M. Kneteman and Ray V. Rajotte", + title = "Islet transplantation in seven patients with type 1 diabetes + mellitus using a glucocorticoid-free immunosuppressive regimen", + journal = "N Engl J Med", + year = "2000", + number = "2", + volume = "343", + pages = "230-8" +} + +@ARTICLE{Goadsby2001, + author = "Peter J. Goadsby", + title = "Pathophysiology of headache", + journaltitle = "Silberstein SD, Lipton RB, D'Alessio DJ, eds", + journalsubtitle="Wolff's Headache and Other Head Pain", + location = " {Oxford, England}", + publisher= "Oxford University Press", + edition = "7", + year = "2001", + pages = "57-72" +} + +@ONLINE{usposition2002, + title = "U.S. positions on selected issues at the third negotiating + session of the Framework Convention on Tobacco Control", + location = " {Washington, D.C.}", + publisher= "Committee on Government Reform", + year = "2002", + addendum = "(Accessed March 4, 2002, + \url{http://www.house.gov/reform/min/inves_tobacco/index_accord.htm})" +} + +@ARTICLE{Kuczmarski2000, + author = "Cynthia L. Ogden and Robert J. Kuczmarski and Katherine M. Flegal + and Zuguo Mei, MD and Shumei Guo and Rong Wei and + Laurence M. Grummer-Strawn and Lester R. Curtin and + Alex F. Roche and Clifford L. Johnson", + title = "CDC growth charts: United States. Advance data from + vital and health statistics. No. 314", + journaltitle = "National Center for Health Statistics", + location = " {Hyattsville, Md} ", + year = "2000", + addendum = "(DHHS publication no. (PHS) 2000-1250 0-0431)" +} +\end{lstlisting} +\clearpage +\subsection{Result of cite-commands} +In the following table I present the standard cite-command with their output. The list of avaidable cite-commands is much bigger. For more details see the documentation of \href{\biblatexctan}{\biblatex} + +\begin{table}[!ht] +\tablesetup +\renewcommand*\arraystretch{1.25} +\begin{tabularx}{\textwidth}{@{}>{\ttfamily}p{100pt}XXX@{}} +\toprule +\multicolumn{1}{@{}H}{\texttt{key}} & +\multicolumn{1}{@{}H}{\texttt{\textbackslash cite}} & +\multicolumn{1}{@{}H}{\texttt{\textbackslash parencite}}& +\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}\\ +\bottomrule +\end{tabularx} +\caption{Output for diffenrent cite-commands} +\label{use:cite} +\end{table} +\subsection{Result of the bibliography} + +\printbibliography +\end{document} 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 diff --git a/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.cbx b/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.cbx new file mode 100644 index 00000000000..3e2bb325c50 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-nejm/nejm.cbx @@ -0,0 +1,21 @@ +%copyright Marco Daniel +%%$Id: nejm.cbx 19 2011-09-01 11:15:52Z marco $ +%%$Rev: 19 $ +%%$Author: marco $ +%%$Date: 2011-09-01 13:15:52 +0200 (Do, 01. Sep 2011) $ +\def\biblatexnejmversioncbx{v0.2} +\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] + +\RequireCitationStyle{numeric} + +%cite without brackets +\DeclareCiteCommand{\cite}%[\mkbibbrackets] + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\endinput diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index edb51e14edb..860d3b4b072 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -55,7 +55,7 @@ my @TLP_working = qw( bib-fr bibarts biber bibhtml biblatex biblatex-apa biblatex-chem biblatex-chicago biblatex-dw biblatex-historian biblatex-ieee biblatex-juradiss - biblatex-mla biblatex-nature + biblatex-mla biblatex-nature biblatex-nejm biblatex-philosophy biblatex-science bibleref bibleref-french bibleref-german bibleref-parse biblist bibtex bibtopic diff --git a/Master/tlpkg/tlpsrc/biblatex-nejm.tlpsrc b/Master/tlpkg/tlpsrc/biblatex-nejm.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/biblatex-nejm.tlpsrc diff --git a/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc index db1416db55e..d45e62fb120 100644 --- a/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc @@ -21,6 +21,7 @@ depend biblatex-ieee depend biblatex-juradiss depend biblatex-mla depend biblatex-nature +depend biblatex-nejm depend biblatex-philosophy depend biblatex-science depend biblist |