Debian Codegraph @

texmf-dist/doc/latex/biblatex-nejm/biblatex-nejm.tex

raw
1 %%$Id: biblatex-nejm.tex 28 2011-09-09 17:17:01Z marco $
2 %%$Rev: 28 $
3 %%$Author: marco $
4 %%$Date: 2011-09-09 19:17:01 +0200 (Fr, 09. Sep 2011) $
5 \def\biblatexnejmversiontex{v0.5}
6 \def\biblatexnejmpackagenametex{biblatex-nejm.tex}
7 \def\biblatexnejmsvntex$#1: #2 #3 #4-#5-#6 #7 #8${#4/#5/#6\space }
8
9
10
11 \documentclass[english]{ltxdockit}[2011/03/25]
12 \usepackage{btxdockit}
13 \usepackage[utf8]{inputenc}
14 \usepackage[english]{babel}
15 \usepackage[strict]{csquotes}
16
17 \usepackage{multicol}
18 \usepackage{tabularx}
19 \usepackage{longtable}
20 \usepackage{booktabs}
21 \usepackage[style=nejm,backend=biber]{biblatex}
22 \addbibresource{\jobname}
23
24 \usepackage{hyperref}
25
26 \newcommand*{\biber}{Biber\xspace}
27 \newcommand*{\biblatex}{Biblatex\xspace}
28 \newcommand*{\biblatexnejm}{biblatex-nejm\xspace}
29 \newcommand*{\biblatexctan}{http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex/}
30
31 \titlepage{%
32 title={The \sty{biblatex-nejm} Package},
33 subtitle={Modification of \biblatex for New England Journal of Medicine (NEJM)},
34 url={\biblatexctan},
35 author={Marco Daniel},
36 email={},
37 revision={\biblatexnejmversiontex},
38 date={\biblatexnejmsvnbbx$Id: biblatex-nejm.tex 28 2011-09-09 17:17:01Z marco $}}
39
40 \hypersetup{%
41 citecolor=red,
42 pdftitle={The \biblatex-NEJM Package},
43 pdfsubject={Modification of \biblatex for New England Journal of Medicine (NEJM)},
44 pdfauthor={Marco Daniel},
45 pdfkeywords={tex, latex, bibtex, bibliography, references, citation, NEJM}}
46
47 % tables
48
49 \newcolumntype{H}{>{\sffamily\bfseries\spotcolor}l}
50 \newcolumntype{L}{>{\raggedright\let\\=\tabularnewline}p}
51 \newcolumntype{R}{>{\raggedleft\let\\=\tabularnewline}p}
52 \newcolumntype{V}{>{\raggedright\let\\=\tabularnewline\ttfamily}p}
53
54 \newcommand*{\sorttablesetup}{%
55 \tablesetup
56 \ttfamily
57 \def\new{\makebox[1.25em][r]{\ensuremath\rightarrow}\,}%
58 \def\alt{\par\makebox[1.25em][r]{\ensuremath\hookrightarrow}\,}%
59 \def\note##1{\textrm{##1}}}
60
61 % markup and misc
62
63 \setcounter{secnumdepth}{4}
64
65
66 \newrobustcmd*{\Deprecated}{%
67 \textcolor{spot}{\margnotefont Deprecated}}
68 \newrobustcmd*{\DeprecatedMark}{%
69 \leavevmode\marginpar{\Deprecated}}
70 \newrobustcmd*{\BiberOnly}{%
71 \textcolor{spot}{\margnotefont Biber only}}
72 \newrobustcmd*{\BiberOnlyMark}{%
73 \leavevmode\marginpar{\BiberOnly}}
74 \newrobustcmd*{\BibTeXOnly}{%
75 \textcolor{spot}{\margnotefont BibTeX only}}
76 \newrobustcmd*{\BibTeXOnlyMark}{%
77 \leavevmode\marginpar{\BibTeXOnly}}
78
79 \hyphenation{%
80 star-red
81 bib-lio-gra-phy
82 white-space
83 }
84
85 \begin{document}
86
87 \printtitlepage
88
89 \vspace*{25px}
90
91 Please submit all feedback, issues, and pull requests to the official repository: \url{https://github.com/marcodaniel/biblatex-nejm}
92
93 \tableofcontents
94
95
96 \section{Introduction}
97 \label{int}
98
99 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.
100
101 Please submit all feedback, issues, and pull requests to the official repository: \url{https://github.com/marcodaniel/biblatex-nejm}
102
103 \subsection[About]{About \sty{biblatex}}
104 \label{int:abt}
105
106 This package was tested with \biblatex verson 1.6.
107
108
109 \subsection{License}
110 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.
111
112 \subsection{Feedback}
113 \label{int:feb}
114
115 Please submit all feedback, issues, and pull requests to the official repository: \url{https://github.com/marcodaniel/biblatex-nejm}
116
117 \section{Installation}
118 \label{inst}
119
120 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}).
121
122 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.
123
124 \section[Guidelines for NEJM]{Guidelines for New England Journal of Medicine}
125 \label{guidlines}
126 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}.
127
128 The guidlines are listed below:
129 \begin{quote}
130 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:
131 \begin{enumerate}
132 \item Shapiro AMJ, Lakey JRT, Ryan EA, et al. Islet transplantation in seven patients with type 1
133 diabetes mellitus using a glucocorticoid-free immunosuppressive regimen. N Engl J Med
134 2000;343:230-8.
135 \item Goadsby PJ. Pathophysiology of headache. In: Silberstein SD, Lipton RB, Dalessio DJ, eds.
136 Wolff's headache and other head pain. 7th ed. Oxford, England: Oxford University Press,
137 2001:57-72.
138 \item Kuczmarski RJ, Ogden CL, Grammer-Strawn LM, et al. CDC growth charts: United States. Advance
139 data from vital and health statistics. No. 314. Hyattsville, Md.: National Center for Health
140 Statistics, 2000. (DHHS publication no. (PHS) 2000-1250 0-0431.)
141 \item U.S. positions on selected issues at the third negotiating session of the Framework Convention
142 on Tobacco Control. Washington, D.C.: Committee on Government Reform, 2002. (Accessed March
143 4, 2002, at \url{http://www.house.gov/reform/min/inves_tobacco/index_accord.htm.})
144 \end{enumerate}
145 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.
146 \end{quote}
147 Based on these examples the \file{bib} file will be created.
148
149 \section{Usage}
150 \label{usage}
151 The package consists of the files \file{nejm.cbx}, \file{nejm.bbx}, \file{biblatex-nejm.tex} and \file{biblatex-nejm.pdf}.
152
153 You can use the following code in your header.
154 \begin{lstlisting}[style=latex]{}
155 \usepackage[style=nejm]{biblatex}
156 \end{lstlisting}
157 \subsection{Used options}
158 The following options will be set by the package
159
160 \kern\baselineskip
161 \begin{multicols}{2}
162 \begin{itemize}
163 \item \kvopt{minnames}{3}
164 \item \kvopt{maxnames}{6}
165 \item \kvopt{terseinits}{true}
166 \item \kvopt{firstinits}{true}
167 \item \kvopt{isbn}{false}
168 \item \kvopt{labelnumber}{true}
169 \item \kvopt{sorting}{false}
170 \end{itemize}
171 \end{multicols}
172
173 \kern\baselineskip
174 You should also use the option \kvopt{backend}{biber}. Some settings doesn't work with \bibtex.
175
176 \BiberOnlyMark For example the package redefine the command \cmd{bibinitperiod} which only works with \biber.
177
178 \subsection{New options}
179 \begin{optionlist}
180 \boolitem[false]{articledoi}
181
182 Print the \bibfield{doi} also for type \prm{article}
183
184 \boolitem[false]{articlein}
185
186 Print the \bibfield{\cmd{bibstring}\{in\}} also for type \prm{article}
187
188 \boolitem[false]{printlang}
189
190 Print the \bibfield{language}
191
192 \end{optionlist}
193
194 \subsection{Bibliography Entries}
195 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.
196 \begin{lstlisting}[style=bibtex]{}
197 %% Examples for biblatex-nejm
198 @ARTICLE{Shapiro2000,
199 author = "A.M. James Shapiro and Jonathan R.T. Lakey and
200 Edmond A. Ryan and Gregory S. Korbutt and Ellen Toth and
201 Garth L. Warnock and Norman M. Kneteman and Ray V. Rajotte",
202 title = "Islet transplantation in seven patients with type 1 diabetes
203 mellitus using a glucocorticoid-free immunosuppressive regimen",
204 journal = "N Engl J Med",
205 year = "2000",
206 number = "2",
207 volume = "343",
208 pages = "230-8"
209 }
210
211 @ARTICLE{Goadsby2001,
212 author = "Peter J. Goadsby",
213 title = "Pathophysiology of headache",
214 journaltitle = "Silberstein SD, Lipton RB, D'Alessio DJ, eds",
215 journalsubtitle="Wolff's Headache and Other Head Pain",
216 location = " {Oxford, England}",
217 publisher= "Oxford University Press",
218 edition = "7",
219 year = "2001",
220 pages = "57-72"
221 }
222
223 @ONLINE{usposition2002,
224 title = "U.S. positions on selected issues at the third negotiating
225 session of the Framework Convention on Tobacco Control",
226 location = " {Washington, D.C.}",
227 publisher= "Committee on Government Reform",
228 year = "2002",
229 addendum = "(Accessed March 4, 2002,
230 \url{http://www.house.gov/reform/min/inves_tobacco/index_accord.htm})"
231 }
232
233 @ARTICLE{Kuczmarski2000,
234 author = "Cynthia L. Ogden and Robert J. Kuczmarski and Katherine M. Flegal
235 and Zuguo Mei, MD and Shumei Guo and Rong Wei and
236 Laurence M. Grummer-Strawn and Lester R. Curtin and
237 Alex F. Roche and Clifford L. Johnson",
238 title = "CDC growth charts: United States. Advance data from
239 vital and health statistics. No. 314",
240 journaltitle = "National Center for Health Statistics",
241 location = " {Hyattsville, Md} ",
242 year = "2000",
243 addendum = "(DHHS publication no. (PHS) 2000-1250 0-0431)"
244 }
245 \end{lstlisting}
246 \clearpage
247 \subsection{Result of cite-commands}
248 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}
249
250 \begin{table}[!ht]
251 \begin{tabular}{lllll}
252 \hline
253 \texttt{key} & \texttt{\textbackslash cite} & \texttt{\textbackslash parencite} & \texttt{\textbackslash supercite} & \texttt{\textbackslash textcite} \\ \hline
254 Kuczmarski2000 & \cite{Kuczmarski2000} & \parencite{Kuczmarski2000} & \supercite{Kuczmarski2000} & \textcite{Kuczmarski2000} \\
255 usposition2002 & \cite{usposition2002} & \parencite{usposition2002} & \supercite{usposition2002} & \textcite{usposition2002} \\
256 Goadsby2001 & \cite{Goadsby2001} & \parencite{Goadsby2001} & \supercite{Goadsby2001} & \textcite{Goadsby2001} \\
257 Shapiro2000 & \cite{Shapiro2000} & \parencite{Shapiro2000} & \supercite{Shapiro2000} & \textcite{Shapiro2000} \\ \hline
258 \end{tabular}
259 \caption{Output for different cite-commands}
260 \label{use:cite}
261 \end{table}
262
263 \subsection{Result of the bibliography}
264
265 \printbibliography
266 \end{document}