Debian Codegraph @

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

raw
1 % =====================================================================
2 % biblatex-cse-doc.tex
3 % =====================================================================
4 % User Manual for the biblatex-cse package
5 %
6 % Implements the Council of Science Editors (CSE) Name–Year system
7 % =====================================================================
8 %
9 % Copyright (C) 2024–26 by João Lourenço <[email protected]>
10 %
11 % This file may be distributed and/or modified under the conditions of
12 % the LaTeX Project Public License, either version 1.3c of this license
13 % or (at your option) any later version. The latest version of this
14 % license is in:
15 %
16 % http://www.latex-project.org/lppl.txt
17 %
18 % and version 1.3c or later is part of all distributions of LaTeX
19 % version 2006/05/20 or later.
20
21 \documentclass[11pt]{article}
22
23 \usepackage{tabularx}
24 \usepackage{booktabs}
25
26 % =====================================================================
27 % Load biblatex-cse
28 \usepackage[style=biblatex-cse]{biblatex}
29 % in the preamble, after \usepackage{biblatex}
30 % Keep only master's theses, regardless of encoding
31 \defbibfilter{onlymasters}{%
32 type=thesis and keyword=mastersthesis
33 }
34 \defbibfilter{onlyphd}{%
35 type=thesis and keyword=phdthesis
36 }
37
38 % =====================================================================
39 % Load document packages
40 \usepackage[a4paper,margin=2.5cm]{geometry}
41 \usepackage{xcolor}
42 \usepackage{csquotes}
43 \usepackage{titling}
44 \usepackage{enumitem}
45 \usepackage{minted}
46
47 % =====================================================================
48 % Enable hyperlinking/hypertext and PDF metadata
49 \usepackage{hyperref}
50 \definecolor{cseblue}{RGB}{0,55,102}
51 \hypersetup{
52 colorlinks=true,
53 linkcolor=cseblue,
54 urlcolor=cseblue,
55 citecolor=cseblue
56 }
57
58
59 % =====================================================================
60 % Add bibliography database
61 \addbibresource{bibliography.bib}
62
63
64 % =====================================================================
65 % Uder defined commands
66 \newcommand{\nauthors}[1]{#1 authors: }
67 \AtBeginBibliography{\small\color{cseblue}}
68 \setcounter{tocdepth}{1}
69
70
71 % =====================================================================
72 % Document header
73 \title{The Council of Science Editors Name--Year Bib\LaTeX\ style (\textsf{\filename})}
74 \author{João M. Lourenço\\\url{https://github.com/joaomlourenco/biblatex-cse}}
75 \date{Version \bltxcsefileversion\ (\bltxcsefiledate)}
76
77
78
79 % =====================================================================
80 \begin{document}
81 \maketitle
82
83 \begin{abstract}
84 The \texttt{biblatex-cse} package provides a set of Bib\LaTeX{} bibliography and citation styles that implement the \textbf{Council of Science Editors (CSE) Name--Year} reference system. It formats references following the conventions of the \emph{CSE Manual for Authors, Editors, and Publishers} (9th edition). This manual describes installation, usage, and customization of the style.\footnote{This style is only a partial implementation of the CSE specification. Please report any problems you may find in the project's GitHub page.}
85 \end{abstract}
86
87 \tableofcontents
88
89 % =====================================================================
90 \section{Introduction}
91
92 The \texttt{biblatex-cse} package is a style extension for Bib\LaTeX{}.
93 It defines the bibliography style (\texttt{biblatex-cse.bbx}) and the citation style (\texttt{biblatex-cse.cbx}), implementing the CSE Name--Year system.
94
95 The Name--Year system is used widely across the sciences, requiring in-text citations in the form \texttt{(Author Year)} and a reference list ordered alphabetically by author and chronologically by year.
96
97 This style is designed for authors, students, and editors working in the biological, medical, or natural sciences who must conform to CSE standards.
98
99 % =====================================================================
100 \section{Installation}
101
102 \subsection{Package contents}
103 The distribution provides the following files:
104 \begin{itemize}
105 \item \texttt{biblatex-cse.bbx} --- bibliography style definitions;
106 \item \texttt{biblatex-cse.cbx} --- citation style definitions;
107 \item \texttt{biblatex-cse-doc.tex} --- this documentation file;
108 \item \texttt{bibliography.bib} --- example database.
109 \end{itemize}
110
111 \subsection{Installation steps}
112 As the \texttt{biblatex-cse} package is distributed with \texttt{biblatex}, most probably you may skip this step. Come back if you get the following error
113 \begin{center}
114 \texttt{Package biblatex Error: Style 'biblatex-cse' not found.}
115 \end{center}
116 \noindent and follow the instructions below.
117
118 Copy the \texttt{.bbx} and \texttt{.cbx} files to one of:
119 \begin{itemize}[nosep]
120 \item the current project directory, or
121 \item a personal or system-wide \texttt{TEXMF} tree under \texttt{tex/latex/biblatex-cse/} and run \texttt{texhash}.
122 \end{itemize}
123
124 The package requires:
125 \begin{itemize}
126 \item \texttt{biblatex} 3.20 or newer;
127 \item \texttt{biber} 2.17 or newer;
128 \item \texttt{csquotes} (optional, recommended).
129 \end{itemize}
130
131 % =====================================================================
132 \section{Loading the style}
133
134 In your preamble:
135 \begin{minted}{latex}
136 \usepackage[backend=biber,style=biblatex-cse]{biblatex}
137 \addbibresource{myrefs.bib}
138 \end{minted}
139
140 % Recommended global options:
141 \begin{minted}{latex}
142 \ExecuteBibliographyOptions{
143 sorting=nyt, % Name–Year–Title order (required for CSE)
144 giveninits=true, % use initials for given names
145 maxcitenames=2, % truncate to et al. after two names in citations
146 maxbibnames=5, % list up to five authors in the bibliography
147 urldate=iso % ISO access-date format (e.g., 2022-01-25)
148 }
149 \end{minted}
150
151 Run \texttt{pdflatex → biber → pdflatex → pdflatex} to compile. Or, even better, run \texttt{latexmk -pdf yourdocument.tex}.
152
153 % =====================================================================
154 \section{Citation style (Name–Year)}
155
156 CSE uses the Name--Year system for in-text citations:
157 \begin{itemize}
158 \item One author: \texttt{(Fauci 2020)}
159 \item Two authors: \texttt{(Fauci and Lane 2020)}
160 \item Three or more authors: \texttt{(Lee et al.\ 2020)}
161 \item Multiple works: \texttt{(Lee et al.\ 2020a, 2020b)}
162 \item Page or section: \texttt{(Lee et al.\ 2020, 45–47)}
163 \end{itemize}
164
165 Common commands:
166 \begin{minted}{latex}
167 \parencite{Fauci2020} % → (Fauci 2020)
168 \textcite{Lee2020a} % → Lee et al. (2020)
169 \parencite[45--47]{Lee2020b} % → (Lee et al. 2020, 45–47)
170 \parencite{Lee2020a,Fauci2020} % → (Lee et al. 2020; Fauci 2020)
171 \end{minted}
172
173 This style automatically suppresses the “p.” prefix and formats page ranges and multiple citations according to CSE punctuation.
174
175 % =====================================================================
176 \section{Bibliography formatting}
177
178 The general pattern is:
179
180 \begin{quote}
181 \textbf{Authors. Year. Title. Journal title. Volume(issue):pages. DOI/URL}
182 \end{quote}
183
184 Each element is separated by a period, and the page range is introduced by a colon.
185 Journal titles are usually abbreviated according to the \emph{List of Title Word Abbreviations} (ISSN Centre).
186
187 \subsection*{Examples}
188
189 \paragraph{Journal article}
190 \begin{verbatim}
191 @Article{Fauci2020,
192 author = {Anthony S. Fauci and H. Clifford Lane},
193 title = {Four decades of HIV/AIDS—much accomplished, much to do},
194 journal = {N Engl J Med},
195 volume = {383},
196 number = {1},
197 pages = {1–4},
198 year = {2020},
199 doi = {10.1056/NEJMp1916753},
200 }
201 \end{verbatim}
202
203 Output:
204 \begin{quote}
205 Fauci AS, Lane HC. 2020. Four decades of HIV/AIDS—much accomplished, much to do. N Engl J Med. 383(1):1–4. https://doi.org/10.1056/NEJMp1916753
206 \end{quote}
207
208 \paragraph{Book}
209 \begin{verbatim}
210 @Book{Reiss2023,
211 author = {Reiss, Michael J. and Ruse, Michael},
212 title = {The new biology: a battle between mechanism and organicism},
213 publisher = {Harvard University Press},
214 year = {2023},
215 }
216 \end{verbatim}
217
218 Output:
219 \begin{quote}
220 Reiss MJ, Ruse M. 2023. The new biology: a battle between mechanism and organicism. Harvard University Press.
221 \end{quote}
222
223 \paragraph{Thesis}
224 \begin{verbatim}
225 @MastersThesis{Carvalho2002,
226 author = {Madeira de Carvalho, Luís Manuel},
227 title = {Epidemiologia e controlo da estrongilidose...},
228 institution = {Faculdade de Medicina Veterinária},
229 location = {Lisbon},
230 year = {2002},
231 }
232 \end{verbatim}
233
234 Output:
235 \begin{quote}
236 Madeira de Carvalho LM. 2002. Epidemiologia e controlo da estrongilidose em diferentes sistemas de produção equina em Portugal. [master's thesis]. Faculdade de Medicina Veterinária.
237 \end{quote}
238
239 \paragraph{Website}
240 \begin{verbatim}
241 @Online{CDC2022,
242 author = {{Centers for Disease Control and Prevention}},
243 title = {Health equity considerations and racial and ethnic minority groups},
244 year = {2020},
245 eventdate= {2022-01-25},
246 urldate = {2022-01-03},
247 url = {https://www.cdc.gov/coronavirus/...},
248 }
249 \end{verbatim}
250
251 Output:
252 \begin{quote}
253 Centers for Disease Control and Prevention. 2020. Health equity considerations and racial and ethnic minority groups. [updated 2022 Jan 25; accessed 2022 Jan 3]. https://www.cdc.gov/coronavirus/...
254 \end{quote}
255
256 % =====================================================================
257 \section{Supported entry types}
258
259 \subsection{@article}
260 Authors. Year. Article title. Journal title. Volume(issue):pages. DOI/URL
261
262 \subsection{@book}
263 Authors or editors. Year. Title. Edition. Publisher. DOI/URL
264
265 \subsection{@incollection}
266 Authors. Year. Chapter title. In: Editor(s), editor(s). Book title. Edition. Publisher. p pages. DOI/URL
267
268 \subsection{@thesis / @mastersthesis / @phdthesis}
269 Author. Year. Title [dissertation] \emph{or} [master's thesis]. Institution. DOI/URL
270
271 \subsection{@online}
272 Author. Date. Title. Publisher; [updated date]; [accessed date]. URL
273
274 If neither \texttt{year} nor \texttt{date} is set, the style prints \texttt{[date unknown]} in place of the date.
275
276 \subsection{@misc}
277 Author. Year. Title. Publisher. URL
278
279 \subsection{@newspaper}
280 Author. Date. Title. Newspaper title. [updated date]. URL
281
282 \subsection{@patent}
283 Inventor(s), inventors; Assignee, assignee. Year Mon DD. Title. Country patent number. DOI/URL
284
285 \subsection{@report / @techreport}
286 Author(s). Year. Title. Institution. Report No.:~number. DOI/URL
287
288 \subsection{@inproceedings}
289 Author(s). Year. Paper title. In: Editor(s), editors. Proceedings title (Conference name; YYYY Mon DD; Venue). Publisher. p~pages. DOI/URL\\[4pt]
290 Relevant fields: \texttt{author}, \texttt{year}, \texttt{title}, \texttt{editor}, \texttt{booktitle},
291 \texttt{eventtitle} (conference name), \texttt{eventyear}/\texttt{eventmonth}/\texttt{eventday} (conference date),
292 \texttt{venue} (conference location), \texttt{publisher}, \texttt{pages}, \texttt{doi}/\texttt{url}.\\[4pt]
293 When none of \texttt{eventtitle}, \texttt{eventyear}, or \texttt{venue} are present the
294 parenthetical conference block is omitted.
295
296 \subsection{@manual}
297 There is no dedicated \texttt{@manual} driver; these entries fall through to the \texttt{@misc} driver and are formatted as:\\
298 Author. Year. Title. Publisher. URL
299
300 % =====================================================================
301 \section{Separating thesis entries by degree}
302
303 Because Bib\LaTeX{}/Biber maps both \texttt{@mastersthesis} and \texttt{@phdthesis} to the
304 internal type \texttt{@thesis}, the style detects the degree automatically from the
305 \texttt{type} field and prints either \texttt{[master's thesis]} or \texttt{[dissertation]}.
306
307 To \emph{filter} bibliography lists by degree (e.g.\ a separate ``Master's Theses''
308 section), add a \texttt{keywords} field to each \texttt{.bib} entry:
309
310 \begin{minted}{bib}
311 @MastersThesis{Smith2020,
312 ...
313 keywords = {mastersthesis},
314 }
315 @PhdThesis{Jones2019,
316 ...
317 keywords = {phdthesis},
318 }
319 \end{minted}
320
321 Then define filters in the preamble and use them with \verb|\printbibliography|:
322
323 \begin{minted}{latex}
324 \defbibfilter{onlymasters}{type=thesis and keyword=mastersthesis}
325 \defbibfilter{onlyphd}{type=thesis and keyword=phdthesis}
326
327 \printbibliography[filter=onlymasters, title={Master's Theses}]
328 \printbibliography[filter=onlyphd, title={Doctoral Dissertations}]
329 \end{minted}
330
331 % =====================================================================
332 \section{Options and customization}
333
334 The \texttt{biblatex-cse} style inherits all standard Bib\LaTeX{} options.
335 Frequently used options:
336
337 \begin{center}
338 \begin{tabular}{@{}lll@{}}
339 \textbf{Option} & \textbf{Default} & \textbf{Description} \\
340 \hline
341 \texttt{giveninits} & true & Use initials for given names. \\
342 \texttt{maxcitenames} & 2 & Show up to two names in citations. \\
343 \texttt{maxbibnames} & 5 & Show up to five names in the bibliography. \\
344 \texttt{urldate} & iso & ISO date format for access dates. \\
345 \end{tabular}
346 \end{center}
347
348 Change these with:
349 \begin{minted}{latex}
350 \ExecuteBibliographyOptions{maxbibnames=10,urldate=long}
351 \end{minted}
352
353 You can also redefine bibliography headings, for example to print the list at subsection level:
354 \begin{minted}{latex}
355 \defbibheading{bibliography}{\subsection*{#1}}
356 \end{minted}
357 or use
358 \begin{minted}{latex}
359 \printbibliography[heading=subbibliography]
360 \end{minted}
361
362 % =====================================================================
363 \section{Differences from standard BibLaTeX styles}
364
365 Compared with the built-in \texttt{authoryear} style, \texttt{biblatex-cse}:
366
367 \begin{itemize}
368 \item separates reference elements with \textbf{periods}, not commas;
369 \item uses a \textbf{colon before page numbers};
370 \item removes parentheses around the year;
371 \item prints \textbf{author initials without periods};
372 \item abbreviates journal titles (manual input);
373 \item prints DOIs as full URLs (\texttt{https://doi.org/...});
374 \item omits “p.” in in-text page references.
375 \end{itemize}
376
377 % =====================================================================
378 \section{Known limitations}
379
380 \begin{itemize}
381 \item The style does not automatically abbreviate journal titles; provide them abbreviated in your \texttt{.bib}.
382 \item Unpublished materials and personal communications should be handled manually.
383 \item Some advanced CSE categories (preprints, forthcoming, supplements) may need minor custom drivers.
384 \end{itemize}
385
386 % =====================================================================
387 \section{Acknowledgments}
388
389 The style is based on Bib\LaTeX{} by Philipp Lehman and Audrey Boruvka.
390 Formatting conventions follow the \emph{CSE Manual for Authors, Editors, and Publishers, 9th edition} (Council of Science Editors, 2024).
391 Thanks to the Bib\LaTeX{} community for style-design examples.
392
393 % =====================================================================
394 \section{Change history}
395
396 \noindent
397 \begin{tabularx}{\textwidth}{>{\bfseries}llX}
398 \toprule
399 v2.0.1 & (2026-05-16) & Improve manual completeness.\\
400 & & Fix discrepancies from CSE standard.\\
401 & & Fix event date formatting to correctly display year, month, and day.\\
402 v2.0.0 & (2025-11-06) & Rework of the style files to better comply to the CSE Name--Year specification.\\
403 v1.1.0 & (2025-01-01) & Initial public release.\\
404 \bottomrule
405 \end{tabularx}
406
407 % =====================================================================
408 \appendix
409 \section{Example document}
410
411 \begin{minted}{latex}
412 \documentclass{article}
413 \usepackage[backend=biber,style=biblatex-cse]{biblatex}
414 \addbibresource{bibliography.bib}
415
416 \begin{document}
417 \section*{Example}
418 Research on long-duration spaceflight has revealed
419 important physiological changes \parencite{Lee2020a,Lee2020b}.
420
421 \printbibliography[title={References}]
422 \end{document}
423 \end{minted}
424
425 Compiling this file with Biber produces CSE-compliant citations and references.
426
427 % =====================================================================
428 \section{Examples of citations and bibliography}
429
430 \noindent\textbf{Note:} The \texttt{\textbackslash nauthors\{n\}} command used below is a local helper defined in this document's preamble as \verb|\newcommand{\nauthors}[1]{#1 authors: }|.
431 It is \emph{not} part of the \texttt{biblatex-cse} style; it is only used here to annotate how many authors each entry has.
432
433 \subsection{Article Citations}
434 \indent
435 \par\nauthors{1}\cite[150]{Duddington1955} % reference to page 150
436 \par\nauthors{2}\cite{Asa2011}
437 \par\nauthors{3}\cite{Migaki1982}
438 \par\nauthors{4}\cite{Lysek1982}
439 \par\nauthors{5}\cite{Carvalho2007}
440 \par\nauthors{8}\cite{Riadigos2014}
441
442 \printbibliography[heading=subbibliography, type=article, title=Article References]
443
444 \subsection{Book Citations}
445 \indent
446 \par\nauthors{1}\cite{AnkelSimons2007}
447 \par\nauthors{2}\cite{Bogitsh2013}
448 \par\nauthors{3}\cite{Taylor2016}
449 \par\nauthors{4}\cite{Modry2015}
450 \par\nauthors{5}\cite{Modry2017}
451
452 \printbibliography[heading=subbibliography, type=book, title=Book References]
453
454
455 \subsection{Manual Citations}
456 \indent
457 \par\nauthors{1}\cite{Zoos2022}
458
459 \printbibliography[heading=subbibliography, type=manual, title=Manual References]
460
461
462 \subsection{Online Citations}
463 \indent
464 \par\nauthors{1}\cite{ZooBarcelona:Timeline}
465
466 \printbibliography[heading=subbibliography, type=online, title=Online References]
467
468
469 \subsection{Newspaper Citations}
470 \indent
471 \par\nauthors{2}\cite{NYT2023}
472
473 \printbibliography[heading=subbibliography, type=newspaper, title=Newspaper References]
474
475
476 \subsection{Master Thesis Citations}
477 \indent
478 \par\nauthors{1}\cite{Carvalho2002}
479
480 \printbibliography[heading=subbibliography, filter=onlymasters, title=Masterthesis References]
481
482
483 \subsection{PhD Thesis Citations}
484 \indent
485 \par\nauthors{1}\cite{Balan2017}
486
487 \printbibliography[heading=subbibliography, filter=onlyphd, title=Phdthesis References]
488
489
490 \subsection{Technical Report Citations}
491 \indent
492 \par\nauthors{1}\cite{Fiby2020}
493 \par\nauthors{2}\cite{Miller2011}
494 \par\nauthors{5}\cite{Abello2017}
495 \par\nauthors{5}\cite{Duque2018}
496
497 \printbibliography[heading=subbibliography, type=report, title=Techreport References]
498
499
500 \end{document}