| 1 |
% \iffalse meta-comment |
| 2 |
%<*internal> |
| 3 |
\iffalse |
| 4 |
%</internal> |
| 5 |
%<*readme> |
| 6 |
rsc - BibTeX styles for Royal Society of Chemistry and Wiley journals |
| 7 |
===================================================================== |
| 8 |
|
| 9 |
The `rsc` package provides BibTeX style files to produce |
| 10 |
bibliographies in accordance with the guidelines of the Royal |
| 11 |
Society of Chemistry and Wiley chemistry-related journals. The |
| 12 |
styles require the use of `natbib`. In addition, a short LaTeX |
| 13 |
package is included; this provides a convenient user interface to |
| 14 |
the customisation hooks made available by the BibTeX styles. |
| 15 |
|
| 16 |
Installation |
| 17 |
------------ |
| 18 |
|
| 19 |
The package is supplied in `.dtx` format and as a pre-extracted |
| 20 |
zip file, `rsc.tds.zip`. The later is most convenient for |
| 21 |
most users: simply unzip this in your local `texmf` directory. |
| 22 |
If you want to unpack the `.dtx` yourself, running `tex |
| 23 |
rsc.dtx` will extract the package whereas 'latex rsc.dtx |
| 24 |
will extract it and also typeset the documentation. |
| 25 |
|
| 26 |
Typesetting the documentation requires a number of packages in |
| 27 |
addition to those needed to use the package. This is mainly |
| 28 |
because of the number of demonstration items included in the |
| 29 |
text. To compile the documentation without error, you will |
| 30 |
need the packages: |
| 31 |
- `helvet` |
| 32 |
- `hypdoc` |
| 33 |
- `listings` |
| 34 |
- `lmodern` |
| 35 |
- `mathpazo` |
| 36 |
- `microtype` |
| 37 |
%</readme> |
| 38 |
%<*internal> |
| 39 |
\fi |
| 40 |
\def\nameofplainTeX{plain} |
| 41 |
\ifx\fmtname\nameofplainTeX\else |
| 42 |
\expandafter\begingroup |
| 43 |
\fi |
| 44 |
%</internal> |
| 45 |
%<*install> |
| 46 |
\input docstrip.tex |
| 47 |
\keepsilent |
| 48 |
\askforoverwritefalse |
| 49 |
\preamble |
| 50 |
---------------------------------------------------------------- |
| 51 |
rsc --- BibTeX styles for Royal Society of Chemistry and Wiley |
| 52 |
journals |
| 53 |
E-mail: [email protected] |
| 54 |
Released under the LaTeX Project Public License v1.3c or later |
| 55 |
See http://www.latex-project.org/lppl.txt |
| 56 |
---------------------------------------------------------------- |
| 57 |
|
| 58 |
\endpreamble |
| 59 |
\postamble |
| 60 |
|
| 61 |
Copyright (C) 2006-2009,2011,2013,2016 by |
| 62 |
Joseph Wright <[email protected]> |
| 63 |
|
| 64 |
It may be distributed and/or modified under the conditions of |
| 65 |
the LaTeX Project Public License (LPPL), either version 1.3c of |
| 66 |
this license or (at your option) any later version. The latest |
| 67 |
version of this license is in the file: |
| 68 |
|
| 69 |
http://www.latex-project.org/lppl.txt |
| 70 |
|
| 71 |
This work is "maintained" (as per LPPL maintenance status) by |
| 72 |
Joseph Wright. |
| 73 |
|
| 74 |
This work consists of the file rsc.dtx |
| 75 |
and the derived files rsc.pdf, |
| 76 |
rsc.ins, |
| 77 |
rsc.sty, |
| 78 |
rsc.bib and |
| 79 |
rsc-demo.tex. |
| 80 |
|
| 81 |
|
| 82 |
\endpostamble |
| 83 |
\usedir{tex/latex/rsc} |
| 84 |
\generate{ |
| 85 |
\file{\jobname.sty}{\from{\jobname.dtx}{package}} |
| 86 |
} |
| 87 |
\usedir{bibtex/bst/rsc} |
| 88 |
\generate{ |
| 89 |
\file{rsc.bst}{\from{\jobname.dtx}{bst,rsc}} |
| 90 |
\file{angew.bst}{\from{\jobname.dtx}{bst,angew}} |
| 91 |
} |
| 92 |
%</install> |
| 93 |
%<install>\endbatchfile |
| 94 |
%<*internal> |
| 95 |
\usedir{source/latex/rsc} |
| 96 |
\generate{ |
| 97 |
\file{\jobname.ins}{\from{\jobname.dtx}{install}} |
| 98 |
} |
| 99 |
\nopreamble\nopostamble |
| 100 |
\usedir{doc/latex/rsc} |
| 101 |
\generate{ |
| 102 |
\file{rsc-demo.tex}{\from{\jobname.dtx}{demo}} |
| 103 |
\file{rsc.bib}{\from{\jobname.dtx}{bib}} |
| 104 |
} |
| 105 |
\ifx\fmtname\nameofplainTeX |
| 106 |
\expandafter\endbatchfile |
| 107 |
\else |
| 108 |
\expandafter\endgroup |
| 109 |
\fi |
| 110 |
%</internal> |
| 111 |
%<*package> |
| 112 |
\NeedsTeXFormat{LaTeX2e} |
| 113 |
\ProvidesPackage{rsc} |
| 114 |
[2016/08/22 v31.f Support for RSC and Wiley journals] |
| 115 |
%</package> |
| 116 |
%<*driver> |
| 117 |
\documentclass[a4paper]{ltxdoc} |
| 118 |
\usepackage[T1]{fontenc} |
| 119 |
\usepackage{array,booktabs,lmodern} |
| 120 |
\usepackage[usedoi,linkdoi]{rsc} |
| 121 |
\usepackage[osf]{mathpazo} |
| 122 |
\usepackage[scaled=0.95]{helvet} |
| 123 |
\usepackage[final]{listings,microtype} |
| 124 |
\usepackage[numbered]{hypdoc} |
| 125 |
\EnableCrossrefs |
| 126 |
\CodelineIndex |
| 127 |
\RecordChanges |
| 128 |
\begin{document} |
| 129 |
\DocInput{\jobname.dtx} |
| 130 |
\end{document} |
| 131 |
%</driver> |
| 132 |
% \fi |
| 133 |
% |
| 134 |
%\GetFileInfo{\jobname.sty} |
| 135 |
% |
| 136 |
%\makeatletter |
| 137 |
% |
| 138 |
%^^A \DescribeOption is in l3doc but not ltxdoc |
| 139 |
%\newcommand*{\DescribeOption}{^^A |
| 140 |
% \leavevmode |
| 141 |
% \@bsphack |
| 142 |
% \begingroup |
| 143 |
% \MakePrivateLetters |
| 144 |
% \Describe@Option |
| 145 |
%} |
| 146 |
%\newcommand*{\Describe@Option}[1]{^^A |
| 147 |
% \endgroup |
| 148 |
% \marginpar{^^A |
| 149 |
% \raggedleft |
| 150 |
% \PrintDescribeEnv{#1}^^A |
| 151 |
% }% |
| 152 |
% \SpecialOptionIndex{#1}^^A |
| 153 |
% \@esphack |
| 154 |
% \ignorespaces |
| 155 |
%} |
| 156 |
%\newcommand*{\SpecialOptionIndex}[1]{^^A |
| 157 |
% \@bsphack |
| 158 |
% \index{^^A |
| 159 |
% #1\actualchar{\protect\ttfamily#1} (option)\encapchar usage^^A |
| 160 |
% }^^A |
| 161 |
% \index{^^A |
| 162 |
% options:\levelchar#1\actualchar{\protect\ttfamily#1} |
| 163 |
% \encapchar usage^^A |
| 164 |
% }^^A |
| 165 |
% \@esphack |
| 166 |
%} |
| 167 |
% |
| 168 |
%^^A For creating examples with nice highlighting of code, and so |
| 169 |
%^^A on; based on the system used in the listings source (lstsample). |
| 170 |
%\lst@RequireAspects{writefile} |
| 171 |
%\newsavebox{\LaTeXdemo@box} |
| 172 |
%\lstnewenvironment{LaTeXdemo}[1][code and example]{^^A |
| 173 |
% \global\let\lst@intname\@empty |
| 174 |
% \expandafter\let\expandafter\LaTeXdemo@end |
| 175 |
% \csname LaTeXdemo@#1@end\endcsname |
| 176 |
% \@nameuse{LaTeXdemo@#1}^^A |
| 177 |
%}{^^A |
| 178 |
% \LaTeXdemo@end |
| 179 |
%} |
| 180 |
%\newcommand*\LaTeXdemo@new[3]{^^A |
| 181 |
% \expandafter\newcommand\expandafter*\expandafter |
| 182 |
% {\csname LaTeXdemo@#1\endcsname}{#2}^^A |
| 183 |
% \expandafter\newcommand\expandafter*\expandafter |
| 184 |
% {\csname LaTeXdemo@#1@end\endcsname}{#3}^^A |
| 185 |
%} |
| 186 |
%\newcommand*\LaTeXdemo@common{^^A |
| 187 |
% \setkeys{lst}{ |
| 188 |
% basicstyle = \small\ttfamily, |
| 189 |
% basewidth = 0.51em, |
| 190 |
% gobble = 3, |
| 191 |
% keywordstyle = \color{blue}, |
| 192 |
% language = [LaTeX]{TeX}, |
| 193 |
% moretexcs = { |
| 194 |
% } |
| 195 |
% }^^A |
| 196 |
%} |
| 197 |
%\newcommand*\LaTeXdemo@input{^^A |
| 198 |
% \MakePercentComment |
| 199 |
% \catcode`\^^M=10\relax |
| 200 |
% \small |
| 201 |
% \begingroup |
| 202 |
% \setkeys{lst}{ |
| 203 |
% SelectCharTable=\lst@ReplaceInput{\^\^I}{\lst@ProcessTabulator} |
| 204 |
% }^^A |
| 205 |
% \leavevmode |
| 206 |
% \input{\jobname.tmp}^^A |
| 207 |
% \endgroup |
| 208 |
% \MakePercentIgnore |
| 209 |
%} |
| 210 |
%\LaTeXdemo@new{code and example}{^^A |
| 211 |
% \setbox\LaTeXdemo@box=\hbox\bgroup |
| 212 |
% \lst@BeginAlsoWriteFile{\jobname.tmp}^^A |
| 213 |
% \LaTeXdemo@common |
| 214 |
%}{^^A |
| 215 |
% \lst@EndWriteFile |
| 216 |
% \egroup |
| 217 |
% \begin{center} |
| 218 |
% \ifdim\wd\LaTeXdemo@box>0.48\linewidth\relax |
| 219 |
% \hbox to\linewidth{\box\LaTeXdemo@box\hss}^^A |
| 220 |
% \begin{minipage}{\linewidth} |
| 221 |
% \LaTeXdemo@input |
| 222 |
% \end{minipage} |
| 223 |
% \else |
| 224 |
% \begin{minipage}{0.48\linewidth} |
| 225 |
% \LaTeXdemo@input |
| 226 |
% \end{minipage} |
| 227 |
% \hfill |
| 228 |
% \begin{minipage}{0.48\linewidth} |
| 229 |
% \hbox to\linewidth{\box\LaTeXdemo@box\hss}^^A |
| 230 |
% \end{minipage} |
| 231 |
% \fi |
| 232 |
% \end{center} |
| 233 |
%} |
| 234 |
%\LaTeXdemo@new{code only}{^^A |
| 235 |
% \LaTeXdemo@common |
| 236 |
%}{^^A |
| 237 |
%} |
| 238 |
% |
| 239 |
%\providecommand*{\eTeX}{\ensuremath{\varepsilon}-\TeX} |
| 240 |
%\providecommand*{\file}{\texttt} |
| 241 |
%\providecommand*{\opt}{\texttt} |
| 242 |
%\providecommand*{\pkg}{\textsf} |
| 243 |
% |
| 244 |
%\makeatother |
| 245 |
% |
| 246 |
%\title{^^A |
| 247 |
% \textsf{rsc} --- \texorpdfstring{\BibTeX}{BibTeX} styles for |
| 248 |
% Royal Society of Chemistry and Wiley journals\thanks{^^A |
| 249 |
% This file describes version \fileversion, last revised |
| 250 |
% \filedate.^^A |
| 251 |
% }^^A |
| 252 |
%} |
| 253 |
%\author{^^A |
| 254 |
% Joseph Wright\thanks{E-mail: [email protected]}^^A |
| 255 |
%} |
| 256 |
%\date{Released \filedate} |
| 257 |
% |
| 258 |
%\maketitle |
| 259 |
% |
| 260 |
%\changes{v1.0}{2006/11/08}{Initial release of packaged |
| 261 |
% \texttt{rsc.bst}} |
| 262 |
%\changes{v2.0}{2007/07/21}{First re-write of package} |
| 263 |
%\changes{v3.0}{2008/07/20}{Second re-write of package} |
| 264 |
%\changes{v3.1}{2009/04/24}{\pkg{mciteplus} package optional} |
| 265 |
%\changes{v3.1}{2009/04/24}{Demonstration file included} |
| 266 |
%\changes{v3.1d}{2011/01/04}{New \opt{linkdoi} option} |
| 267 |
%\changes{v3.1e}{2011/01/05}{Option to skip loading \pkg{mciteplus}} |
| 268 |
%\changes{v3.1f}{2016/08/22}{Include series in \texttt{incollection} |
| 269 |
% entries for \pkg{rsc} bibliographies} |
| 270 |
% |
| 271 |
%\begin{abstract} |
| 272 |
% The \pkg{rsc} package provides \BibTeX\ style files to produce |
| 273 |
% bibliographies in accordance with the guidelines of the Royal |
| 274 |
% Society of Chemistry and Wiley chemistry-related journals. The |
| 275 |
% styles require the use of \pkg{natbib}. In addition, a short |
| 276 |
% \LaTeX\ package is included; this provides a convenient user |
| 277 |
% interface to the customisation hooks made available by the |
| 278 |
% \BibTeX\ styles. |
| 279 |
%\end{abstract} |
| 280 |
% |
| 281 |
%\begin{multicols}{2} |
| 282 |
% \tableofcontents |
| 283 |
%\end{multicols} |
| 284 |
% |
| 285 |
%\section{Introduction} |
| 286 |
% Although synthetic chemists do not, in the main, use \LaTeX\ for |
| 287 |
% the preparation of journal articles, it would be nice to be able to |
| 288 |
% use it for reports. The package \pkg{achemso} provides for a |
| 289 |
% \BibTeX\ style and other support for reports in the style of the |
| 290 |
% American Chemical Society. The aim of the \pkg{rsc} package is to |
| 291 |
% provide similar support for the style favoured by the Royal Society |
| 292 |
% of Chemistry. The package also provides support for the style used |
| 293 |
% in Wiley-published journals. |
| 294 |
% |
| 295 |
% As of version 3, this bundle requires \pkg{natbib}; the package |
| 296 |
% \pkg{mciteplus} is also supported but not required. These two |
| 297 |
% packages make creating bibliographies much easier for chemists. |
| 298 |
% |
| 299 |
%\section{Installation} |
| 300 |
% |
| 301 |
% The entire bundle is supplied with the TDS-ready ZIP file, |
| 302 |
% \file{rsc.tds.zip}. Simply unzip this into your local texmf |
| 303 |
% tree and run your hash program (\texttt{texhash} for \TeX{}Live or |
| 304 |
% \texttt{initextmf -u} for MiK\TeX). |
| 305 |
% |
| 306 |
% To extract the bundle of files from \file{rsc.dtx}, run |
| 307 |
% (pdf)\TeX\ on \file{rsc.dtx}. This will produce all of the package |
| 308 |
% files, and also \file{README.txt}. To extract the |
| 309 |
% files and build the documentation, run (pdf)\LaTeX\ on |
| 310 |
% \texttt{rsc.dtx}. The files can then be installed as above. |
| 311 |
% |
| 312 |
%\section{Using the styles} |
| 313 |
% |
| 314 |
% The styles are used in the normal way for \BibTeX\ styles, as the |
| 315 |
% argument to the \cs{bibliographystyle} macro. As \pkg{natbib} |
| 316 |
% is required, it must of course be loaded. Citations can then be |
| 317 |
% given as normal: |
| 318 |
%\begin{LaTeXdemo} |
| 319 |
% Some standard citations |
| 320 |
% \cite{Abernethy2003,Cotton1999}. |
| 321 |
% Some \textsf{natbib}-specific features: |
| 322 |
% \citet{Abernethy2003} have said something, |
| 323 |
% as reported by \citeauthor{Cotton1999}, |
| 324 |
% in \citeyear{Abernethy2003}. |
| 325 |
%\end{LaTeXdemo} |
| 326 |
% |
| 327 |
% If the \pkg{mciteplus} package is available, multiple citations can |
| 328 |
% be combined into a single list: |
| 329 |
%\begin{LaTeXdemo} |
| 330 |
% A multiple citation |
| 331 |
% \cite{Arduengo1992,*Arduengo1994}.\\ |
| 332 |
%\end{LaTeXdemo} |
| 333 |
% |
| 334 |
% To make life slightly easier for the user, a small \LaTeX\ package |
| 335 |
% accompanies the \BibTeX\ files. It automatically loads the support |
| 336 |
% packages, and handles customisation (see the next section). |
| 337 |
%\begin{LaTeXdemo}[code only] |
| 338 |
% \documentclass{article} |
| 339 |
% \usepackage{rsc} |
| 340 |
% \begin{document} |
| 341 |
% % Document body here |
| 342 |
% \bibliographystyle{rsc} % or angew |
| 343 |
% \bibliography{your-bibtex-database} |
| 344 |
% \end{document} |
| 345 |
%\end{LaTeXdemo} |
| 346 |
% |
| 347 |
%\section{Customising the styles: the |
| 348 |
% \texorpdfstring{\LaTeX}{LaTeX} package} |
| 349 |
% Both of the styles provide a small number of control hooks to |
| 350 |
% modify the output behaviour. These can be altered directly, using |
| 351 |
% a mechanism similar to that used by \pkg{IEEEtrans}. However, for |
| 352 |
% most users, this is overly complex. A short \LaTeX\ package is |
| 353 |
% therefore provided, which provides high-level access to the |
| 354 |
% customisation. |
| 355 |
% |
| 356 |
%\DescribeOption{maxnames} |
| 357 |
%\DescribeOption{usetitle} |
| 358 |
%\DescribeOption{usedoi} |
| 359 |
%\DescribeOption{linkdoi} |
| 360 |
% The \opt{maxnames} option sets whether and when a long list of |
| 361 |
% authors is truncated, and takes an integer value. Giving the value |
| 362 |
% \opt{0} means that no truncation occurs, otherwise the list is |
| 363 |
% truncated if the number of names exceeds the given value. The |
| 364 |
% \opt{usetitle} and \opt{usedoi} options are simple Boolean |
| 365 |
% switches. The \opt{usetitle} option sets whether to include the |
| 366 |
% titles of journal articles in the bibliography. The default is |
| 367 |
% \opt{false}; the only \textsc{rsc} journal using article titles is |
| 368 |
% \emph{Photochemical \& Photobiological Sciences}. The \opt{usedoi} |
| 369 |
% option forces the use of \textsc{doi} information in cases where it |
| 370 |
% would not normally be present (for example journal articles with |
| 371 |
% page ranges available). This is intended to make it easier for |
| 372 |
% readers to find journal information. The related |
| 373 |
% \opt{linkdoi} option will include a hyperlink for each \textsc{doi}, |
| 374 |
% so that the \textsc{doi} can be clicked on to resolve the |
| 375 |
% original reference. |
| 376 |
% |
| 377 |
%\DescribeOption{super} |
| 378 |
% The \opt{super} Boolean option turns on superscript citations, and |
| 379 |
% is \opt{true} by default. It also causes the \pkg{natmove} package |
| 380 |
% to be loaded if available (\pkg{natmove} is part of the |
| 381 |
% \pkg{achemso} bundle). This ensures that citations appear |
| 382 |
% \emph{after} punctuation even if given before in the text. This |
| 383 |
% documentation has been compiled using \pkg{natmove}: see the input |
| 384 |
% of the example citations in the previous section. |
| 385 |
% |
| 386 |
%\DescribeOption{mciteplus} |
| 387 |
% The \pkg{rsc} package normally loads the support package |
| 388 |
% \pkg{mciteplus}. This can be controlled using the \opt{mciteplus} |
| 389 |
% option: loading \pkg{rsc} with \opt{mciteplus=false} will skip loading |
| 390 |
% \pkg{mciteplus}. |
| 391 |
% |
| 392 |
%\section{Demonstration file} |
| 393 |
% |
| 394 |
% This bundle includes the demonstration file \file{rsc-demo.tex}. The |
| 395 |
% file shows how to create a submission to the RSC, using only standard |
| 396 |
% \LaTeX\ tools. Note that the demonstration does \emph{not} aim to look |
| 397 |
% like a published paper: this is not required for submission. The |
| 398 |
% demonstration file should be installed in the \file{doc/latex/rsc} |
| 399 |
% directory. |
| 400 |
% |
| 401 |
%\StopEventually{^^A |
| 402 |
% \bibliographystyle{rsc} |
| 403 |
% \PrintChanges |
| 404 |
% \PrintIndex |
| 405 |
% \bibliography{rsc} |
| 406 |
%} |
| 407 |
% |
| 408 |
%\section{Implementation} |
| 409 |
% |
| 410 |
%\begin{macro}{\ifrsc@super} |
| 411 |
%\begin{macro}{\ifrsc@usetitle} |
| 412 |
%\begin{macro}{\ifrsc@usedoi} |
| 413 |
%\begin{macro}{\ifrsc@linkdoi} |
| 414 |
%\begin{macro}{\ifrsc@mciteplus} |
| 415 |
%\begin{macro}{\rsc@maxauthors} |
| 416 |
% To make life easier for the user, the control values for the |
| 417 |
% bibliography are converted into \LaTeX\ package options using |
| 418 |
% \pkg{kvoptions}. |
| 419 |
% \begin{macrocode} |
| 420 |
%<*package> |
| 421 |
\RequirePackage{kvoptions} |
| 422 |
\SetupKeyvalOptions{ |
| 423 |
family = rsc, |
| 424 |
prefix = rsc@ |
| 425 |
} |
| 426 |
\DeclareBoolOption{linkdoi} |
| 427 |
\DeclareBoolOption{mciteplus} |
| 428 |
\DeclareBoolOption{super} |
| 429 |
\DeclareBoolOption{usetitle} |
| 430 |
\DeclareBoolOption{usedoi} |
| 431 |
\DeclareStringOption{maxauthors} |
| 432 |
\setkeys{rsc}{ |
| 433 |
linkdoi = false, |
| 434 |
mciteplus = true, |
| 435 |
maxauthors = 0, |
| 436 |
usetitle = false, |
| 437 |
usedoi = false, |
| 438 |
super = true |
| 439 |
} |
| 440 |
\ProcessKeyvalOptions{rsc} |
| 441 |
% \end{macrocode} |
| 442 |
%\end{macro} |
| 443 |
%\end{macro} |
| 444 |
%\end{macro} |
| 445 |
%\end{macro} |
| 446 |
%\end{macro} |
| 447 |
%\end{macro} |
| 448 |
% |
| 449 |
% Citation support is loaded. |
| 450 |
% \begin{macrocode} |
| 451 |
\ifrsc@super |
| 452 |
\RequirePackage[sort&compress,numbers,super]{natbib} |
| 453 |
\IfFileExists{natmove.sty}{% |
| 454 |
\RequirePackage{natmove}}{} |
| 455 |
\else |
| 456 |
\RequirePackage[sort&compress,numbers]{natbib} |
| 457 |
\fi |
| 458 |
% \end{macrocode} |
| 459 |
% |
| 460 |
%\begin{macro}{\rsc@bib@file} |
| 461 |
%\begin{macro}{\rsc@bib@message} |
| 462 |
%\begin{macro}{\rsc@bib@name} |
| 463 |
% Some information or creating the control file for \BibTeX\ is set up. |
| 464 |
% \begin{macrocode} |
| 465 |
\newwrite\rsc@bib@file |
| 466 |
\newcommand*{\rsc@bib@message}{% |
| 467 |
This is an auxiliary file used by the `rsc' package.^^J% |
| 468 |
This file may safely be deleted. It will be recreated as |
| 469 |
required.^^J |
| 470 |
} |
| 471 |
\newcommand*{\rsc@bib@name}{rsc-\jobname.bib} |
| 472 |
% \end{macrocode} |
| 473 |
%\end{macro} |
| 474 |
%\end{macro} |
| 475 |
%\end{macro} |
| 476 |
%\begin{macro}{\rsc@bib@write} |
| 477 |
%\begin{macro}{\rsc@bib@write@aux} |
| 478 |
% The control information for \BibTeX\ needs to be written to a special |
| 479 |
% file. The main writing macro is quite simple. Actually writing the |
| 480 |
% information is left to the code for \cs{bibliography}, so that this |
| 481 |
% only happens if needed. |
| 482 |
% \begin{macrocode} |
| 483 |
\newcommand*{\rsc@bib@write}{% |
| 484 |
\if@filesw |
| 485 |
\expandafter\rsc@bib@write@aux |
| 486 |
\fi |
| 487 |
} |
| 488 |
\AtBeginDocument{\rsc@bib@write} |
| 489 |
\newcommand*{\rsc@bib@write@aux}{% |
| 490 |
\immediate\openout\rsc@bib@file\rsc@bib@name\relax |
| 491 |
\immediate\write\rsc@bib@file{\rsc@bib@message}% |
| 492 |
\edef\@tempa##1##2{% |
| 493 |
\space\space##1\space = \space"##2",^^J% |
| 494 |
}% |
| 495 |
\immediate\write\rsc@bib@file{% |
| 496 |
@Control\string{% |
| 497 |
rsc-control,^^J% |
| 498 |
\@tempa{ctrl-use-title}{% |
| 499 |
\ifrsc@usetitle yes\else no\fi |
| 500 |
}% |
| 501 |
\@tempa{ctrl-use-doi-all}{% |
| 502 |
\ifrsc@usedoi yes\else no\fi |
| 503 |
}% |
| 504 |
\@tempa{ctrl-link-doi}{% |
| 505 |
\ifrsc@linkdoi yes\else no\fi |
| 506 |
}% |
| 507 |
\@tempa{ctrl-etal-number}{\rsc@maxauthors}% |
| 508 |
\string}^^J% |
| 509 |
}% |
| 510 |
\immediate\write\@auxout{% |
| 511 |
\string\citation\string{rsc-control\string}% |
| 512 |
}% |
| 513 |
\AtEndDocument{% |
| 514 |
\immediate\closeout\rsc@bib@file\relax |
| 515 |
}% |
| 516 |
} |
| 517 |
% \end{macrocode} |
| 518 |
%\end{macro} |
| 519 |
%\end{macro} |
| 520 |
% |
| 521 |
% The \pkg{mciteplus} package allows the construction of lists of |
| 522 |
% references with sub-letters. However, it might not be available, and |
| 523 |
% so it is only loaded if available: the \file{.bst} files should work |
| 524 |
% either way. |
| 525 |
% \begin{macrocode} |
| 526 |
\IfFileExists{mciteplus.sty}{% |
| 527 |
\ifrsc@mciteplus |
| 528 |
\RequirePackage{mciteplus} |
| 529 |
\fi |
| 530 |
}{} |
| 531 |
% \end{macrocode} |
| 532 |
% |
| 533 |
%\begin{macro}{\rsc@bibliography} |
| 534 |
%\begin{macro}{\bibliography} |
| 535 |
% The \cs{bibliography} macro is now patched so that everything works |
| 536 |
% correctly. |
| 537 |
% \begin{macrocode} |
| 538 |
\AtBeginDocument{% |
| 539 |
\let\rsc@bibliography\bibliography |
| 540 |
\renewcommand*{\bibliography}[1]{% |
| 541 |
\rsc@bibliography{rsc-\jobname,#1}% |
| 542 |
}% |
| 543 |
} |
| 544 |
%</package> |
| 545 |
% \end{macrocode} |
| 546 |
%\end{macro} |
| 547 |
%\end{macro} |
| 548 |
% |
| 549 |
%\Finale |
| 550 |
% |
| 551 |
%\iffalse |
| 552 |
%<*demo> |
| 553 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 554 |
%% This is a (brief) model paper for submission to the RSC using |
| 555 |
%% standard LaTeX packages |
| 556 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 557 |
\documentclass[a4paper]{article} |
| 558 |
|
| 559 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 560 |
%% A few core packages which are really essential |
| 561 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 562 |
\usepackage[T1]{fontenc} % Modern font encoding |
| 563 |
\usepackage{float} % For creating charts, graphs and schemes |
| 564 |
\usepackage{helvet} % Helvetica font for sans serif |
| 565 |
\usepackage{mathptmx} % Times font ("Word-like") |
| 566 |
\usepackage{rsc} % Loads natbib, etc. |
| 567 |
\usepackage{setspace} % For double-spacing |
| 568 |
\AtBeginDocument{\doublespacing} |
| 569 |
|
| 570 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 571 |
%% New floats are created for standard chemistry graphics |
| 572 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 573 |
\newfloat{chart}{htbp}{loc} |
| 574 |
\newfloat{graph}{htbp}{loh} |
| 575 |
\newfloat{scheme}{htbp}{los} |
| 576 |
|
| 577 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 578 |
%% Place any additional packages needed here. Only include packages |
| 579 |
%% which are essential, to avoid problems later. |
| 580 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 581 |
\usepackage[version=3]{mhchem} % Formula subscripts using \ce{} |
| 582 |
|
| 583 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 584 |
%% If issues arise when submitting your manuscript, you may want to |
| 585 |
%% un-comment the next line. This provides information on the |
| 586 |
%% version of every file you have used. |
| 587 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 588 |
%%\listfiles |
| 589 |
|
| 590 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 591 |
%% Place any additional macros here. Please use \newcommand* where |
| 592 |
%% possible, and avoid layout-changing macros (which are not used |
| 593 |
%% when typesetting). |
| 594 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 595 |
\newcommand*{\mycommand}[1]{\texttt{\emph{#1}}} |
| 596 |
|
| 597 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 598 |
%% Meta-data block |
| 599 |
%% --------------- |
| 600 |
%% Give details for all authors here, using the standard LaTeX |
| 601 |
%% method. |
| 602 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 603 |
\author{% |
| 604 |
Andrew N. Other\thanks{% |
| 605 |
Department of Chemistry, Unknown University, Unknown Town% |
| 606 |
}% |
| 607 |
\and |
| 608 |
I. Ken Groupleader\thanks{% |
| 609 |
Department of Chemistry, Unknown University, Unknown Town, |
| 610 |
E-mail: \texttt{[email protected]} |
| 611 |
}% |
| 612 |
\and |
| 613 |
Susanne K. Laborator\thanks{% |
| 614 |
Lead Discovery, BigPharma, Big Town, USA |
| 615 |
}% |
| 616 |
} |
| 617 |
|
| 618 |
|
| 619 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 620 |
%% The document title should be given as usual |
| 621 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 622 |
\title{A demonstration for submission to the RSC} |
| 623 |
|
| 624 |
\begin{document} |
| 625 |
|
| 626 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 627 |
%% Make a title, of course |
| 628 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 629 |
\maketitle |
| 630 |
|
| 631 |
\begin{abstract} |
| 632 |
This is an example document for writing a submission to the |
| 633 |
Royal Society of Chemistry. It does not seek to reproduce the |
| 634 |
layout of a published paper, but instead shows how the standard |
| 635 |
\LaTeX\ tools can be used to create a manuscript. |
| 636 |
\end{abstract} |
| 637 |
|
| 638 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 639 |
%% Start the main part of the manuscript here. |
| 640 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 641 |
\section{Introduction} |
| 642 |
This is a paragraph of text to fill the introduction of the |
| 643 |
demonstration file. |
| 644 |
|
| 645 |
\section{Results and discussion} |
| 646 |
|
| 647 |
\subsection{Outline} |
| 648 |
|
| 649 |
The document layout should follow the style of the journal concerned. |
| 650 |
Consult the appropriate Instructions for Authors to see what is |
| 651 |
required. Some journals, for example, do not allow sections in |
| 652 |
articles. |
| 653 |
|
| 654 |
\subsection{References} |
| 655 |
|
| 656 |
The rsc bibliography style requires the \textsf{natbib} package, |
| 657 |
which is loaded automatically by the \textsf{rsc} package. |
| 658 |
References can be made using the normal method; if the |
| 659 |
\textsf{natmove} package is available, citations can be placed |
| 660 |
before any punctuation, and they will be moved as necessary |
| 661 |
\cite{Mena2000,Abernethy2003}. The \textsf{natmove} package is |
| 662 |
part of the \textsf{achemso} bundle. |
| 663 |
|
| 664 |
The use of \textsf{natbib} allows the use of the various citation |
| 665 |
commands of that package: \citeauthor{Abernethy2003} have shown |
| 666 |
something, in \citeyear{Cotton1999}, or as given by |
| 667 |
Ref.~\citenum{Mena2000}. If you encounter problems with the |
| 668 |
citation macros, please check that your copy of \textsf{natbib} |
| 669 |
is up to date. |
| 670 |
|
| 671 |
Multiple citations to be combined into a list can be given as |
| 672 |
a single citation. This uses the \textsf{mciteplus} package |
| 673 |
\cite{Arduengo1992,*Eisenstein2005,*Arduengo1994}. Citations |
| 674 |
other than the first of the list should be indicated with a star. |
| 675 |
If the \textsf{mciteplus} package is not installed, the standard |
| 676 |
bibliography tools will still work but starred references will be |
| 677 |
ignored. |
| 678 |
|
| 679 |
\subsection{Floats} |
| 680 |
|
| 681 |
Setting up new float types is demonstrated in the premable, where |
| 682 |
charts, graphs and schemes are defined. As illustrated, the float |
| 683 |
is ``here'' if possible (Scheme~\ref{sch:example}). |
| 684 |
\begin{scheme} |
| 685 |
\centering |
| 686 |
Your scheme graphic would go here: \texttt{.eps} format\\ |
| 687 |
for \LaTeX\, or \texttt{.pdf} (or \texttt{.png}) for pdf\LaTeX\\ |
| 688 |
\textsc{ChemDraw} files are best saved as \texttt{.eps} files;\\ |
| 689 |
these can be scaled without loss of quality, and can be\\ |
| 690 |
converted to \texttt{.pdf} files easily using \texttt{eps2pdf}.\\ |
| 691 |
%\includegraphics{graphic} |
| 692 |
\caption{An example scheme} |
| 693 |
\label{sch:example} |
| 694 |
\end{scheme} |
| 695 |
|
| 696 |
\begin{figure} |
| 697 |
\centering |
| 698 |
As well as the standard float types \texttt{table}\\ |
| 699 |
and \texttt{figure}, the premable defines\\ |
| 700 |
\texttt{scheme}, \texttt{chart} and \texttt{graph}. |
| 701 |
\caption{An example figure} |
| 702 |
\label{fgr:example} |
| 703 |
\end{figure} |
| 704 |
|
| 705 |
Charts, figures and schemes do not necessarily have to be labelled or |
| 706 |
captioned. However, tables should always have a title. It is |
| 707 |
possible to include a number and label for a graphic without any |
| 708 |
title, using an empty argument to the \texttt{\textbackslash caption} |
| 709 |
macro. |
| 710 |
|
| 711 |
The use of the different floating environments is not required, but |
| 712 |
it is intended to make document preparation easier for authors. In |
| 713 |
general, you should place your graphics where they make logical |
| 714 |
sense; the production process will move them if needed. |
| 715 |
|
| 716 |
\subsection{Math(s)} |
| 717 |
|
| 718 |
This file does not load any particular additional support for |
| 719 |
mathematics. If the author \emph{needs} things like |
| 720 |
\textsf{amsmath}, they should be loaded in the preamble. However, |
| 721 |
the basics should work fine. Some inline material $ y = mx + c$ |
| 722 |
followed by some display. \[ A = \pi r^2 \] |
| 723 |
|
| 724 |
It is possible to label equations in the usual way. |
| 725 |
\begin{equation} |
| 726 |
\frac{\mathrm{d}}{\mathrm{d}x} r^2 = 2r |
| 727 |
\end{equation} |
| 728 |
This can also be used to have equations containing graphical |
| 729 |
content. |
| 730 |
\begin{equation} |
| 731 |
\textrm{Some content} |
| 732 |
%\includegraphics{graphic} |
| 733 |
\label{eqn:graphic} |
| 734 |
\end{equation} |
| 735 |
|
| 736 |
\section{Experimental} |
| 737 |
|
| 738 |
The usual experimental details should appear here. This could |
| 739 |
include a table, which can be referenced as Table~\ref{tbl:example}. |
| 740 |
Do not worry about the appearance of the table: this will be altered |
| 741 |
during production. |
| 742 |
\begin{table} |
| 743 |
\centering |
| 744 |
\caption{An example table} |
| 745 |
\label{tbl:example} |
| 746 |
\begin{tabular}{ll} |
| 747 |
\hline |
| 748 |
Header one & Header two \\ |
| 749 |
\hline |
| 750 |
Entry one & Entry two \\ |
| 751 |
Entry three & Entry four \\ |
| 752 |
Entry five & Entry five \\ |
| 753 |
Entry seven & Entry eight \\ |
| 754 |
\hline |
| 755 |
\end{tabular} |
| 756 |
\end{table} |
| 757 |
|
| 758 |
Adding notes to tables can be complicated. Perhaps the easiest |
| 759 |
method is to generate these using the basic |
| 760 |
\texttt{\textbackslash textsuperscript} and |
| 761 |
\texttt{\textbackslash emph} macros, as illustrated |
| 762 |
(\ref{tbl:notes}). |
| 763 |
\begin{table} |
| 764 |
\caption{A table with notes} |
| 765 |
\label{tbl:notes} |
| 766 |
\begin{tabular}{ll} |
| 767 |
\hline |
| 768 |
Header one & Header two \\ |
| 769 |
\hline |
| 770 |
Entry one\textsuperscript{\emph{a}} |
| 771 |
& Entry two \\ |
| 772 |
Entry three\textsuperscript{\emph{b}} |
| 773 |
& Entry four \\ |
| 774 |
\hline |
| 775 |
\end{tabular} |
| 776 |
|
| 777 |
\textsuperscript{\emph{a}} Some text; |
| 778 |
\textsuperscript{\emph{b}} Some more text. |
| 779 |
\end{table} |
| 780 |
|
| 781 |
The example file also loads the \textsf{mhchem} package, so |
| 782 |
that formulas are easy to input: \texttt{\textbackslash |
| 783 |
\ce\{H2SO4\}} gives \ce{H2SO4}. See the use in the |
| 784 |
bibliography file (when using titles in the references |
| 785 |
section). |
| 786 |
|
| 787 |
The use of new commands should be limited to simple things which will |
| 788 |
not interfere with the production process. For example, |
| 789 |
\texttt{\textbackslash mycommand} has been defined in this example, |
| 790 |
to give italic, monospaced text: \mycommand{some text}. |
| 791 |
|
| 792 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 793 |
%% The appropriate \bibliographystyle and \bibliography commands |
| 794 |
%% should be placed here. |
| 795 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 796 |
\bibliographystyle{rsc} |
| 797 |
\bibliography{rsc} |
| 798 |
|
| 799 |
\end{document} |
| 800 |
%</demo> |
| 801 |
%<*bst> |
| 802 |
ENTRY |
| 803 |
{ address |
| 804 |
author |
| 805 |
booktitle |
| 806 |
chapter |
| 807 |
ctrl-use-title |
| 808 |
ctrl-etal-number |
| 809 |
ctrl-link-doi |
| 810 |
ctrl-use-doi-all |
| 811 |
doi |
| 812 |
edition |
| 813 |
editor |
| 814 |
howpublished |
| 815 |
institution |
| 816 |
journal |
| 817 |
key |
| 818 |
note |
| 819 |
number |
| 820 |
organization |
| 821 |
pages |
| 822 |
publisher |
| 823 |
school |
| 824 |
series |
| 825 |
title |
| 826 |
type |
| 827 |
url |
| 828 |
volume |
| 829 |
year |
| 830 |
} |
| 831 |
{} |
| 832 |
{ label |
| 833 |
extra.label |
| 834 |
short.list |
| 835 |
} |
| 836 |
|
| 837 |
INTEGERS { output.state before.all mid.sentence } |
| 838 |
INTEGERS { after.sentence after.block after.item } |
| 839 |
INTEGERS { author.or.editor } |
| 840 |
|
| 841 |
FUNCTION {init.state.consts} |
| 842 |
{ #0 'before.all := |
| 843 |
#1 'mid.sentence := |
| 844 |
#2 'after.sentence := |
| 845 |
#3 'after.block := |
| 846 |
#4 'after.item := |
| 847 |
} |
| 848 |
|
| 849 |
INTEGERS { is.use.title etal.number use.doi.all link.doi } |
| 850 |
|
| 851 |
%% #0 turns off the display of the title for articles |
| 852 |
%% #1 enables |
| 853 |
FUNCTION {default.is.use.title} { #0 } |
| 854 |
|
| 855 |
%% The number of names that force "et al." to be used |
| 856 |
FUNCTION {default.etal.number} { #0 } |
| 857 |
|
| 858 |
%% #0 turns off the display of the DOI for articles |
| 859 |
%% #1 enables |
| 860 |
FUNCTION {default.use.doi.all} { #0 } |
| 861 |
|
| 862 |
%% #0 turns off hyperlinks for DOI |
| 863 |
%% #1 enables |
| 864 |
FUNCTION {default.link.doi} { #0 } |
| 865 |
|
| 866 |
FUNCTION {add.comma} |
| 867 |
{ ", " * } |
| 868 |
|
| 869 |
STRINGS { s t } |
| 870 |
|
| 871 |
FUNCTION {output.nonnull} |
| 872 |
{ 's := |
| 873 |
output.state mid.sentence = |
| 874 |
{ add.comma write$ } |
| 875 |
{ output.state after.block = |
| 876 |
{ add.comma write$ |
| 877 |
newline$ |
| 878 |
"\newblock " write$ |
| 879 |
} |
| 880 |
{ output.state before.all = |
| 881 |
'write$ |
| 882 |
{ output.state after.item = |
| 883 |
{ " " * write$ } |
| 884 |
{ add.period$ " " * write$ } |
| 885 |
if$ |
| 886 |
} |
| 887 |
if$ |
| 888 |
} |
| 889 |
if$ |
| 890 |
mid.sentence 'output.state := |
| 891 |
} |
| 892 |
if$ |
| 893 |
s |
| 894 |
} |
| 895 |
|
| 896 |
FUNCTION {output} |
| 897 |
{ duplicate$ empty$ |
| 898 |
'pop$ |
| 899 |
'output.nonnull |
| 900 |
if$ |
| 901 |
} |
| 902 |
|
| 903 |
FUNCTION {output.check} |
| 904 |
{ 't := |
| 905 |
duplicate$ empty$ |
| 906 |
{ pop$ "Empty " t * " in " * cite$ * warning$ } |
| 907 |
'output.nonnull |
| 908 |
if$ |
| 909 |
} |
| 910 |
|
| 911 |
INTEGERS { would.add.period.textlen } |
| 912 |
|
| 913 |
FUNCTION {would.add.period} |
| 914 |
{ duplicate$ |
| 915 |
add.period$ |
| 916 |
text.length$ |
| 917 |
'would.add.period.textlen := |
| 918 |
duplicate$ |
| 919 |
text.length$ |
| 920 |
would.add.period.textlen = |
| 921 |
{ #0 } |
| 922 |
{ #1 } |
| 923 |
if$ |
| 924 |
} |
| 925 |
|
| 926 |
FUNCTION {fin.entry} |
| 927 |
{ would.add.period |
| 928 |
{ "\relax" * write$ newline$ |
| 929 |
"\mciteBstWouldAddEndPuncttrue" write$ newline$ |
| 930 |
"\mciteSetBstMidEndSepPunct{\mcitedefaultmidpunct}" |
| 931 |
write$ newline$ |
| 932 |
"{\mcitedefaultendpunct}{\mcitedefaultseppunct}\relax" |
| 933 |
} |
| 934 |
{ "\relax" * write$ newline$ |
| 935 |
"\mciteBstWouldAddEndPunctfalse" write$ newline$ |
| 936 |
"\mciteSetBstMidEndSepPunct{\mcitedefaultmidpunct}" |
| 937 |
write$ newline$ |
| 938 |
"{}{\mcitedefaultseppunct}\relax" |
| 939 |
} |
| 940 |
if$ |
| 941 |
write$ |
| 942 |
newline$ |
| 943 |
"\EndOfBibitem" write$ |
| 944 |
} |
| 945 |
|
| 946 |
FUNCTION {not} |
| 947 |
{ { #0 } |
| 948 |
{ #1 } |
| 949 |
if$ |
| 950 |
} |
| 951 |
|
| 952 |
FUNCTION {and} |
| 953 |
{ 'skip$ |
| 954 |
{ pop$ #0 } |
| 955 |
if$ |
| 956 |
} |
| 957 |
|
| 958 |
FUNCTION {or} |
| 959 |
{ { pop$ #1 } |
| 960 |
'skip$ |
| 961 |
if$ |
| 962 |
} |
| 963 |
|
| 964 |
FUNCTION {field.or.null} |
| 965 |
{ duplicate$ empty$ |
| 966 |
{ pop$ "" } |
| 967 |
'skip$ |
| 968 |
if$ |
| 969 |
} |
| 970 |
|
| 971 |
FUNCTION {emphasize} |
| 972 |
{ duplicate$ empty$ |
| 973 |
{ pop$ "" } |
| 974 |
{ "\emph{" swap$ * "}" * } |
| 975 |
if$ |
| 976 |
} |
| 977 |
|
| 978 |
FUNCTION {boldface} |
| 979 |
{ duplicate$ empty$ |
| 980 |
{ pop$ "" } |
| 981 |
{ "\textbf{" swap$ * "}" * } |
| 982 |
if$ |
| 983 |
} |
| 984 |
|
| 985 |
FUNCTION {paren} |
| 986 |
{ duplicate$ empty$ |
| 987 |
{ pop$ "" } |
| 988 |
{ "(" swap$ * ")" * } |
| 989 |
if$ |
| 990 |
} |
| 991 |
|
| 992 |
FUNCTION {bbl.and} |
| 993 |
{ "and" } |
| 994 |
|
| 995 |
FUNCTION {bbl.chapter} |
| 996 |
%<rsc>{ "ch." } |
| 997 |
%<angew>{ "Chapter" } |
| 998 |
|
| 999 |
FUNCTION {bbl.doi} |
| 1000 |
%<rsc>{ "DOI:" } |
| 1001 |
%<angew>{ "DOI" } |
| 1002 |
|
| 1003 |
FUNCTION {bbl.editor} |
| 1004 |
%<rsc>{ "ed." } |
| 1005 |
%<angew>{ "Ed.:" } |
| 1006 |
|
| 1007 |
%<angew>FUNCTION {bbl.editors} |
| 1008 |
%<angew>{ "Eds.:" } |
| 1009 |
|
| 1010 |
FUNCTION {bbl.edition} |
| 1011 |
%<rsc>{ "edn." } |
| 1012 |
%<angew>{ "ed." } |
| 1013 |
|
| 1014 |
FUNCTION {bbl.etal} |
| 1015 |
{ "et~al." emphasize } |
| 1016 |
|
| 1017 |
FUNCTION {bbl.in} |
| 1018 |
{ "in" } |
| 1019 |
|
| 1020 |
FUNCTION {bbl.inpress} |
| 1021 |
{ "in press" } |
| 1022 |
|
| 1023 |
|
| 1024 |
FUNCTION {bbl.msc} |
| 1025 |
%<rsc>{ "M.Sc. thesis" } |
| 1026 |
%<angew>{ "MSc thesis" } |
| 1027 |
|
| 1028 |
FUNCTION {bbl.page} |
| 1029 |
{ "p." } |
| 1030 |
|
| 1031 |
FUNCTION {bbl.pages} |
| 1032 |
{ "pp." } |
| 1033 |
|
| 1034 |
FUNCTION {bbl.phd} |
| 1035 |
%<rsc>{ "Ph.D. thesis" } |
| 1036 |
%<angew>{ "PhD thesis" } |
| 1037 |
|
| 1038 |
FUNCTION {bbl.submitted} |
| 1039 |
{ "submitted for publication" } |
| 1040 |
|
| 1041 |
FUNCTION {bbl.techreport} |
| 1042 |
{ "Technical Report" } |
| 1043 |
|
| 1044 |
FUNCTION {bbl.volume} |
| 1045 |
%<rsc>{ "vol." } |
| 1046 |
%<angew>{ "Vol." } |
| 1047 |
|
| 1048 |
FUNCTION {bbl.first} |
| 1049 |
{ "1st" } |
| 1050 |
|
| 1051 |
FUNCTION {bbl.second} |
| 1052 |
{ "2nd" } |
| 1053 |
|
| 1054 |
FUNCTION {bbl.third} |
| 1055 |
{ "3rd" } |
| 1056 |
|
| 1057 |
FUNCTION {bbl.fourth} |
| 1058 |
{ "4th" } |
| 1059 |
|
| 1060 |
FUNCTION {bbl.fifth} |
| 1061 |
{ "5th" } |
| 1062 |
|
| 1063 |
FUNCTION {bbl.st} |
| 1064 |
{ "st" } |
| 1065 |
|
| 1066 |
FUNCTION {bbl.nd} |
| 1067 |
{ "nd" } |
| 1068 |
|
| 1069 |
FUNCTION {bbl.rd} |
| 1070 |
{ "rd" } |
| 1071 |
|
| 1072 |
FUNCTION {bbl.th} |
| 1073 |
{ "th" } |
| 1074 |
|
| 1075 |
FUNCTION {eng.ord} |
| 1076 |
{ duplicate$ "1" swap$ * |
| 1077 |
#-2 #1 substring$ "1" = |
| 1078 |
{ bbl.th * } |
| 1079 |
{ duplicate$ #-1 #1 substring$ |
| 1080 |
duplicate$ "1" = |
| 1081 |
{ pop$ bbl.st * } |
| 1082 |
{ duplicate$ "2" = |
| 1083 |
{ pop$ bbl.nd * } |
| 1084 |
{ "3" = |
| 1085 |
{ bbl.rd * } |
| 1086 |
{ bbl.th * } |
| 1087 |
if$ |
| 1088 |
} |
| 1089 |
if$ |
| 1090 |
} |
| 1091 |
if$ |
| 1092 |
} |
| 1093 |
if$ |
| 1094 |
} |
| 1095 |
|
| 1096 |
INTEGERS{ l } |
| 1097 |
|
| 1098 |
FUNCTION{string.length} |
| 1099 |
{ #1 'l := |
| 1100 |
{ duplicate$ duplicate$ #1 l substring$ = not } |
| 1101 |
{ l #1 + 'l := } |
| 1102 |
while$ |
| 1103 |
pop$ l |
| 1104 |
} |
| 1105 |
|
| 1106 |
STRINGS{replace find text} |
| 1107 |
|
| 1108 |
INTEGERS{find_length} |
| 1109 |
|
| 1110 |
FUNCTION{find.replace} |
| 1111 |
{ 'replace := |
| 1112 |
'find := |
| 1113 |
'text := |
| 1114 |
find string.length 'find_length := |
| 1115 |
"" |
| 1116 |
{ text empty$ not } |
| 1117 |
{ text #1 find_length substring$ find = |
| 1118 |
{ replace * |
| 1119 |
text #1 find_length + global.max$ substring$ 'text := |
| 1120 |
} |
| 1121 |
{ text #1 #1 substring$ * |
| 1122 |
text #2 global.max$ substring$ 'text := |
| 1123 |
} |
| 1124 |
if$ |
| 1125 |
} |
| 1126 |
while$ |
| 1127 |
} |
| 1128 |
|
| 1129 |
FUNCTION {chr.to.value} |
| 1130 |
{ chr.to.int$ #48 - |
| 1131 |
duplicate$ duplicate$ |
| 1132 |
#0 < swap$ #9 > or |
| 1133 |
{ #48 + int.to.chr$ |
| 1134 |
" is not a number..." * |
| 1135 |
warning$ |
| 1136 |
pop$ #0 |
| 1137 |
} |
| 1138 |
{} |
| 1139 |
if$ |
| 1140 |
} |
| 1141 |
|
| 1142 |
FUNCTION{is.a.digit} |
| 1143 |
{ duplicate$ "" = |
| 1144 |
{pop$ #0} |
| 1145 |
{chr.to.int$ #48 - duplicate$ |
| 1146 |
#0 < swap$ #9 > or not} |
| 1147 |
if$ |
| 1148 |
} |
| 1149 |
|
| 1150 |
FUNCTION{is.a.number} |
| 1151 |
{ |
| 1152 |
{ duplicate$ #1 #1 substring$ is.a.digit } |
| 1153 |
{#2 global.max$ substring$} |
| 1154 |
while$ |
| 1155 |
"" = |
| 1156 |
} |
| 1157 |
|
| 1158 |
FUNCTION {extract.num} |
| 1159 |
{ duplicate$ 't := |
| 1160 |
"" 's := |
| 1161 |
{ t empty$ not } |
| 1162 |
{ t #1 #1 substring$ |
| 1163 |
t #2 global.max$ substring$ 't := |
| 1164 |
duplicate$ is.a.number |
| 1165 |
{ s swap$ * 's := } |
| 1166 |
{ pop$ "" 't := } |
| 1167 |
if$ |
| 1168 |
} |
| 1169 |
while$ |
| 1170 |
s empty$ |
| 1171 |
'skip$ |
| 1172 |
{ pop$ s } |
| 1173 |
if$ |
| 1174 |
} |
| 1175 |
|
| 1176 |
FUNCTION {bibinfo.check} |
| 1177 |
{ swap$ |
| 1178 |
duplicate$ missing$ |
| 1179 |
{ pop$ pop$ |
| 1180 |
"" |
| 1181 |
} |
| 1182 |
{ duplicate$ empty$ |
| 1183 |
{ |
| 1184 |
swap$ pop$ |
| 1185 |
} |
| 1186 |
{ swap$ |
| 1187 |
pop$ |
| 1188 |
} |
| 1189 |
if$ |
| 1190 |
} |
| 1191 |
if$ |
| 1192 |
} |
| 1193 |
|
| 1194 |
FUNCTION {convert.edition} |
| 1195 |
{ extract.num "l" change.case$ 's := |
| 1196 |
s "first" = s "1" = or |
| 1197 |
{ bbl.first 't := } |
| 1198 |
{ s "second" = s "2" = or |
| 1199 |
{ bbl.second 't := } |
| 1200 |
{ s "third" = s "3" = or |
| 1201 |
{ bbl.third 't := } |
| 1202 |
{ s "fourth" = s "4" = or |
| 1203 |
{ bbl.fourth 't := } |
| 1204 |
{ s "fifth" = s "5" = or |
| 1205 |
{ bbl.fifth 't := } |
| 1206 |
{ s #1 #1 substring$ is.a.number |
| 1207 |
{ s eng.ord 't := } |
| 1208 |
{ edition 't := } |
| 1209 |
if$ |
| 1210 |
} |
| 1211 |
if$ |
| 1212 |
} |
| 1213 |
if$ |
| 1214 |
} |
| 1215 |
if$ |
| 1216 |
} |
| 1217 |
if$ |
| 1218 |
} |
| 1219 |
if$ |
| 1220 |
t |
| 1221 |
} |
| 1222 |
|
| 1223 |
FUNCTION {tie.or.space.connect} |
| 1224 |
{ duplicate$ text.length$ #3 < |
| 1225 |
{ "~" } |
| 1226 |
{ " " } |
| 1227 |
if$ |
| 1228 |
swap$ * * |
| 1229 |
} |
| 1230 |
|
| 1231 |
FUNCTION {space.connect} |
| 1232 |
{ " " swap$ * * } |
| 1233 |
|
| 1234 |
INTEGERS { nameptr namesleft numnames } |
| 1235 |
|
| 1236 |
FUNCTION {format.names} |
| 1237 |
{ 's := |
| 1238 |
#1 'nameptr := |
| 1239 |
s num.names$ 'numnames := |
| 1240 |
numnames 'namesleft := |
| 1241 |
numnames etal.number > etal.number #0 > and |
| 1242 |
{ s #1 "{f.~}{vv~}{ll}{, jj}" format.name$ 't := |
| 1243 |
t bbl.etal space.connect |
| 1244 |
} |
| 1245 |
{ |
| 1246 |
{ namesleft #0 > } |
| 1247 |
{ s nameptr "{f.~}{vv~}{ll}{, jj}" format.name$ 't := |
| 1248 |
nameptr #1 > |
| 1249 |
{ namesleft #1 > |
| 1250 |
{ add.comma t * } |
| 1251 |
{ numnames #2 > |
| 1252 |
{ "" * } |
| 1253 |
'skip$ |
| 1254 |
if$ |
| 1255 |
t "others" = |
| 1256 |
{ bbl.etal space.connect } |
| 1257 |
%<rsc> { bbl.and space.connect t space.connect } |
| 1258 |
%<angew> { add.comma t * } |
| 1259 |
if$ |
| 1260 |
} |
| 1261 |
if$ |
| 1262 |
} |
| 1263 |
't |
| 1264 |
if$ |
| 1265 |
nameptr #1 + 'nameptr := |
| 1266 |
namesleft #1 - 'namesleft := |
| 1267 |
} |
| 1268 |
while$ |
| 1269 |
} |
| 1270 |
if$ |
| 1271 |
} |
| 1272 |
|
| 1273 |
FUNCTION {format.authors} |
| 1274 |
{ author empty$ |
| 1275 |
{ "" } |
| 1276 |
{ #1 'author.or.editor := |
| 1277 |
author format.names } |
| 1278 |
if$ |
| 1279 |
} |
| 1280 |
|
| 1281 |
FUNCTION {strip.comma} |
| 1282 |
{ duplicate$ |
| 1283 |
string.length 'find_length := |
| 1284 |
duplicate$ |
| 1285 |
find_length #1 - #1 substring$ |
| 1286 |
"," = |
| 1287 |
{ #1 find_length #2 - substring$ |
| 1288 |
" " * |
| 1289 |
} |
| 1290 |
'skip$ |
| 1291 |
if$ |
| 1292 |
} |
| 1293 |
|
| 1294 |
FUNCTION {format.editors} |
| 1295 |
{ editor empty$ |
| 1296 |
{ "" } |
| 1297 |
{ #2 'author.or.editor := |
| 1298 |
%<rsc> bbl.editor " " * * |
| 1299 |
%<rsc> editor format.names |
| 1300 |
%<angew> strip.comma |
| 1301 |
%<angew> editor num.names$ #1 > |
| 1302 |
%<angew> { bbl.editors } |
| 1303 |
%<angew> { bbl.editor } |
| 1304 |
%<angew> if$ |
| 1305 |
%<angew> " " * |
| 1306 |
%<angew> editor format.names * paren |
| 1307 |
} |
| 1308 |
if$ |
| 1309 |
} |
| 1310 |
|
| 1311 |
FUNCTION {format.doi} |
| 1312 |
{ use.doi.all |
| 1313 |
{ doi empty$ |
| 1314 |
'skip$ |
| 1315 |
{ |
| 1316 |
link.doi |
| 1317 |
{ |
| 1318 |
"\href{http://dx.doi.org/" |
| 1319 |
doi * |
| 1320 |
"}{" * |
| 1321 |
bbl.doi doi tie.or.space.connect * |
| 1322 |
"}" * |
| 1323 |
} |
| 1324 |
{ bbl.doi doi tie.or.space.connect } |
| 1325 |
if$ |
| 1326 |
output |
| 1327 |
} |
| 1328 |
if$ |
| 1329 |
} |
| 1330 |
'skip$ |
| 1331 |
if$ |
| 1332 |
} |
| 1333 |
|
| 1334 |
FUNCTION {n.separate.multi} |
| 1335 |
{ 't := |
| 1336 |
"" |
| 1337 |
#0 'numnames := |
| 1338 |
t text.length$ #4 > t is.a.number and |
| 1339 |
{ |
| 1340 |
{ t empty$ not } |
| 1341 |
{ t #-1 #1 substring$ is.a.number |
| 1342 |
{ numnames #1 + 'numnames := } |
| 1343 |
{ #0 'numnames := } |
| 1344 |
if$ |
| 1345 |
t #-1 #1 substring$ swap$ * |
| 1346 |
t #-2 global.max$ substring$ 't := |
| 1347 |
numnames #4 = |
| 1348 |
{ duplicate$ #1 #1 substring$ swap$ |
| 1349 |
#2 global.max$ substring$ |
| 1350 |
"\," swap$ * * |
| 1351 |
#1 'numnames := |
| 1352 |
} |
| 1353 |
'skip$ |
| 1354 |
if$ |
| 1355 |
} |
| 1356 |
while$ |
| 1357 |
} |
| 1358 |
{ t swap$ * } |
| 1359 |
if$ |
| 1360 |
} |
| 1361 |
|
| 1362 |
FUNCTION {format.bvolume} |
| 1363 |
{ volume empty$ |
| 1364 |
{ "" } |
| 1365 |
{ bbl.volume volume tie.or.space.connect } |
| 1366 |
if$ |
| 1367 |
} |
| 1368 |
|
| 1369 |
FUNCTION {format.cvolume} |
| 1370 |
{ volume empty$ |
| 1371 |
{ "" } |
| 1372 |
{ |
| 1373 |
bbl.volume volume tie.or.space.connect |
| 1374 |
series empty$ |
| 1375 |
'skip$ |
| 1376 |
{ " of " * series * } |
| 1377 |
if$ |
| 1378 |
} |
| 1379 |
if$ |
| 1380 |
} |
| 1381 |
|
| 1382 |
FUNCTION {format.title.noemph} |
| 1383 |
{ 't := |
| 1384 |
t empty$ |
| 1385 |
{ "" } |
| 1386 |
{ t } |
| 1387 |
if$ |
| 1388 |
} |
| 1389 |
|
| 1390 |
FUNCTION {format.title} |
| 1391 |
{ 't := |
| 1392 |
t empty$ |
| 1393 |
{ "" } |
| 1394 |
{ t emphasize } |
| 1395 |
if$ |
| 1396 |
} |
| 1397 |
|
| 1398 |
FUNCTION {format.url} |
| 1399 |
{ url empty$ |
| 1400 |
{ "" } |
| 1401 |
{ "\url{" url * "}" * } |
| 1402 |
if$ |
| 1403 |
} |
| 1404 |
|
| 1405 |
FUNCTION {format.title.vol} |
| 1406 |
{ 't := |
| 1407 |
t empty$ |
| 1408 |
{ "" } |
| 1409 |
{ t emphasize } |
| 1410 |
if$ |
| 1411 |
volume empty$ |
| 1412 |
'skip$ |
| 1413 |
{ format.bvolume emphasize |
| 1414 |
swap$ add.comma swap$ * |
| 1415 |
} |
| 1416 |
if$ |
| 1417 |
} |
| 1418 |
|
| 1419 |
FUNCTION {format.full.names} |
| 1420 |
{'s := |
| 1421 |
#1 'nameptr := |
| 1422 |
s num.names$ 'numnames := |
| 1423 |
numnames 'namesleft := |
| 1424 |
{ namesleft #0 > } |
| 1425 |
{ s nameptr |
| 1426 |
"{vv~}{ll}" format.name$ 't := |
| 1427 |
nameptr #1 > |
| 1428 |
{ |
| 1429 |
namesleft #1 > |
| 1430 |
{ ", " * t * } |
| 1431 |
{ |
| 1432 |
numnames #2 > |
| 1433 |
{ "," * } |
| 1434 |
'skip$ |
| 1435 |
if$ |
| 1436 |
t "others" = |
| 1437 |
{ bbl.etal * } |
| 1438 |
{ bbl.and space.connect t space.connect } |
| 1439 |
if$ |
| 1440 |
} |
| 1441 |
if$ |
| 1442 |
} |
| 1443 |
't |
| 1444 |
if$ |
| 1445 |
nameptr #1 + 'nameptr := |
| 1446 |
namesleft #1 - 'namesleft := |
| 1447 |
} |
| 1448 |
while$ |
| 1449 |
} |
| 1450 |
|
| 1451 |
FUNCTION {author.editor.full} |
| 1452 |
{ author empty$ |
| 1453 |
{ editor empty$ |
| 1454 |
{ "" } |
| 1455 |
{ editor format.full.names } |
| 1456 |
if$ |
| 1457 |
} |
| 1458 |
{ author format.full.names } |
| 1459 |
if$ |
| 1460 |
} |
| 1461 |
|
| 1462 |
FUNCTION {author.full} |
| 1463 |
{ author empty$ |
| 1464 |
{ "" } |
| 1465 |
{ author format.full.names } |
| 1466 |
if$ |
| 1467 |
} |
| 1468 |
|
| 1469 |
FUNCTION {editor.full} |
| 1470 |
{ editor empty$ |
| 1471 |
{ "" } |
| 1472 |
{ editor format.full.names } |
| 1473 |
if$ |
| 1474 |
} |
| 1475 |
|
| 1476 |
FUNCTION {make.full.names} |
| 1477 |
{ type$ "book" = |
| 1478 |
type$ "inbook" = |
| 1479 |
or |
| 1480 |
'author.editor.full |
| 1481 |
{ type$ "proceedings" = |
| 1482 |
'editor.full |
| 1483 |
'author.full |
| 1484 |
if$ |
| 1485 |
} |
| 1486 |
if$ |
| 1487 |
} |
| 1488 |
|
| 1489 |
FUNCTION {output.bibitem} { newline$ |
| 1490 |
"\bibitem[" write$ |
| 1491 |
label write$ |
| 1492 |
")" make.full.names duplicate$ short.list = |
| 1493 |
{ pop$ } |
| 1494 |
{ * } |
| 1495 |
if$ |
| 1496 |
"]{" * write$ |
| 1497 |
cite$ write$ |
| 1498 |
"}" write$ |
| 1499 |
newline$ |
| 1500 |
"" |
| 1501 |
before.all 'output.state := |
| 1502 |
} |
| 1503 |
|
| 1504 |
FUNCTION {n.dashify} { 't := |
| 1505 |
"" |
| 1506 |
{ t empty$ not } |
| 1507 |
{ t #1 #1 substring$ "-" = |
| 1508 |
{ t #1 #2 substring$ "--" = not |
| 1509 |
{ "--" * |
| 1510 |
t #2 global.max$ substring$ 't := |
| 1511 |
} |
| 1512 |
{ { t #1 #1 substring$ "-" = } |
| 1513 |
{ "-" * |
| 1514 |
t #2 global.max$ substring$ 't := |
| 1515 |
} |
| 1516 |
while$ |
| 1517 |
} |
| 1518 |
if$ |
| 1519 |
} |
| 1520 |
{ t #1 #1 substring$ * |
| 1521 |
t #2 global.max$ substring$ 't := |
| 1522 |
} |
| 1523 |
if$ |
| 1524 |
} |
| 1525 |
while$ |
| 1526 |
} |
| 1527 |
|
| 1528 |
FUNCTION {format.date} |
| 1529 |
{ year empty$ |
| 1530 |
{ "" } |
| 1531 |
%<rsc> 'year |
| 1532 |
%<angew> { year boldface } |
| 1533 |
if$ |
| 1534 |
} |
| 1535 |
|
| 1536 |
FUNCTION {format.bdate} |
| 1537 |
{ year empty$ |
| 1538 |
{ "There's no year in " cite$ * warning$ } |
| 1539 |
%<rsc> 'year |
| 1540 |
%<angew> { year boldface } |
| 1541 |
if$ |
| 1542 |
} |
| 1543 |
|
| 1544 |
FUNCTION {either.or.check} |
| 1545 |
{ empty$ |
| 1546 |
'pop$ |
| 1547 |
{ "Can't use both " swap$ * " fields in " |
| 1548 |
* cite$ * warning$ } |
| 1549 |
if$ |
| 1550 |
} |
| 1551 |
|
| 1552 |
FUNCTION {format.edition} |
| 1553 |
{ edition duplicate$ empty$ |
| 1554 |
'skip$ |
| 1555 |
{ convert.edition |
| 1556 |
bbl.edition bibinfo.check |
| 1557 |
" " * bbl.edition * |
| 1558 |
} |
| 1559 |
if$ |
| 1560 |
} |
| 1561 |
|
| 1562 |
INTEGERS { multiresult } |
| 1563 |
|
| 1564 |
FUNCTION {multi.page.check} |
| 1565 |
{ 't := |
| 1566 |
#0 'multiresult := |
| 1567 |
{ multiresult not |
| 1568 |
t empty$ not |
| 1569 |
and |
| 1570 |
} |
| 1571 |
{ t #1 #1 substring$ |
| 1572 |
duplicate$ "-" = |
| 1573 |
swap$ duplicate$ "," = |
| 1574 |
swap$ "+" = |
| 1575 |
or or |
| 1576 |
{ #1 'multiresult := } |
| 1577 |
{ t #2 global.max$ substring$ 't := } |
| 1578 |
if$ |
| 1579 |
} |
| 1580 |
while$ |
| 1581 |
multiresult |
| 1582 |
} |
| 1583 |
|
| 1584 |
FUNCTION {format.pages} |
| 1585 |
{ pages empty$ |
| 1586 |
{ "" } |
| 1587 |
{ pages multi.page.check |
| 1588 |
{ bbl.pages pages n.dashify tie.or.space.connect } |
| 1589 |
{ bbl.page pages tie.or.space.connect } |
| 1590 |
if$ |
| 1591 |
} |
| 1592 |
if$ |
| 1593 |
} |
| 1594 |
|
| 1595 |
FUNCTION {format.pages.required} |
| 1596 |
{ pages empty$ |
| 1597 |
{ "" |
| 1598 |
"There are no page numbers for " cite$ * warning$ |
| 1599 |
output |
| 1600 |
} |
| 1601 |
{ pages multi.page.check |
| 1602 |
{ bbl.pages pages n.dashify tie.or.space.connect } |
| 1603 |
{ bbl.page pages tie.or.space.connect } |
| 1604 |
if$ |
| 1605 |
} |
| 1606 |
if$ |
| 1607 |
} |
| 1608 |
|
| 1609 |
FUNCTION {format.pages.nopp} |
| 1610 |
{ pages empty$ |
| 1611 |
{ "" |
| 1612 |
"There are no page numbers for " cite$ * warning$ |
| 1613 |
output |
| 1614 |
} |
| 1615 |
{ pages multi.page.check |
| 1616 |
{ pages n.dashify space.connect } |
| 1617 |
{ pages space.connect } |
| 1618 |
if$ |
| 1619 |
} |
| 1620 |
if$ |
| 1621 |
} |
| 1622 |
|
| 1623 |
FUNCTION {format.pages.patent} |
| 1624 |
{ pages empty$ |
| 1625 |
{ "There is no patent number for " cite$ * warning$ } |
| 1626 |
{ pages multi.page.check |
| 1627 |
{ pages n.dashify } |
| 1628 |
%<rsc> { pages n.separate.multi } |
| 1629 |
%<angew> { pages } |
| 1630 |
if$ |
| 1631 |
} |
| 1632 |
if$ |
| 1633 |
} |
| 1634 |
|
| 1635 |
FUNCTION {format.vol.pages} |
| 1636 |
%<rsc>{ volume boldface field.or.null |
| 1637 |
%<angew>{ volume emphasize field.or.null |
| 1638 |
duplicate$ empty$ |
| 1639 |
{ pop$ format.pages.required } |
| 1640 |
{ add.comma pages n.dashify * } |
| 1641 |
if$ |
| 1642 |
} |
| 1643 |
|
| 1644 |
FUNCTION {format.chapter.pages} |
| 1645 |
{ chapter empty$ |
| 1646 |
'format.pages |
| 1647 |
{ type empty$ |
| 1648 |
{ bbl.chapter } |
| 1649 |
{ type "l" change.case$ } |
| 1650 |
if$ |
| 1651 |
chapter tie.or.space.connect |
| 1652 |
pages empty$ |
| 1653 |
'skip$ |
| 1654 |
{ add.comma format.pages * } |
| 1655 |
if$ |
| 1656 |
} |
| 1657 |
if$ |
| 1658 |
} |
| 1659 |
|
| 1660 |
FUNCTION {format.title.in} |
| 1661 |
{ 's := |
| 1662 |
%<angew> after.item 'output.state := |
| 1663 |
s empty$ |
| 1664 |
{ "" } |
| 1665 |
{ editor empty$ |
| 1666 |
{ bbl.in s format.title space.connect } |
| 1667 |
{ bbl.in s format.title space.connect |
| 1668 |
add.comma format.editors * |
| 1669 |
} |
| 1670 |
if$ |
| 1671 |
} |
| 1672 |
if$ |
| 1673 |
} |
| 1674 |
|
| 1675 |
FUNCTION {format.title.vol.in} |
| 1676 |
{ 's := |
| 1677 |
after.item 'output.state := |
| 1678 |
s empty$ |
| 1679 |
{ "" } |
| 1680 |
{ editor empty$ |
| 1681 |
{ bbl.in s format.title.vol space.connect } |
| 1682 |
{ bbl.in s format.title.vol space.connect |
| 1683 |
add.comma format.editors * |
| 1684 |
} |
| 1685 |
if$ |
| 1686 |
} |
| 1687 |
if$ |
| 1688 |
} |
| 1689 |
|
| 1690 |
FUNCTION {format.pub.address} |
| 1691 |
{ publisher empty$ |
| 1692 |
{ "" } |
| 1693 |
{ address empty$ |
| 1694 |
{ publisher } |
| 1695 |
{ publisher add.comma address *} |
| 1696 |
if$ |
| 1697 |
} |
| 1698 |
if$ |
| 1699 |
} |
| 1700 |
|
| 1701 |
FUNCTION {empty.misc.check} |
| 1702 |
{ author empty$ title empty$ howpublished empty$ |
| 1703 |
year empty$ note empty$ url empty$ |
| 1704 |
and and and and and |
| 1705 |
{ "all relevant fields are empty in " cite$ * warning$ } |
| 1706 |
'skip$ |
| 1707 |
if$ |
| 1708 |
} |
| 1709 |
|
| 1710 |
FUNCTION {empty.doi.note} |
| 1711 |
{ doi empty$ note empty$ and |
| 1712 |
{ "Need either a note or DOI for " cite$ * warning$ } |
| 1713 |
'skip$ |
| 1714 |
if$ |
| 1715 |
} |
| 1716 |
|
| 1717 |
FUNCTION {format.thesis.type} |
| 1718 |
{ type empty$ |
| 1719 |
'skip$ |
| 1720 |
{ pop$ |
| 1721 |
type emphasize |
| 1722 |
} |
| 1723 |
if$ |
| 1724 |
} |
| 1725 |
|
| 1726 |
FUNCTION {article} |
| 1727 |
{ output.bibitem |
| 1728 |
format.authors "author" output.check |
| 1729 |
is.use.title |
| 1730 |
{ title format.title.noemph "title" output.check } |
| 1731 |
'skip$ |
| 1732 |
if$ |
| 1733 |
%<rsc> journal emphasize "journal" output.check |
| 1734 |
%<angew> |
| 1735 |
%<angew> journal "," "" find.replace emphasize |
| 1736 |
%<angew> "journal" output.check |
| 1737 |
%<angew> after.item 'output.state := |
| 1738 |
format.date "year" output.check |
| 1739 |
volume empty$ |
| 1740 |
{ "" format.pages.nopp output } |
| 1741 |
{ format.vol.pages output } |
| 1742 |
if$ |
| 1743 |
format.doi |
| 1744 |
fin.entry |
| 1745 |
} |
| 1746 |
|
| 1747 |
FUNCTION {book} |
| 1748 |
{ output.bibitem |
| 1749 |
author empty$ |
| 1750 |
%<rsc> { title format.title "title" output.check |
| 1751 |
%<angew> { title format.title.vol "title" output.check |
| 1752 |
editor empty$ |
| 1753 |
{ "Need either an author or editor for " |
| 1754 |
cite$ * warning$ } |
| 1755 |
{ "" format.editors * "editor" output.check } |
| 1756 |
if$ |
| 1757 |
} |
| 1758 |
{ format.authors output |
| 1759 |
"author and editor" editor either.or.check |
| 1760 |
%<rsc> title format.title "title" output.check |
| 1761 |
%<angew> title format.title.vol "title" output.check |
| 1762 |
} |
| 1763 |
if$ |
| 1764 |
format.pub.address "publisher" output.check |
| 1765 |
format.edition output |
| 1766 |
format.bdate "year" output.check |
| 1767 |
%<rsc> format.bvolume output |
| 1768 |
pages empty$ |
| 1769 |
'skip$ |
| 1770 |
{ format.pages output } |
| 1771 |
if$ |
| 1772 |
format.doi |
| 1773 |
fin.entry |
| 1774 |
} |
| 1775 |
|
| 1776 |
FUNCTION {booklet} |
| 1777 |
{ output.bibitem |
| 1778 |
format.authors output |
| 1779 |
title format.title "title" output.check |
| 1780 |
howpublished output |
| 1781 |
address output |
| 1782 |
format.date output |
| 1783 |
format.doi |
| 1784 |
fin.entry |
| 1785 |
} |
| 1786 |
|
| 1787 |
FUNCTION {inbook} |
| 1788 |
{ output.bibitem |
| 1789 |
author empty$ |
| 1790 |
%<rsc> { title format.title "title" output.check |
| 1791 |
%<angew> { title format.title.vol "title" output.check |
| 1792 |
editor empty$ |
| 1793 |
{ "Need at least an author or an editor for " |
| 1794 |
cite$ * warning$ } |
| 1795 |
{ "" format.editors * "editor" output.check } |
| 1796 |
if$ |
| 1797 |
} |
| 1798 |
{ format.authors output |
| 1799 |
%<rsc> title format.title.in "title" output.check |
| 1800 |
%<angew> title format.title.vol.in "title" output.check |
| 1801 |
} |
| 1802 |
if$ |
| 1803 |
format.pub.address "publisher" output.check |
| 1804 |
format.edition output |
| 1805 |
format.bdate "year" output.check |
| 1806 |
%<rsc> format.bvolume output |
| 1807 |
format.chapter.pages "chapter and pages" output.check |
| 1808 |
format.doi |
| 1809 |
fin.entry |
| 1810 |
} |
| 1811 |
|
| 1812 |
FUNCTION {incollection} |
| 1813 |
{ output.bibitem |
| 1814 |
author empty$ |
| 1815 |
%<rsc> { booktitle format.title "booktitle" output.check |
| 1816 |
%<angew> { booktitle format.title.vol "booktitle" output.check |
| 1817 |
editor empty$ |
| 1818 |
{ "Need at least an author or an editor for " |
| 1819 |
cite$ * warning$ } |
| 1820 |
{ "" format.editors * "editor" output.check } |
| 1821 |
if$ |
| 1822 |
} |
| 1823 |
{ format.authors output |
| 1824 |
%<rsc> booktitle format.title.in "booktitle" output.check |
| 1825 |
%<angew> booktitle format.title.vol.in "booktitle" output.check |
| 1826 |
} |
| 1827 |
if$ |
| 1828 |
format.pub.address "publisher" output.check |
| 1829 |
format.edition output |
| 1830 |
format.bdate "year" output.check |
| 1831 |
%<rsc> format.cvolume output |
| 1832 |
format.chapter.pages "chapter and pages" output.check |
| 1833 |
format.doi |
| 1834 |
fin.entry |
| 1835 |
} |
| 1836 |
|
| 1837 |
FUNCTION {inpress} |
| 1838 |
{ output.bibitem |
| 1839 |
format.authors "author" output.check |
| 1840 |
journal emphasize "journal" output.check |
| 1841 |
bbl.inpress output |
| 1842 |
format.doi |
| 1843 |
fin.entry |
| 1844 |
} |
| 1845 |
|
| 1846 |
FUNCTION {inproceedings} |
| 1847 |
{ output.bibitem |
| 1848 |
format.authors "author" output.check |
| 1849 |
%<rsc> booktitle format.title.noemph "booktitle" output.check |
| 1850 |
%<angew> booktitle format.title "booktitle" output.check |
| 1851 |
address output |
| 1852 |
format.date "year" output.check |
| 1853 |
pages empty$ |
| 1854 |
'skip$ |
| 1855 |
{ format.pages output } |
| 1856 |
if$ |
| 1857 |
format.doi |
| 1858 |
fin.entry |
| 1859 |
} |
| 1860 |
|
| 1861 |
FUNCTION {manual} |
| 1862 |
{ output.bibitem |
| 1863 |
author empty$ |
| 1864 |
{ organization empty$ |
| 1865 |
'skip$ |
| 1866 |
{ organization output |
| 1867 |
address output |
| 1868 |
} |
| 1869 |
if$ |
| 1870 |
} |
| 1871 |
{ format.authors output } |
| 1872 |
if$ |
| 1873 |
%<rsc> title format.title "title" output.check |
| 1874 |
%<angew> title format.title.noemph "title" output.check |
| 1875 |
author empty$ |
| 1876 |
{ organization empty$ |
| 1877 |
{ address output } |
| 1878 |
'skip$ |
| 1879 |
if$ |
| 1880 |
} |
| 1881 |
{ organization output |
| 1882 |
address output |
| 1883 |
} |
| 1884 |
if$ |
| 1885 |
format.edition output |
| 1886 |
format.date output |
| 1887 |
format.doi |
| 1888 |
fin.entry |
| 1889 |
} |
| 1890 |
|
| 1891 |
FUNCTION {mastersthesis} |
| 1892 |
{ output.bibitem |
| 1893 |
format.authors "author" output.check |
| 1894 |
%<rsc> bbl.msc emphasize format.thesis.type output |
| 1895 |
%<angew> bbl.msc format.thesis.type output |
| 1896 |
school "school" output.check |
| 1897 |
address output |
| 1898 |
format.date "year" output.check |
| 1899 |
format.doi |
| 1900 |
fin.entry |
| 1901 |
} |
| 1902 |
|
| 1903 |
FUNCTION {misc} |
| 1904 |
{ output.bibitem |
| 1905 |
format.authors output |
| 1906 |
title empty$ |
| 1907 |
'skip$ |
| 1908 |
{ title format.title output } |
| 1909 |
if$ |
| 1910 |
howpublished output |
| 1911 |
%<rsc> year output |
| 1912 |
%<angew> format.date output |
| 1913 |
format.url output |
| 1914 |
note output |
| 1915 |
format.doi |
| 1916 |
fin.entry |
| 1917 |
empty.misc.check |
| 1918 |
} |
| 1919 |
|
| 1920 |
FUNCTION {patent} |
| 1921 |
{ output.bibitem |
| 1922 |
organization empty$ |
| 1923 |
{ format.authors "author and organization" output.check } |
| 1924 |
{ author empty$ |
| 1925 |
{ organization } |
| 1926 |
{ format.authors organization paren space.connect } |
| 1927 |
if$ |
| 1928 |
"author and organization" output.check |
| 1929 |
} |
| 1930 |
if$ |
| 1931 |
journal emphasize "journal" output.check |
| 1932 |
format.pages.patent "pages" output.check |
| 1933 |
format.date "year" output.check |
| 1934 |
format.doi |
| 1935 |
fin.entry |
| 1936 |
} |
| 1937 |
|
| 1938 |
FUNCTION {phdthesis} |
| 1939 |
{ output.bibitem |
| 1940 |
format.authors "author" output.check |
| 1941 |
%<rsc> bbl.phd emphasize format.thesis.type output |
| 1942 |
%<angew> bbl.phd format.thesis.type output |
| 1943 |
school "school" output.check |
| 1944 |
address output |
| 1945 |
format.date "year" output.check |
| 1946 |
format.doi |
| 1947 |
fin.entry |
| 1948 |
} |
| 1949 |
|
| 1950 |
FUNCTION {proceedings} |
| 1951 |
{ output.bibitem |
| 1952 |
%<rsc> title format.title.noemph "title" output.check |
| 1953 |
%<angew> title format.title "title" output.check |
| 1954 |
address output |
| 1955 |
format.date "year" output.check |
| 1956 |
pages empty$ |
| 1957 |
'skip$ |
| 1958 |
{ format.pages output } |
| 1959 |
if$ |
| 1960 |
format.doi |
| 1961 |
fin.entry |
| 1962 |
} |
| 1963 |
|
| 1964 |
FUNCTION {techreport} |
| 1965 |
{ output.bibitem |
| 1966 |
format.authors "author" output.check |
| 1967 |
title format.title "title" output.check |
| 1968 |
institution |
| 1969 |
type empty$ |
| 1970 |
'bbl.techreport |
| 1971 |
'type |
| 1972 |
if$ |
| 1973 |
space.connect |
| 1974 |
number empty$ |
| 1975 |
{ "t" change.case$ } |
| 1976 |
{ number tie.or.space.connect } |
| 1977 |
if$ |
| 1978 |
output |
| 1979 |
format.pub.address output |
| 1980 |
format.date "year" output.check |
| 1981 |
format.doi |
| 1982 |
fin.entry |
| 1983 |
} |
| 1984 |
|
| 1985 |
FUNCTION {unpublished} |
| 1986 |
{ output.bibitem |
| 1987 |
format.authors "author" output.check |
| 1988 |
journal empty$ |
| 1989 |
'skip$ |
| 1990 |
{ journal emphasize "journal" output.check } |
| 1991 |
if$ |
| 1992 |
doi empty$ |
| 1993 |
{ note output } |
| 1994 |
{ |
| 1995 |
%<rsc> format.date output |
| 1996 |
bbl.doi doi tie.or.space.connect output |
| 1997 |
} |
| 1998 |
if$ |
| 1999 |
fin.entry |
| 2000 |
empty.doi.note |
| 2001 |
} |
| 2002 |
|
| 2003 |
INTEGERS { a b } |
| 2004 |
|
| 2005 |
FUNCTION {mult} |
| 2006 |
{ 'a := |
| 2007 |
'b := |
| 2008 |
b #0 < |
| 2009 |
{#-1 #0 b - 'b :=} |
| 2010 |
{#1} |
| 2011 |
if$ |
| 2012 |
#0 |
| 2013 |
{b #0 >} |
| 2014 |
{ a + |
| 2015 |
b #1 - 'b := |
| 2016 |
} |
| 2017 |
while$ |
| 2018 |
swap$ |
| 2019 |
'skip$ |
| 2020 |
{#0 swap$ -} |
| 2021 |
if$ |
| 2022 |
} |
| 2023 |
|
| 2024 |
FUNCTION {str.to.int.aux} |
| 2025 |
{ {duplicate$ empty$ not} |
| 2026 |
{ swap$ #10 mult 'a := |
| 2027 |
duplicate$ #1 #1 substring$ |
| 2028 |
chr.to.value a + |
| 2029 |
swap$ |
| 2030 |
#2 global.max$ substring$ |
| 2031 |
} |
| 2032 |
while$ |
| 2033 |
pop$ |
| 2034 |
} |
| 2035 |
|
| 2036 |
FUNCTION {str.to.int} |
| 2037 |
{ duplicate$ #1 #1 substring$ "-" = |
| 2038 |
{#1 swap$ #2 global.max$ substring$} |
| 2039 |
{#0 swap$} |
| 2040 |
if$ |
| 2041 |
#0 swap$ str.to.int.aux |
| 2042 |
swap$ |
| 2043 |
{#0 swap$ -} |
| 2044 |
{} |
| 2045 |
if$ |
| 2046 |
} |
| 2047 |
|
| 2048 |
FUNCTION {yes.no.to.int} |
| 2049 |
{ "l" change.case$ duplicate$ |
| 2050 |
"yes" = |
| 2051 |
{ pop$ #1 } |
| 2052 |
{ duplicate$ "no" = |
| 2053 |
{ pop$ #0 } |
| 2054 |
{ "unknown Boolean " quote$ * swap$ * quote$ * |
| 2055 |
" in " * cite$ * warning$ |
| 2056 |
#0 |
| 2057 |
} |
| 2058 |
if$ |
| 2059 |
} |
| 2060 |
if$ |
| 2061 |
} |
| 2062 |
|
| 2063 |
FUNCTION {Control} |
| 2064 |
{ ctrl-use-title |
| 2065 |
empty$ |
| 2066 |
{ skip$ } |
| 2067 |
{ ctrl-use-title |
| 2068 |
yes.no.to.int |
| 2069 |
'is.use.title := } |
| 2070 |
if$ |
| 2071 |
ctrl-etal-number |
| 2072 |
empty$ |
| 2073 |
{ skip$ } |
| 2074 |
{ ctrl-etal-number |
| 2075 |
str.to.int |
| 2076 |
'etal.number := } |
| 2077 |
if$ |
| 2078 |
ctrl-use-doi-all |
| 2079 |
empty$ |
| 2080 |
{ skip$ } |
| 2081 |
{ ctrl-use-doi-all |
| 2082 |
yes.no.to.int |
| 2083 |
'use.doi.all := } |
| 2084 |
if$ |
| 2085 |
ctrl-link-doi |
| 2086 |
empty$ |
| 2087 |
{ skip$ } |
| 2088 |
{ ctrl-link-doi |
| 2089 |
yes.no.to.int |
| 2090 |
'link.doi := } |
| 2091 |
if$ |
| 2092 |
} |
| 2093 |
|
| 2094 |
FUNCTION {conference} {inproceedings} |
| 2095 |
|
| 2096 |
FUNCTION {other} {patent} |
| 2097 |
|
| 2098 |
FUNCTION {default.type} {misc} |
| 2099 |
|
| 2100 |
MACRO {jan} {"January"} |
| 2101 |
MACRO {feb} {"February"} |
| 2102 |
MACRO {mar} {"March"} |
| 2103 |
MACRO {apr} {"April"} |
| 2104 |
MACRO {may} {"May"} |
| 2105 |
MACRO {jun} {"June"} |
| 2106 |
MACRO {jul} {"July"} |
| 2107 |
MACRO {aug} {"August"} |
| 2108 |
MACRO {sep} {"September"} |
| 2109 |
MACRO {oct} {"October"} |
| 2110 |
MACRO {nov} {"November"} |
| 2111 |
MACRO {dec} {"December"} |
| 2112 |
|
| 2113 |
READ |
| 2114 |
|
| 2115 |
FUNCTION {initialize.controls} |
| 2116 |
{ default.is.use.title 'is.use.title := |
| 2117 |
default.etal.number 'etal.number := |
| 2118 |
default.use.doi.all 'use.doi.all := |
| 2119 |
default.link.doi 'link.doi := |
| 2120 |
} |
| 2121 |
|
| 2122 |
INTEGERS { len } |
| 2123 |
|
| 2124 |
FUNCTION {chop.word} |
| 2125 |
{ 's := |
| 2126 |
'len := |
| 2127 |
s #1 len substring$ = |
| 2128 |
{ s len #1 + global.max$ substring$ } |
| 2129 |
's |
| 2130 |
if$ |
| 2131 |
} |
| 2132 |
|
| 2133 |
FUNCTION {format.lab.names} |
| 2134 |
{ 's := |
| 2135 |
s #1 "{vv~}{ll}" format.name$ |
| 2136 |
s num.names$ duplicate$ |
| 2137 |
#2 > |
| 2138 |
{ pop$ bbl.etal space.connect } |
| 2139 |
{ #2 < |
| 2140 |
'skip$ |
| 2141 |
{ s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = |
| 2142 |
{ bbl.etal space.connect } |
| 2143 |
{ bbl.and space.connect s #2 "{vv~}{ll}" |
| 2144 |
format.name$ space.connect } |
| 2145 |
if$ |
| 2146 |
} |
| 2147 |
if$ |
| 2148 |
} |
| 2149 |
if$ |
| 2150 |
} |
| 2151 |
|
| 2152 |
FUNCTION {author.key.label} |
| 2153 |
{ author empty$ |
| 2154 |
{ key empty$ |
| 2155 |
{ cite$ #1 #3 substring$ } |
| 2156 |
'key |
| 2157 |
if$ |
| 2158 |
} |
| 2159 |
{ author format.lab.names } |
| 2160 |
if$ |
| 2161 |
} |
| 2162 |
|
| 2163 |
FUNCTION {author.editor.key.label} |
| 2164 |
{ author empty$ |
| 2165 |
{ editor empty$ |
| 2166 |
{ key empty$ |
| 2167 |
{ cite$ #1 #3 substring$ } |
| 2168 |
'key |
| 2169 |
if$ |
| 2170 |
} |
| 2171 |
{ editor format.lab.names } |
| 2172 |
if$ |
| 2173 |
} |
| 2174 |
{ author format.lab.names } |
| 2175 |
if$ |
| 2176 |
} |
| 2177 |
|
| 2178 |
FUNCTION {author.key.organization.label} |
| 2179 |
{ author empty$ |
| 2180 |
{ key empty$ |
| 2181 |
{ organization empty$ |
| 2182 |
{ cite$ #1 #3 substring$ } |
| 2183 |
{ "The " #4 organization chop.word #3 |
| 2184 |
text.prefix$ } |
| 2185 |
if$ |
| 2186 |
} |
| 2187 |
'key |
| 2188 |
if$ |
| 2189 |
} |
| 2190 |
{ author format.lab.names } |
| 2191 |
if$ |
| 2192 |
} |
| 2193 |
|
| 2194 |
FUNCTION {editor.key.organization.label} |
| 2195 |
{ editor empty$ |
| 2196 |
{ key empty$ |
| 2197 |
{ organization empty$ |
| 2198 |
{ cite$ #1 #3 substring$ } |
| 2199 |
{ "The " #4 organization chop.word #3 |
| 2200 |
text.prefix$ } |
| 2201 |
if$ |
| 2202 |
} |
| 2203 |
'key |
| 2204 |
if$ |
| 2205 |
} |
| 2206 |
{ editor format.lab.names } |
| 2207 |
if$ |
| 2208 |
} |
| 2209 |
|
| 2210 |
FUNCTION {calc.short.authors} |
| 2211 |
{ type$ "book" = |
| 2212 |
type$ "inbook" = |
| 2213 |
or |
| 2214 |
'author.editor.key.label |
| 2215 |
{ type$ "proceedings" = |
| 2216 |
'editor.key.organization.label |
| 2217 |
{ type$ "manual" = |
| 2218 |
'author.key.organization.label |
| 2219 |
'author.key.label |
| 2220 |
if$ |
| 2221 |
} |
| 2222 |
if$ |
| 2223 |
} |
| 2224 |
if$ |
| 2225 |
'short.list := |
| 2226 |
} |
| 2227 |
|
| 2228 |
FUNCTION {calc.label} |
| 2229 |
{ calc.short.authors |
| 2230 |
short.list |
| 2231 |
"(" |
| 2232 |
* |
| 2233 |
year duplicate$ empty$ |
| 2234 |
short.list key field.or.null = or |
| 2235 |
{ pop$ "" } |
| 2236 |
'skip$ |
| 2237 |
if$ |
| 2238 |
* |
| 2239 |
'label := |
| 2240 |
} |
| 2241 |
|
| 2242 |
ITERATE {calc.label} |
| 2243 |
|
| 2244 |
STRINGS { longest.label last.label next.extra } |
| 2245 |
|
| 2246 |
INTEGERS { longest.label.width last.extra.num number.label } |
| 2247 |
|
| 2248 |
FUNCTION {initialize.longest.label} |
| 2249 |
{ "" 'longest.label := |
| 2250 |
#0 int.to.chr$ 'last.label := |
| 2251 |
"" 'next.extra := |
| 2252 |
#0 'longest.label.width := |
| 2253 |
#0 'last.extra.num := |
| 2254 |
#0 'number.label := |
| 2255 |
} |
| 2256 |
|
| 2257 |
FUNCTION {forward.pass} |
| 2258 |
{ last.label label = |
| 2259 |
{ last.extra.num #1 + 'last.extra.num := |
| 2260 |
last.extra.num int.to.chr$ 'extra.label := |
| 2261 |
} |
| 2262 |
{ "a" chr.to.int$ 'last.extra.num := |
| 2263 |
"" 'extra.label := |
| 2264 |
label 'last.label := |
| 2265 |
} |
| 2266 |
if$ |
| 2267 |
number.label #1 + 'number.label := |
| 2268 |
} |
| 2269 |
|
| 2270 |
EXECUTE {initialize.longest.label} |
| 2271 |
|
| 2272 |
ITERATE {forward.pass} |
| 2273 |
|
| 2274 |
FUNCTION {begin.bib} |
| 2275 |
{ |
| 2276 |
"rsc 2016/08/22 v3.1f" top$ |
| 2277 |
preamble$ empty$ |
| 2278 |
'skip$ |
| 2279 |
{ preamble$ write$ newline$ } |
| 2280 |
if$ |
| 2281 |
"\providecommand*{\mcitethebibliography}{\thebibliography}" |
| 2282 |
write$ newline$ |
| 2283 |
"\csname @ifundefined\endcsname{endmcitethebibliography}" |
| 2284 |
write$ newline$ |
| 2285 |
"{\let\endmcitethebibliography\endthebibliography}{}" |
| 2286 |
write$ newline$ |
| 2287 |
"\begin{mcitethebibliography}{" number.label int.to.str$ * "}" * |
| 2288 |
write$ newline$ |
| 2289 |
"\providecommand*{\natexlab}[1]{#1}" |
| 2290 |
write$ newline$ |
| 2291 |
"\providecommand*{\mciteSetBstSublistMode}[1]{}" |
| 2292 |
write$ newline$ |
| 2293 |
"\providecommand*{\mciteSetBstMaxWidthForm}[2]{}" |
| 2294 |
write$ newline$ |
| 2295 |
"\providecommand*{\mciteBstWouldAddEndPuncttrue}" |
| 2296 |
write$ newline$ |
| 2297 |
" {\def\EndOfBibitem{\unskip.}}" |
| 2298 |
write$ newline$ |
| 2299 |
"\providecommand*{\mciteBstWouldAddEndPunctfalse}" |
| 2300 |
write$ newline$ |
| 2301 |
" {\let\EndOfBibitem\relax}" |
| 2302 |
write$ newline$ |
| 2303 |
"\providecommand*{\mciteSetBstMidEndSepPunct}[3]{}" |
| 2304 |
write$ newline$ |
| 2305 |
"\providecommand*{\mciteSetBstSublistLabelBeginEnd}[3]{}" |
| 2306 |
write$ newline$ |
| 2307 |
"\providecommand*{\EndOfBibitem}{}" |
| 2308 |
write$ newline$ |
| 2309 |
"\mciteSetBstSublistMode{f}" |
| 2310 |
write$ newline$ |
| 2311 |
"\mciteSetBstMaxWidthForm{subitem}" |
| 2312 |
write$ newline$ |
| 2313 |
%<rsc> "{(\emph{\alph{mcitesubitemcount}})}" |
| 2314 |
%<angew> "{\alph{mcitesubitemcount})}" |
| 2315 |
write$ newline$ |
| 2316 |
"\mciteSetBstSublistLabelBeginEnd{\mcitemaxwidthsubitemform\space}" |
| 2317 |
write$ newline$ |
| 2318 |
"{\relax}{\relax}" |
| 2319 |
write$ newline$ |
| 2320 |
} |
| 2321 |
|
| 2322 |
EXECUTE {begin.bib} |
| 2323 |
|
| 2324 |
EXECUTE {init.state.consts} |
| 2325 |
|
| 2326 |
ITERATE {call.type$} |
| 2327 |
|
| 2328 |
FUNCTION {end.bib} |
| 2329 |
{ newline$ |
| 2330 |
"\end{mcitethebibliography}" write$ newline$ |
| 2331 |
} |
| 2332 |
|
| 2333 |
EXECUTE {end.bib} |
| 2334 |
%</bst> |
| 2335 |
%<*bib> |
| 2336 |
@ARTICLE{Abernethy2003, |
| 2337 |
author = {Colin D. Abernethy and Gareth M. Codd and Mark D. Spicer |
| 2338 |
and Michelle K. Taylor}, |
| 2339 |
title = {{A} highly stable {N}-heterocyclic carbene complex of |
| 2340 |
trichloro-oxo-vanadium(\textsc{v}) displaying novel |
| 2341 |
{C}l---{C}(carbene) bonding interactions}, |
| 2342 |
journal = {{J}. {A}m. {C}hem. {S}oc.}, |
| 2343 |
year = {2003}, |
| 2344 |
volume = {125}, |
| 2345 |
pages = {1128--1129}, |
| 2346 |
number = {5}, |
| 2347 |
doi = {10.1021/ja0276321}, |
| 2348 |
} |
| 2349 |
|
| 2350 |
@MISC{ACS2007, |
| 2351 |
url = {http://pubs.acs.org/books/references.shtml}, |
| 2352 |
} |
| 2353 |
|
| 2354 |
@ARTICLE{Arduengo1992, |
| 2355 |
author = {Arduengo, III, Anthony J. and H. V. Rasika Dias and |
| 2356 |
Richard L. Harlow and Michael Kline}, |
| 2357 |
title = {{E}lectronic stabilization of nucleophilic carbenes}, |
| 2358 |
journal = {{J}.~{A}m.\ {C}hem.\ {S}oc.}, |
| 2359 |
year = {1992}, |
| 2360 |
volume = {114}, |
| 2361 |
pages = {5530--5534}, |
| 2362 |
number = {14}, |
| 2363 |
doi = {10.1021/ja00040a007}, |
| 2364 |
} |
| 2365 |
|
| 2366 |
@ARTICLE{Arduengo1994, |
| 2367 |
author = {Arduengo, III, Anthony J. and Siegfried F. Gamper and |
| 2368 |
Joseph C. Calabrese and Fredric Davidson}, |
| 2369 |
title = {{L}ow-coordinate carbene complexes of nickel(0) and |
| 2370 |
platinum(0)}, |
| 2371 |
journal = {{J}.~{A}m.\ {C}hem. {S}oc.}, |
| 2372 |
year = {1994}, |
| 2373 |
volume = {116}, |
| 2374 |
pages = {4391--4394}, |
| 2375 |
number = {10}, |
| 2376 |
doi = {10.1021/ja00089a029}, |
| 2377 |
} |
| 2378 |
|
| 2379 |
@ARTICLE{Eisenstein2005, |
| 2380 |
author = {Appelhans, Leah N. and Zuccaccia, Daniele and Kovacevic, |
| 2381 |
Anes and Chianese, Anthony R. and Miecznikowski, John R. and |
| 2382 |
Macchioni, Aleco and Clot, Eric and Eisenstein, Odile and |
| 2383 |
Crabtree, Robert H.}, |
| 2384 |
title = {{A}n anion-dependent switch in selectivity results from a |
| 2385 |
change of {C}---{H} activation mechanism in the reaction of an |
| 2386 |
imidazolium salt with \ce{IrH5(PPh3)2}}, |
| 2387 |
journal = {{J}.~{A}m.\ {C}hem. {S}oc.}, |
| 2388 |
year = {2005}, |
| 2389 |
volume = {127}, |
| 2390 |
pages = {16299--16311}, |
| 2391 |
number = {46}, |
| 2392 |
doi = {10.1021/ja055317j}, |
| 2393 |
} |
| 2394 |
|
| 2395 |
@BOOK{Coghill2006, |
| 2396 |
title = {{T}he {ACS} {S}tyle {G}uide}, |
| 2397 |
publisher = {{O}xford {U}niversity {P}ress, {I}nc. and |
| 2398 |
{T}he {A}merican {C}hemical {S}ociety}, |
| 2399 |
year = {2006}, |
| 2400 |
editor = {Coghill, Anne M. and Garson, Lorrin R.}, |
| 2401 |
address = {{N}ew {Y}ork}, |
| 2402 |
edition = {3}, |
| 2403 |
subtitle = {{E}ffective {C}ommunication of {S}cientific |
| 2404 |
{I}nformation}, |
| 2405 |
} |
| 2406 |
|
| 2407 |
@BOOK{Cotton1999, |
| 2408 |
title = {{A}dvanced {I}norganic {C}hemistry}, |
| 2409 |
publisher = {Wiley}, |
| 2410 |
year = {1999}, |
| 2411 |
author = {Cotton, Frank Albert and Wilkinson, Geoffrery and |
| 2412 |
Murillio, Carlos A. and Bochmann, Manfred}, |
| 2413 |
address = {Chichester}, |
| 2414 |
edition = {6}, |
| 2415 |
} |
| 2416 |
|
| 2417 |
@ARTICLE{Mena2000, |
| 2418 |
author = {Angel Abarca and Pilar G\'omez-Sal and Avelino Mart\'in |
| 2419 |
and Miguel Mena and Josep Mar\'ia Poblet and Carlos Y\'elamos}, |
| 2420 |
title = {{A}mmonolysis of mono(pentamethylcyclopentadienyl) |
| 2421 |
titanium(\textsc{iv}) derivatives}, |
| 2422 |
journal = {Inorg. Chem.}, |
| 2423 |
year = {2000}, |
| 2424 |
volume = {39}, |
| 2425 |
pages = {642--651}, |
| 2426 |
number = {4}, |
| 2427 |
doi = {10.1021/ic9907718}, |
| 2428 |
} |
| 2429 |
%</bib> |
| 2430 |
%\fi |