summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/biblatex-contrib/biblatex-nejm
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/biblatex-contrib/biblatex-nejm
Initial commit
Diffstat (limited to 'macros/latex/contrib/biblatex-contrib/biblatex-nejm')
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-nejm/Makefile23
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-nejm/README33
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-nejm/biblatex-nejm.pdfbin0 -> 151990 bytes
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-nejm/biblatex-nejm.tex266
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-nejm/nejm.bbx142
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-nejm/nejm.cbx23
6 files changed, 487 insertions, 0 deletions
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-nejm/Makefile b/macros/latex/contrib/biblatex-contrib/biblatex-nejm/Makefile
new file mode 100644
index 0000000000..52136e14b2
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-nejm/Makefile
@@ -0,0 +1,23 @@
+# Makefile for biblatex-nejm.tex
+# $Id: Makefile 22 2011-09-06 18:48:21Z marco $
+PACKAGE = biblatex-nejm
+PDFLATEX = pdflatex
+BACKEND = biber
+
+all: pdf clean
+
+pdf: $(PACKAGE).tex
+ $(PDFLATEX) $(PACKAGE).tex
+ $(BACKEND) $(PACKAGE)
+ $(PDFLATEX) $(PACKAGE).tex
+ $(PDFLATEX) $(PACKAGE).tex
+clean:
+ rm -f *.aux
+ rm -f *.bbl
+ rm -f *.bcf
+ rm -f *.blg
+ rm -f *.log
+ rm -f *.out
+ rm -f *.run.xml
+ rm -f *.toc
+
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-nejm/README b/macros/latex/contrib/biblatex-contrib/biblatex-nejm/README
new file mode 100644
index 0000000000..1ff30d59c7
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-nejm/README
@@ -0,0 +1,33 @@
+%%$Id: nejm.bbx 30 2018-07-28 11:01:00Z 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).
+
+--------------------------------
+version 0.5.0
+- compatibility with newer biblatex releases
+- bug fixes
+
+--------------------------------
+version 0.4.0
+- changed formating of date -- only year is printed
+- added option printlang
+
+--------------------------------
+version 0.3.0
+- 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
+
+--------------------------------
+version 0.2.0
+- fixes bug
+
+--------------------------------
+version 0.1.0
+- submitted style
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-nejm/biblatex-nejm.pdf b/macros/latex/contrib/biblatex-contrib/biblatex-nejm/biblatex-nejm.pdf
new file mode 100644
index 0000000000..a1438547b5
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-nejm/biblatex-nejm.pdf
Binary files differ
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-nejm/biblatex-nejm.tex b/macros/latex/contrib/biblatex-contrib/biblatex-nejm/biblatex-nejm.tex
new file mode 100644
index 0000000000..898c5ae7f3
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-nejm/biblatex-nejm.tex
@@ -0,0 +1,266 @@
+%%$Id: biblatex-nejm.tex 28 2011-09-09 17:17:01Z marco $
+%%$Rev: 28 $
+%%$Author: marco $
+%%$Date: 2011-09-09 19:17:01 +0200 (Fr, 09. Sep 2011) $
+\def\biblatexnejmversiontex{v0.5}
+\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{multicol}
+\usepackage{tabularx}
+\usepackage{longtable}
+\usepackage{booktabs}
+\usepackage[style=nejm,backend=biber]{biblatex}
+\addbibresource{\jobname}
+
+\usepackage{hyperref}
+
+\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={},
+ revision={\biblatexnejmversiontex},
+ date={\biblatexnejmsvnbbx$Id: biblatex-nejm.tex 28 2011-09-09 17:17:01Z 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
+
+\vspace*{25px}
+
+Please submit all feedback, issues, and pull requests to the official repository: \url{https://github.com/marcodaniel/biblatex-nejm}
+
+\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 some new feature. If you want to use additional feature you can use the options and commands of the package \biblatex itself.
+
+Please submit all feedback, issues, and pull requests to the official repository: \url{https://github.com/marcodaniel/biblatex-nejm}
+
+\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}
+
+Please submit all feedback, issues, and pull requests to the official repository: \url{https://github.com/marcodaniel/biblatex-nejm}
+
+\section{Installation}
+\label{inst}
+
+The package is available 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
+
+\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}
+
+Print the \bibfield{doi} also for type \prm{article}
+
+\boolitem[false]{articlein}
+
+Print the \bibfield{\cmd{bibstring}\{in\}} also for type \prm{article}
+
+\boolitem[false]{printlang}
+
+Print the \bibfield{language}
+
+\end{optionlist}
+
+\subsection{Bibliography 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]
+\begin{tabular}{lllll}
+\hline
+\texttt{key} & \texttt{\textbackslash cite} & \texttt{\textbackslash parencite} & \texttt{\textbackslash supercite} & \texttt{\textbackslash textcite} \\ \hline
+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} \\ \hline
+\end{tabular}
+\caption{Output for different cite-commands}
+\label{use:cite}
+\end{table}
+
+\subsection{Result of the bibliography}
+
+\printbibliography
+\end{document}
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-nejm/nejm.bbx b/macros/latex/contrib/biblatex-contrib/biblatex-nejm/nejm.bbx
new file mode 100644
index 0000000000..43630319e4
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-nejm/nejm.bbx
@@ -0,0 +1,142 @@
+%% Copyright (C) 2011, 2018 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 30 2018-07-28 11:01:00Z marco $
+%%$Rev: 30 $
+%%$Author: marco $
+%%$Date: 2018-07-28 13:01:00Z +0200 (Sa, 28. Jul 2018) $
+\def\biblatexnejmversionbbx{v0.5}
+\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 30 2018-07-28 11:01:00Z marco $ \biblatexnejmversionbbx: \biblatexnejmpackagenamebbx]
+
+%use numeric.cbx as base
+%Warning if backend isn't biber
+\RequireBiber[2]
+%need style:
+\RequireBibliographyStyle{numeric}
+
+\providetoggle{bbx:articledoi}
+\DeclareBibliographyOption[boolean]{articledoi}[true]{%
+ \settoggle{bbx:articledoi}{#1}}
+
+\providetoggle{bbx:articlein}
+\DeclareBibliographyOption[boolean]{articlein}[true]{%
+ \settoggle{bbx:articlein}{#1}}
+
+\providetoggle{bbx:printlang}
+\DeclareBibliographyOption[boolean]{printlang}[true]{%
+ \settoggle{bbx:printlang}{#1}}
+
+%set options to biblatex
+\ExecuteBibliographyOptions
+ {
+ isbn = false ,
+ labelnumber = true ,
+ minnames = 3 ,
+ maxnames = 6 ,
+ giveninits = true ,
+ terseinits = true ,
+ sorting = none ,
+ date = year ,
+ articledoi = false,
+ articlein = false,
+ printlang = false,
+ }
+
+
+\AtBeginDocument{%
+ \iftoggle{bbx:printlang}
+ {}
+ {\DeclareStyleSourcemap{
+ \maps[datatype=bibtex]{
+ \map{
+ \step[fieldset=language, null]
+ }
+ }
+ }}%
+}
+
+%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}{\mkcomprange{#1}}
+%not formated journaltitle
+\DeclareFieldFormat*{journaltitle}{#1}
+%not formated title
+\DeclareFieldFormat*{title}{#1}
+
+
+%Set name format
+\DeclareNameAlias{default}{family-given}
+\DeclareNameAlias{sortname}{family-given}
+
+%remove comma between family name and given name
+\renewcommand*{\revsdnamepunct}{}
+
+%option articledoi -- no doi / eprint / url in article
+\letbibmacro{doi+eprint+url-use}{doi+eprint+url}
+
+\renewbibmacro*{doi+eprint+url}{%
+ \ifboolexpr{test {\ifentrytype{article}} and not togl {bbx:articledoi}}
+ {}
+ {\usebibmacro{doi+eprint+url-use}}%
+}
+
+%no bibstring in in article:
+\renewbibmacro*{in:}{%
+ \ifboolexpr{test {\ifentrytype{article}} and not togl {bbx:articlein}}
+ {}
+ {\printtext{\bibstring{in}\intitlepunct}}%
+}
+
+%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}{%
+ \printfield{issue}%
+ \setunit*{\addspace}%
+ \usebibmacro{date}%
+ \newunit}
+
+\renewbibmacro*{journal+issuetitle}{%
+ \usebibmacro{journal}%
+ \iffieldundef{series}
+ {}
+ {\newunit
+ \printfield{series}}%
+ \setunit*{\addspace}%
+ \usebibmacro{issue+date}%
+ \setunit*{\addsemicolon}
+ \usebibmacro{volume+number+eid}%
+ \setunit{\addcomma\space}%
+ \usebibmacro{issue}%
+ \newunit}
+
+\endinput
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-nejm/nejm.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-nejm/nejm.cbx
new file mode 100644
index 0000000000..9b275b455e
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-nejm/nejm.cbx
@@ -0,0 +1,23 @@
+%copyright Marco Daniel
+%%$Id: nejm.bbx 30 2018-07-28 11:01:00Z marco $
+%%$Rev: 30 $
+%%$Author: marco $
+%%$Date: 2018-07-28 13:01:00Z +0200 (Sa, 28. Jul 2018) $
+\def\biblatexnejmversionbbx{v0.5}
+\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 30 2018-07-28 11:01:00Z marco $ \biblatexnejmversionbbx: \biblatexnejmpackagenamebbx]
+
+\RequireCitationStyle{numeric-comp}
+
+%cite without brackets
+\DeclareCiteCommand{\cite}%[\mkbibbrackets]
+ {\usebibmacro{cite:init}%
+ \usebibmacro{prenote}}
+ {\usebibmacro{citeindex}%
+ \usebibmacro{cite:comp}}
+ {}
+ {\usebibmacro{cite:dump}%
+ \usebibmacro{postnote}}
+
+\endinput