Debian Codegraph @

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

raw
1 %% ---------------------------------------------------------------
2 %% biblatex-phys --- A biblatex implementation of the AIP and APS
3 %% bibliography style
4 %% Maintained by Joseph Wright
5 %% E-mail: [email protected]
6 %% Released under the LaTeX Project Public License v1.3c or later
7 %% See http://www.latex-project.org/lppl.txt
8 %% ---------------------------------------------------------------
9 %%
10
11 \documentclass[a4paper]{ltxdoc}
12 \usepackage{lmodern}
13 \usepackage[final]{microtype}
14 \usepackage[T1]{fontenc}
15 \usepackage[backend=biber,style=phys]{biblatex}
16 \usepackage{csquotes}
17 \usepackage{hyperref}
18
19 \hypersetup{hidelinks}
20
21 \addbibresource{biblatex-phys.bib}
22
23 \author{Joseph Wright\thanks{E-mail:
24 \href{mailto:[email protected]}
25 {\texttt{[email protected]}}}}
26 \title{\pkg{biblatex-phys} -- A \pkg{biblatex} implementation of the
27 \textsc{aip} and \textsc{aps} bibliography style%
28 \footnote{This file describes v1.1e, last revised 2025/04/09.}}
29 \date{Released 2025/04/09}
30
31 \providecommand*{\opt}[1]{\texttt{#1}}
32 \providecommand*{\pkg}[1]{\textsf{#1}}
33
34 \let\DescribeOption\DescribeEnv
35
36 \RecordChanges
37
38 \begin{document}
39
40 \maketitle
41
42 This package provides a style for \pkg{biblatex} which follows the
43 guidelines of the \textsc{aip} and \textsc{aps}. The citation style is numeric
44 and unsorted. The bibliography style follows the pattern of the official
45 REV\TeX{} class (\url{http://ctan.org/pkg/revtex}). The style should be loaded
46 in the usual way
47 \begin{verbatim}
48 \usepackage[style=phys]{biblatex}
49 \end{verbatim}
50 Load-time options are provided to deal with the small number of variations
51 between the \textsc{aip} and \textsc{aps} styles.
52 The References section of this document demonstrates the format
53 generated by the package using the \texttt{biblatex-phys.bib} database
54 of example citations.
55
56 The styles use the standard \pkg{biblatex} database requirements. This means
57 that a database designed for traditional \BibTeX{} use may need some
58 editing for optimal output. The accompanying example database
59 \texttt{biblatex-phys.bib} shows examples of all of the supported entry types
60 with common fields filled in.
61
62 \section{Style options}
63
64 All of the styles here add a small number of package options to the standard
65 set provided by \pkg{biblatex}. This allows the styles to cover the variations
66 seen between the \textsc{aip} and \textsc{aps} styles.
67
68 \DescribeOption{doi}
69 \DescribeOption{eprint}
70 \DescribeOption{isbn}
71 \DescribeOption{url}
72 The standard style options \opt{doi}, \opt{eprint}, \opt{isbn} and
73 \opt{url}, as described in the \pkg{biblatex} manual. However, these
74 options are turned off as standard by the \pkg{phys} style. This reflects the
75 fact that these entries may be present in reference databases but are not
76 generally included in published bibliographies. Note that \textsc{doi} values
77 are printed for journal articles with no pages or eid given, even if the
78 \opt{doi} option is \opt{false}.
79
80 \DescribeOption{subentry}
81 In common with the standard \pkg{biblatex} numeric styles, all of the styles
82 in the bundle support the boolean \texttt{subentry} option. With this set
83 \opt{true}, entries of type \texttt{set} are given individual labels within
84 the bibliography.
85
86 \DescribeOption{articletitle}
87 The use of article titles varies between the \textsc{aip} and \textsc{aps}
88 styles. The boolean option \opt{articletitle} is available is control this
89 behaviour. The standard settings is \opt{true}, which follows the guidelines of
90 the \textsc{aip}: it should be set to \opt{false} to follow the \textsc{aps}
91 style. (This option also applies to the titles of proceedings entries and
92 patents, which are treated in the same way.)
93
94 \DescribeOption{biblabel}
95 The format of the numbers used in the bibliography (the \enquote{bibliography
96 label}) varies. The \opt{biblabel} option allows the user to easily set the
97 format used. This option takes a values \opt{superscript} (the standard
98 setting) and \opt{brackets}.
99
100 \DescribeOption{chaptertitle}
101 Printing chapter titles for \texttt{incollection} entries is part of the
102 \textsc{aip} style but is not part of the \textsc{aps} style. The
103 \opt{chaptertitle} option can be used to control this.
104
105 \DescribeOption{pageranges}
106 The inclusion of the full page range of journal articles varies between the
107 \textsc{aip} and \textsc{aps} styles. The boolean option \opt{pageranges} is
108 available is control this behaviour. The standard settings is \opt{true},
109 which follows the guidelines of the \textsc{aip} and prints the full range:
110 it should be set to \opt{false} to follow the \textsc{aps} style, which will
111 result in only the first page being printed.
112
113 \subsection{\texttt{collaboration} field}
114
115 To support large-scale collaborations, the style recognises the
116 \texttt{collaboration} field. This is a simple text field which gives the
117 name of the collaboration, and which is printed in parenthesis after the
118 authors.
119
120 \subsection{\textsc{aip} and \textsc{aps} styles}
121
122 As detailed above, the standard settings follow the \textsc{aip} style.
123 To obtain the \textsc{aps} style, use
124 \begin{verbatim}
125 \usepackage[%
126 style=phys,%
127 autocite=plain,%
128 articletitle=false,biblabel=brackets,%
129 chaptertitle=false,pageranges=false%
130 ]
131 {biblatex}
132 \end{verbatim}
133
134 \section{Title formatting}
135
136 The style convert article titles to sentence case format. This can be
137 suppressed using
138 \begin{verbatim}
139 \DeclareFieldFormat{titlecase}{#1}
140 \end{verbatim}
141
142 \section{\textsc{url} formatting}
143
144 The style uses the \pkg{url} package to format hyperlinks. As such, the
145 format of these is left to the document author to alter. The \cs{urlstyle}
146 command may be used to alter this, either for the whole document or only
147 for the bibliography, for example by using
148 \begin{verbatim}
149 \AtBeginBibliography{%
150 \urlstyle{same}%
151 }
152 \end{verbatim}
153
154 \section{Interaction with \pkg{babel}}
155
156 In common with other \pkg{biblatex} styles, \pkg{biblatex-phys} uses the
157 \pkg{csquotes} package mechanism to place article titles in quotation marks.
158 This means that the formatting of these will depend on the \pkg{babel}
159 language in use. Full details are covered in the manuals for \pkg{biblatex}
160 and \pkg{csquotes}.
161
162 \section{Errors and omissions}
163
164 Suggestions for improvement and bug reports can be logged in the package issue
165 database, found at
166 \url{https://github.com/josephwright/biblatex-phys/issues}, or can
167 be sent by e-mail to
168 \href{mailto:[email protected]}
169 {\texttt{[email protected]}}.
170
171 \nocite{*}
172
173 \printbibliography
174
175 \changes{v0.9a}{2012/07/13}{Detect and remove repeated information in
176 entry sets at any position in the set}
177 \changes{v0.9b}{2013/01/04}{Enable use of \texttt{firstinits} option}
178 \changes{v0.9b}{2013/01/04}{Fix handling of \texttt{doi} field for
179 \texttt{article} entries}
180 \changes{v0.9b}{2013/01/04}{Print \texttt{doi} or \texttt{url} after year
181 for \texttt{article} entries, consistent with \texttt{online} behaviour}
182 \changes{v0.9c}{2013/01/22}{Link article publication details using \textsc{doi},
183 \textsc{url} or arXiv \texttt{eprint}}
184 \changes{v0.9c}{2013/01/22}{Titles in sentence case}
185 \changes{v0.9d}{2013/01/23}{Update journal title printing so case is unchanged
186 by processing of article titles (introduced in v0.9c)}
187 \changes{v0.9d}{2013/01/27}{Improve arXiv formatting}
188 \changes{v0.9d}{2013/01/27}{Minor fix for book formatting}
189 \changes{v0.9d}{2013/01/27}{Link book titles using \textsc{doi} or
190 \textsc{url}}
191 \changes{v0.9d}{2013/01/27}{Correctly include \enquote{related} material
192 (Biber-only)}
193 \changes{v0.9e}{2013/01/29}{Link \enquote{related} articles using \textsc{doi}
194 or \textsc{url}}
195 \changes{v0.9f}{2014/05/14}{Allow for variation in \texttt{journaltitle}
196 formatting}
197 \changes{v1.0}{2016/03/10}{First stable release}
198 \changes{v1.0a}{2016/03/13}{Ensure style works with both backends}
199 \changes{v1.0b}{2016/08/23}{Fix author list formatting issue}
200 \changes{v1.0c}{2018/10/19}{Update DOI link structure}
201 \changes{v1.0c}{2018/10/19}{Update internals to follow standard \pkg{biblatex}
202 style changes}
203 \changes{v1.1}{2018/10/19}{Support for \texttt{collaboration} field}
204 \changes{v1.1a}{2019-09-20}{Biber support for \texttt{collaboration} field}
205 \changes{v1.1b}{2019-12-03}{Fix printing of DOI when pages are missing}
206 \changes{v1.1d}{2025-04-08}{Print citations inline}
207 \changes{v1.1e}{2025-04-09}{Better approach to APS style}
208
209 \PrintChanges
210
211 \end{document}
212
213 %%
214 %% Copyright (C) 2012-2014,2016,2018-2020,2022,2024,2025 by
215 %% Joseph Wright <[email protected]>
216 %%
217 %% It may be distributed and/or modified under the conditions of
218 %% the LaTeX Project Public License (LPPL), either version 1.3c of
219 %% this license or (at your option) any later version. The latest
220 %% version of this license is in the file:
221 %%
222 %% http://www.latex-project.org/lppl.txt
223 %%
224 %% This work is "maintained" (as per LPPL maintenance status) by
225 %% Joseph Wright.
226 %%
227 %% This work consists of the files biblatex-phys.bib,
228 %% biblatex-phys.tex,
229 %% biblatex-phys.tex,
230 %% phys.bbx,
231 %% phys.cbx and
232 %% phys.dbx,
233 %% and the derived file biblatex-phys.pdf.
234 %%
235 %% End of file `biblatex-phys.tex'.