Debian Codegraph @

texmf-dist/source/latex/beilstein/beilstein.dtx

raw
1 % \iffalse meta-comment
2 % !TEX program = pdflatex
3 % !TEX encoding = utf8
4 %<*internal>
5 \iffalse
6 \fi
7 \def\nameofplainTeX{plain}
8 \ifx\fmtname\nameofplainTeX\else
9 \expandafter\begingroup
10 \fi
11
12 %</internal>
13 %<*install>
14 \input docstrip.tex
15 \keepsilent
16 \askforoverwritefalse
17 \preamble
18 ----------------------------------------------------------------
19 beilstein -- Support for submissions to the ``Beilstein Journal
20 of Nanotechnology'' published by the Beilstein-Institut
21 zur Foerderung der Chemischen Wissenschaften
22 Version: 2.1
23 E-mail: [email protected]
24 License: Released under the LaTeX Project Public License v1.3c or later
25 See http://www.latex-project.org/lppl.txt
26 ----------------------------------------------------------------
27
28 \endpreamble
29 \postamble
30
31 Originally developed by Martin Sievers ([email protected])
32 Copyright (C) 2009-2020 by Beilstein-Institut zur Foerderung der Chemischen Wissenschaften (Beilstein)
33
34 Part of this bundle is derived from cite.sty, to which the
35 following license applies:
36 Copyright (C) 1989-2003 by Donald Arseneau
37 These macros may be freely transmitted, reproduced, or
38 modified provided that this notice is left intact.
39
40 It may be distributed and/or modified under the conditions of
41 the LaTeX Project Public License (LPPL), either version 1.3c of
42 this license or (at your option) any later version. The latest
43 version of this license is in the file:
44
45 http://www.latex-project.org/lppl.txt
46
47 This work has the LPPL maintenancce status "author-maintained".
48
49 This work consists of the files beilstein.dtx,
50 CHANGELOG.md,
51 README.md
52 and the derived files beilstein.pdf,
53 beilstein.cls,
54 beilstein.ins,
55 bjnano.bst,
56 beilstein-template.tex,
57 beilstein-template.bib.
58 Some graphic files for the documentation and template are also added:
59 bjnano_logo.pdf
60 scheme1.pdf
61 scheme2.pdf
62 figure1.pdf
63 \endpostamble
64 \usedir{tex/latex/beilstein}
65 \generate{
66 \file{\jobname.cls}{\from{\jobname.dtx}{class}}
67 }
68 \usedir{bibtex/bst/beilstein}
69 \generate{
70 \file{bjnano.bst}{\from{\jobname.dtx}{bst}}
71 }
72 \nopreamble\nopostamble
73 \usedir{tex/latex/beilstein}
74 \generate{
75 \file{beilstein-template.tex}{\from{\jobname.dtx}{demo}}
76 \file{beilstein-template.bib}{\from{\jobname.dtx}{bib}}
77 }
78 %</install>
79 %<install>\endbatchfile
80 %<*internal>
81 \usedir{source/latex/beilstein}
82 \generate{
83 \file{\jobname.ins}{\from{\jobname.dtx}{install}}
84 }
85 \ifx\fmtname\nameofplainTeX
86 \expandafter\endbatchfile
87 \else
88 \expandafter\endgroup
89 \fi
90 %</internal>
91 %<*driver>
92 \ProvidesFile{beilstein.dtx}%
93 [2020/08/26 v2.1 Bundle for submissions to the\MessageBreak ``Beilstein Journal
94 of Nanotechnology'' (BJNANO)]
95 \documentclass[a4paper]{ltxdoc}
96 \usepackage[american]{babel}
97 \usepackage{graphicx}
98 \usepackage[utf8]{inputenc}
99 \usepackage[T1]{fontenc}
100 \usepackage{lmodern}
101 \usepackage{amsmath,amssymb}
102 \usepackage{array,booktabs,tabularx,longtable}
103 \usepackage{fancyhdr}
104 \pagestyle{fancy}
105 \lfoot{\footnotesize BJNANO Technical Handbook (Version 2.1)}
106 \cfoot{}
107 \rfoot{\thepage}
108 \rhead{\small\rightmark}
109 \lhead{\small\leftmark}
110 \usepackage[final]{listings}
111 \usepackage[onehalfspacing]{setspace}
112 \usepackage{xspace}
113 \usepackage[svgnames]{xcolor}
114 %%%\setlength{\parindent}{0pt}
115 \DeclareFontFamily{U}{eur}{\skewchar\font'177}
116 \DeclareFontShape{U}{eur}{m}{n}{%
117 <-6> eurm5 <6-8> eurm7 <8-> eurm10}{}
118 \DeclareFontShape{U}{eur}{b}{n}{%
119 <-6> eurb5 <6-8> eurb7 <8-> eurb10}{}
120 \DeclareSymbolFont{ugrf@m}{U}{eur}{m}{n}
121 \SetSymbolFont{ugrf@m}{bold}{U}{eur}{b}{n}
122 \DeclareMathSymbol{\upalpha}{\mathord}{ugrf@m}{"0B}
123 \providecommand*\env[1]{\texttt{#1}}
124 \providecommand*\file[1]{\texttt{#1}}
125 \providecommand*\opt[1]{\texttt{#1}}
126 \providecommand*\pkg[1]{\textsf{#1}}
127 \usepackage[%
128 pdftitle={A LaTeX class for submissions to the ``Beilstein Journal of
129 Nanotechnology'' (BJNANO)},
130 pdfauthor={Beilstein-Institut zur Foerderung der Chemischen Wissenschaften},
131 urlcolor=blue,%
132 linktocpage,%
133 a4paper,%
134 citecolor=blue,%
135 linkcolor=blue,%
136 colorlinks=true]{hyperref}
137 \OnlyDescription % nur Anleitung (ohne Index und History)
138 \CodelineIndex % kein Index wenn auskommentiert
139 \EnableCrossrefs % kein Index wenn auskommentiert
140 \RecordChanges % keine History wenn auskommentiert
141 \begin{document}
142 \DeleteShortVerb{\|}
143 \DocInput{beilstein.dtx}
144 \end{document}
145 %</driver>
146 % \fi
147 % \CheckSum{0}
148 % \CharacterTable
149 % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
150 % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
151 % Digits \0\1\2\3\4\5\6\7\8\9
152 % Exclamation \! Double quote \" Hash (number) \#
153 % Dollar \$ Percent \% Ampersand \&
154 % Acute accent \' Left paren \( Right paren \)
155 % Asterisk \* Plus \+ Comma \,
156 % Minus \- Point \. Solidus \/
157 % Colon \: Semicolon \; Less than \<
158 % Equals \= Greater than \> Question mark \?
159 % Commercial at \@ Left bracket \[ Backslash \\
160 % Right bracket \] Circumflex \^ Underscore \_
161 % Grave accent \` Left brace \{ Vertical bar \|
162 % Right brace \} Tilde \~}
163 %
164 % \changes{v1.0}{2010/05/11}{Release on start of BJNANO public website}
165 % \changes{v1.1}{2010/08/16}{Page number bug fix}
166 % \changes{v1.2}{2017/08/16}{Fix for recent babel versions}
167 % \changes{v1.2}{2017/08/16}{Fix for @misc bib entries}
168 % \changes{v1.2}{2017/08/16}{All files converted to UTF-8}
169 % \changes{v1.2}{2017/08/21}{Fix for the declaration of \cs{-} as a robust
170 % command. There is a conflict between package bpchem and the latest
171 % \LaTeX{} release}
172 % \changes{v1.3}{2017/11/09}{Fix: Loading of \pkg{cleveref} is postponed to the
173 % very end of the preamble in order to avoid problems with \pkg{hyperref}}
174 % \changes{v1.4}{2018/01/20}{Add new manuscript type \opt{suppinfo}}
175 % \changes{v1.5}{2019/10/30}{Add new environment \env{funding}}
176 % \changes{v1.5}{2019/09/12}{Update documentation}
177 % \changes{v2.0}{2020/02/05}{Update documentation}
178 % \changes{v2.0}{2020/02/05}{New font scheme: \pkg{newtxtext}, \pkg{newtxtt}
179 % and \pkg{newtxmath}}
180 % \changes{v2.0}{2020/02/05}{utf8 is now the standard encoding for
181 % \pkg{inputenc}}
182 % \changes{v2.0}{2020/02/05}{CODEN strings were removed from the BiBTeX style
183 % file}
184 % \changes{v2.0}{2020/02/11}{Add support for doi in @www}
185 % \changes{v2.1}{2020/08/26}{Bugfix for bjnano.bst}
186 % \GetFileInfo{\jobname.dtx}
187 % \DoNotIndex{\newcommand,\newenvironment}
188 % \DoNotIndex{\def,\edef,\gdef,\xdef,\global,\long,\let}
189 % \DoNotIndex{\expandafter,\string,\the,\ifx,\else,\fi}
190 % \DoNotIndex{\csname,\endcsname,\relax,\begingroup,\endgroup}
191 % \DoNotIndex{\DeclareTextCommand,\DeclareTextCompositeCommand}
192 % \DoNotIndex{\space,\@empty,\special,\@nil,\advance\@nnil}
193 % \DoNotIndex{\\,\@gobble,\@@,\@fornoop,\@fortmp,\@ifundefined}
194 % \DoNotIndex{\@tempcnta,\@tempcntb,\{,\},\alph,\bgroup,\egroup}
195 % \DoNotIndex{\do,\end,\HN,\ifcase,\ifnum,\IfFileExists,\ifvmode}
196 % \DoNotIndex{\ignorespaces,\immediate,\input,\item,\jobname}
197 % \DoNotIndex{\leavevmode,\loop,\repeat,\makeatletter,\makeatother}
198 % \DoNotIndex{\meaning,\newcounter,\next,\or,\par,\renewcommand}
199 % \DoNotIndex{\renewcommand,\renewenvironment,\stepcounter}
200 % \DoNotIndex{\Tg,\thepage,\unskip,\write,\advance,\{,\}}
201 % \makeatletter
202 % \newcommand*\DescribeOption{^^A
203 % \leavevmode^^A
204 % \@bsphack
205 % \begingroup^^A
206 % \MakePrivateLetters^^A
207 % \Describe@Option^^A
208 % }^^A
209 % \newcommand*\Describe@Option[1]{^^A
210 % \endgroup^^A
211 % \marginpar{^^A
212 % \raggedleft^^A
213 % \PrintDescribeEnv{#1}^^A
214 % }^^A
215 % \SpecialOptionIndex{#1}^^A
216 % \@esphack
217 % \ignorespaces
218 % }%
219 % \newcommand*\SpecialOptionIndex[1]{^^A
220 % \@bsphack
221 % \index{^^A
222 % #1\actualchar{\protect\ttfamily#1} (option)\encapchar usage^^A
223 % }^^A
224 % \index{^^A
225 % options:\levelchar#1\actualchar{\protect\ttfamily#1}
226 % \encapchar usage^^A
227 % }^^A
228 % \@esphack
229 % }
230 %
231 %^^A For creating examples with nice highlighting of code, and so
232 %^^A on; based on the system used in the listings source (lstsample).
233 % \lst@RequireAspects{writefile}
234 % \newsavebox{\LaTeXdemo@box}
235 % \lstnewenvironment{LaTeXdemo}[1][code and example]{^^A
236 % \global\let\lst@intname\@empty
237 % \expandafter\let\expandafter\LaTeXdemo@end
238 % \csname LaTeXdemo@#1@end\endcsname
239 % \@nameuse{LaTeXdemo@#1}^^A
240 % }{^^A
241 % \LaTeXdemo@end
242 % }
243 % \newcommand*\LaTeXdemo@new[3]{^^A
244 % \expandafter\newcommand\expandafter*\expandafter
245 % {\csname LaTeXdemo@#1\endcsname}{#2}^^A
246 % \expandafter\newcommand\expandafter*\expandafter
247 % {\csname LaTeXdemo@#1@end\endcsname}{#3}^^A
248 % }
249 % \lstdefinestyle{numbers}{numbers=left, stepnumber=1, numberstyle=\tiny, numbersep=5pt}
250 % \newcommand*\LaTeXdemo@common{^^A
251 % \lstset{
252 % style=numbers,
253 % basicstyle = \small\ttfamily,
254 % basewidth = 0.51em,
255 % gobble = 3,
256 % frame = single,
257 % framexleftmargin = -5.4pt,
258 % framexrightmargin = -5.4pt,
259 % language = [LaTeX]{TeX},
260 % moretexcs = {
261 % affiliation,
262 % background,
263 % celsius,
264 % chem,
265 % CN,
266 % conclusion,
267 % fnnormal,
268 % fnpara,
269 % includegraphics,
270 % keywords,
271 % maketitle,
272 % results,
273 % sglcolscheme,
274 % sifile,
275 % text,
276 % unit},%
277 % texcsstyle = *\color{blue},
278 % frame = single,
279 % backgroundcolor = \color{yellow!60},
280 % framesep = 5pt,
281 % upquote
282 % }^^A
283 % }
284 % \newcommand*\LaTeXdemo@input{^^A
285 % \MakePercentComment
286 % \catcode`\^^M=10\relax
287 % \small
288 % \begingroup
289 % \setkeys{lst}{
290 % SelectCharTable=\lst@ReplaceInput{\^\^I}{\lst@ProcessTabulator}
291 % }^^A
292 % \leavevmode
293 % \input{\jobname.tmp}^^A
294 % \endgroup
295 % \MakePercentIgnore
296 % }
297 % \LaTeXdemo@new{code and example}{^^A
298 % \setbox\LaTeXdemo@box=\hbox\bgroup
299 % \lst@BeginAlsoWriteFile{\jobname.tmp}^^A
300 % \LaTeXdemo@common
301 % }{^^A
302 % \lst@EndWriteFile
303 % \egroup
304 % \begin{center}
305 % \ifdim\wd\LaTeXdemo@box>0.48\linewidth\relax
306 % \hbox to\linewidth{\box\LaTeXdemo@box\hss}^^A
307 % \begin{minipage}{\linewidth}
308 % \LaTeXdemo@input
309 % \end{minipage}
310 % \else
311 % \begin{minipage}{0.48\linewidth}
312 % \LaTeXdemo@input
313 % \end{minipage}
314 % \hfill
315 % \begin{minipage}{0.48\linewidth}
316 % \hbox to\linewidth{\box\LaTeXdemo@box\hss}^^A
317 % \end{minipage}
318 % \fi
319 % \end{center}
320 % }
321 % \LaTeXdemo@new{code only}{^^A
322 % \LaTeXdemo@common
323 % }{^^A
324 % }%
325 %
326 % \newinsert\bx@S
327 % \newinsert\bx@T
328 % \newinsert\bx@U
329 % \newinsert\bx@V
330 % \newinsert\bx@W
331 % \newinsert\bx@X
332 % \newinsert\bx@Y
333 % \newinsert\bx@Z
334 % \newinsert\bx@AA
335 % \newinsert\bx@BB
336 % \newinsert\bx@CC
337 % \newinsert\bx@DD
338 % \newinsert\bx@EE
339 % \newinsert\bx@FF
340 % \newinsert\bx@GG
341 % \newinsert\bx@HH
342 % \newinsert\bx@II
343 % \newinsert\bx@JJ
344 % \gdef\@freelist{\@elt\bx@A\@elt\bx@B\@elt\bx@C\@elt\bx@D\@elt\bx@E
345 % \@elt\bx@F\@elt\bx@G\@elt\bx@H\@elt\bx@I\@elt\bx@J
346 % \@elt\bx@K\@elt\bx@L\@elt\bx@M\@elt\bx@N
347 % \@elt\bx@O\@elt\bx@P\@elt\bx@Q\@elt\bx@R
348 % \@elt\bx@S\@elt\bx@T\@elt\bx@U\@elt\bx@V
349 % \@elt\bx@W\@elt\bx@X\@elt\bx@Y\@elt\bx@Z
350 % \@elt\bx@AA\@elt\bx@BB\@elt\bx@CC\@elt\bx@DD
351 % \@elt\bx@EE\@elt\bx@FF\@elt\bx@GG\@elt\bx@HH
352 % \@elt\bx@II\@elt\bx@JJ}
353 %
354 % \renewcommand*{\fps@table}{htb}
355 % \setlength\belowcaptionskip{10pt}
356 %
357 % \providecommand*\env[1]{\texttt{#1}}
358 % \providecommand*\file[1]{\texttt{#1}}
359 % \providecommand*\opt[1]{\texttt{#1}}
360 % \providecommand*\pkg[1]{\textsf{#1}}
361 % \newcommand*{\BJNANO}{\emph{Beilstein Journal of Nano\-tech\-nology}\xspace}
362 % \def\testbx{bx}
363 % \DeclareRobustCommand*{\chem}[1]{\ensuremath{%
364 % \ifx\testbx\f@series\mathbf{#1}\else\mathrm{#1}\fi}}
365 % \DeclareRobustCommand*{\unit}[1]{%
366 % \ensuremath{\def\mu{\mbox{\textmu}}\def~{\,}%
367 % \unskip~%
368 % \ifx\testbx\f@series\mathbf{#1}\else\mathrm{#1}\fi}}
369 % \renewcommand*\thempfootnote{\@alph\c@mpfootnote}
370 % \renewcommand\@makefntext[1]%
371 % {\noindent\makebox[.5em][l]{\@makefnmark\,}#1}
372 % \renewcommand{\footnoterule}{}
373 % \def\BibTeX{\rmfamily B\kern-.05em%
374 % \ifx\testbx\f@series{\normalsize I\kern-.025em B\kern-.08em}%
375 % \else{\textsc{i\kern-.025em b}\kern-.08em}%
376 % \fi%
377 % \unskip T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}
378 % \setlength{\columnsep}{1cm}
379 % \makeatother
380 %
381 % \begin{titlepage}
382 % \setstretch{1.8}
383 % \renewcommand\thefootnote{\fnsymbol{footnote}}
384 % \vspace*{-2.5cm}%
385 % {\includegraphics*[width=7.7cm,keepaspectratio]{bjnano_logo}}\\[1cm]
386 % \begin{center}
387 % {\bfseries\LARGE Technical Handbook}\\[3ex]
388 % {\Large The \LaTeX\ \pkg{Beilstein} bundle for submissions to the\\%
389 % \emph{Beilstein Journal of Nanotechnology}}
390 % \end{center}
391 % \vspace{2cm}
392 % \setstretch{1.3}
393 % \begin{multicols}{2}
394 % \tableofcontents
395 % \end{multicols}
396 % \vspace{1cm}
397 % \begin{abstract}
398 % \noindent The \pkg{Beilstein} bundle provides a \LaTeX\ class file and a
399 % \BibTeX\ style file in accordance with the requirements of
400 % submissions to the \BJNANO. Although the files can be used for any kind of
401 % document, they have only been designed and tested to be suitable for
402 % submissions to the \BJNANO.
403 % \end{abstract}
404 % \end{titlepage}
405 % \clearpage
406 % \section{Introduction}
407 % The \pkg{Beilstein} bundle consists of three parts. The \LaTeX\ class
408 % \file{beilstein.cls} is intended to be used for submissions. It is
409 % based on the standard \pkg{article} class, but was modified
410 % to meet the requirements for submissions to the \BJNANO as
411 % published in the ``Instructions for Authors'' \cite{Beilstein-MSG}.
412 % Moreover the \LaTeX\ class \file{beilstein.cls} facilitates ease of use by
413 % providing the authors with a set of useful macros and environments.
414 %
415 % The \BibTeX\ style \file{bjnano.bst} is used by the class to format
416 % citations and references correctly. It is based on Joseph Wright's
417 % \file{achemso.bst}, but was largely adjusted to work exactly on
418 % \BJNANO submissions.
419 %
420 % Finally, an example document is included in the \pkg{Beilstein} bundle. It is
421 % intended to be used as a template for submissions, and illustrates the
422 % usage of the class and the \BibTeX\ file.
423 %
424 % \section{Installation}
425 % \subsection{Global installation via your \TeX{} distribution}
426 % From version 1.2 onwards, the \pkg{Beilstein} bundle is distributed via CTAN
427 % and the major \TeX{} distributions. Therefore after having updated your \TeX{}
428 % Live or MiKTeX installation you can use the \pkg{Beilstein} files right away.
429 %
430 % \subsection{Local TDS installation}
431 % The \pkg{Beilstein} bundle is supplied with the TDS-ready ZIP file,
432 % \file{beilstein-tds.zip}. Simply unzip this file into your local texmf
433 % tree and run your hash program (e.g., \texttt{texhash} for recent
434 % \TeX{}Live or MiK\TeX\ systems).
435 %
436 % To extract the bundle of files and to build the documentation
437 % yourself, run pdf\LaTeX\ on \texttt{beilstein.dtx}.
438 % The files can then be installed either by putting them into the
439 % current working directory (where the main \TeX\ file is) or --- much
440 % better --- as described above by moving the files to suitable places
441 % in a local texmf tree \$LOCALTEXMF according to
442 % Table~\ref{tab:install}.
443 % \begin{table}
444 % \centering
445 % \caption{Files contained in the \pkg{Beilstein} bundle.}
446 % \label{tab:install}
447 % \begin{tabular}{l@{\quad$\rightarrow$\quad}l}
448 % \toprule
449 % File & Directory\\\midrule
450 % \file{beilstein.cls} & \$LOCALTEXMF/tex/latex/beilstein\\
451 % \file{beilstein.dtx} & \$LOCALTEXMF/source/latex/beilstein\\
452 % \file{beilstein.ins} & \$LOCALTEXMF/source/latex/beilstein\\
453 % \file{beilstein-template.bib} & \$LOCALTEXMF/tex/latex/beilstein\\
454 % \file{beilstein-template.tex} & \$LOCALTEXMF/tex/latex/beilstein\\
455 % \file{bjnano.bst} & \$LOCALTEXMF/bibtex/bst/beilstein\\
456 % \file{bjnano\_logo.pdf} & \$LOCALTEXMF/source/latex/beilstein\\
457 % \file{figure1.pdf} & \$LOCALTEXMF/doc/latex/beilstein\\
458 % \file{scheme1.pdf} & \$LOCALTEXMF/tex/latex/beilstein\\
459 % \file{scheme2.pdf} & \$LOCALTEXMF/tex/latex/beilstein\\
460 % \bottomrule
461 % \end{tabular}
462 % \end{table}
463 %
464 % \newpage
465 % If you are not sure about local texmf trees at all, you can have a
466 % look at \url{https://texfaq.org/FAQ-inst-wlcf} for more information.
467 %
468 % \section{Requirements}
469 % The \pkg{Beilstein} class was designed to rely on standard \LaTeX\
470 % packages only. It requires the following ones:
471 % \begin{itemize}
472 % \item Internal packages
473 % \begin{itemize}
474 % \item \pkg{xkeyval},
475 % \item \pkg{ifthen},
476 % \item \pkg{babel},
477 % \item \pkg{inputenc, fontenc}.
478 % \end{itemize}
479 % \item Fonts
480 % \begin{itemize}
481 % \item \pkg{newtxtext}, \pkg{tgheros}, \pkg{newtxtt}
482 % \item \pkg{textcomp}.
483 % \end{itemize}
484 % \item Page layout
485 % \begin{itemize}
486 % \item \pkg{geometry},
487 % \item \pkg{ragged2e}, \pkg{everysel}, \pkg{footmisc},
488 % \item \pkg{setspace},
489 % \item \pkg{lineno}.
490 % \end{itemize}\pagebreak
491 % \item Math and science
492 % \begin{itemize}
493 % \item \pkg{amsmath, amstext, amssymb, amsgen, amsbsy, amsopn, amsfonts,
494 % newtxmath}.
495 % \end{itemize}
496 % \item Floats
497 % \begin{itemize}
498 % \item \pkg{float},
499 % \item \pkg{flafter},
500 % \item \pkg{graphicx},
501 % \item \pkg{array},
502 % \item \pkg{tabularx},
503 % \item \pkg{longtable}.
504 % \end{itemize}
505 % \item Bibliography
506 % \begin{itemize}
507 % \item \pkg{natbib}.
508 % \end{itemize}
509 % \end{itemize}
510 %
511 % All these packages should be present in any major \TeX\
512 % distribution and are also available from \emph{The Comprehensive
513 % TeX Archive Network} (CTAN) at \url{https://www.ctan.org}.
514 %
515 % A complete list of used files and tested versions can be found in
516 % the Appendix section on page~\pageref{appendix}.
517 %
518 % \section{The class file}
519 % \subsection{Class options}
520 % Most of the things to be considered for submissions to the \BJNANO are
521 % directly included into the class file. There is only one major choice authors
522 % have to make, i.e., to determine the type of manuscript they
523 % want to submit.
524 %
525 % \DescribeOption{manuscript=}%
526 % The Beilstein-Institut has defined five such types and each type
527 % has a special purpose and structure. The chosen option is used
528 % internally to check for mandatory sections and elements. The types are
529 % designed to give the author a slight control over the article structure.
530 %
531 % The selection of the type is done by the key-value-option \opt{manuscript},
532 % which can take the values listed in Table~\ref{tab:optionsmanuscript}.
533 % To switch your document to a ``Book Review Article'' e.g.,
534 % simply use \cs{documentclass[manuscript=bookreview]\{beilstein\}}.
535 % In case of an unknown value, the class will use the default option.
536 %
537 % \begin{table}
538 % \centering
539 % \caption{Possible values for key-value option
540 % ``manuscript''.\textsuperscript{\textit{a}}}
541 % \label{tab:optionsmanuscript}
542 % \begin{tabular}{ll}
543 % \toprule
544 % Option & Meaning\\\midrule
545 % \opt{manuscript=bookreport} & Book Report Article\\
546 % \opt{manuscript=commentary} & Commentary Article\\
547 % \itshape\opt{manuscript=fullresearchpaper} &
548 % \itshape Full Research Paper\\
549 % \opt{manuscript=letter} &
550 % Letter Article\\
551 % \opt{manuscript=review} & Review Article\\
552 % \opt{manuscript=suppinfo} & Supporting Information\\
553 % \bottomrule
554 % \end{tabular}\\
555 % \begin{flushleft}\footnotesize
556 % \textsuperscript{\textit{a}}Default option is printed in italics.
557 % \end{flushleft}
558 % \end{table}
559 % \newpage
560 %
561 % \DescribeOption{american}\DescribeOption{british}
562 % Two other options of a more technical aspect exist. Firstly, you can
563 % tell \LaTeX\ whether you use American or British English (see
564 % Table~\ref{tab:language}).
565 % Internally only different hyphenation patterns are used. So you might not see
566 % a difference in the output at first sight.
567 % \begin{table}
568 % \centering
569 % \caption{Options for language.\textsuperscript{\textit{a}}}
570 % \label{tab:language}
571 % \begin{tabular}{ll}
572 % \toprule
573 % Option & Meaning\\\midrule
574 % \itshape \opt{american}, \opt{USenglish} & \itshape Use American English\\
575 % \opt{british}, \opt{english}, \opt{UKenglish} & Use British English\\
576 % \bottomrule
577 % \end{tabular}\\
578 % \begin{flushleft}\footnotesize
579 % \textsuperscript{\textit{a}}Default option is printed in italics.
580 % \end{flushleft}
581 % \end{table}
582 %
583 % \DescribeOption{applemac}\DescribeOption{latin1}%
584 % \DescribeOption{utf8}%
585 % Secondly, you might want to change the input encoding of your
586 % document, e.g., when using accented characters. Therefore, the class
587 % offers a small set of options (see Table~\ref{tab:inputenc}). The option
588 % \opt{utf8} is set as default beginning with version 2.0.
589 % \begin{table}
590 % \centering
591 % \caption{Options for input encoding.%\textsuperscript{\textit{a}}}
592 % \label{tab:inputenc}
593 % \begin{tabular}{ll}
594 % \toprule
595 % Option & Meaning\\\midrule
596 % \opt{applemac} & Use special Mac encoding\\
597 % \opt{latin1} & Use ISO8859-1 encoding\\
598 % \itshape \opt{utf8} & \itshape Use UTF-8 encoding\\
599 % \bottomrule
600 % \end{tabular}\\
601 % \begin{flushleft}\footnotesize
602 % \textsuperscript{\textit{a}}Default option is printed in italics.
603 % \end{flushleft}
604 % \end{table}
605 %
606 % \noindent Further options have been added to the recent version of the class:%
607 %
608 % \DescribeOption{sectionnumbering}%
609 % The \pkg{Beilstein} class disables the usual section numbering
610 % mechanism by changing the counter ``secnumdepth'' appropriately. You
611 % can switch back by using the class option \opt{sectionnumbering=true} or
612 % just \opt{sectionnumbering}. Doing so all non-starred sectioning commands
613 % will be numbered while the starred versions still have no number.
614 %
615 % \DescribeOption{fnpara}
616 % By default footnotes can only be used in tables and are printed one
617 % per line. This can be changed to paragraph mode, either locally (see
618 % page~\pageref{pg:fnpara}) or globally. To this purpose the \pkg{Beilstein}
619 % class offers the option \opt{fnpara=true} or just \opt{fnpara}.
620 %
621 % \DescribeOption{Global options}
622 % The \pkg{Beilstein} class was developed to include all necessary
623 % requirements. However, if you need extra options for
624 % packages already being loaded by the class itself, you can add them
625 % to the list of global options.
626 %
627 % \subsection{Title page}
628 % The \BJNANO has its own title page format. However,
629 % a more or less standard set of \LaTeX\ commands can be used to provide the
630 % necessary information right after \cs{begin\{document\}}:
631 %
632 % \DescribeMacro{\title}
633 % The title of your manuscript is given with \cs{title\marg{title}}.
634 % There is also an optional argument that can be used when writing
635 % a document for the Supporting Information, e.g.,
636 % \cs{title\oarg{sititle}\marg{title}}. Both information are
637 % automatically used on the title page of the Supporting Information.
638 % For more information about creating Supporting Information files
639 % please see page~\pageref{suppinfo}.
640 %
641 % \DescribeMacro{\sititle}
642 % As an alternative to the optional argument of \cs{title}
643 % you can use the macro \cs{sititle\marg{sititle}}.
644 %
645 % \DescribeMacro{\author}\DescribeMacro{\author*}
646 % Each author of the article is named within their own \cs{author}
647 % command. For a corresponding author the extended version
648 % \cs{author*} must be used. It has an additional second mandatory
649 % argument holding the author's email address.
650 %
651 % With both commands the author's name is printed followed by a superscript
652 % number for the appropriate affiliation(s). As these numbers can be the same
653 % for several authors, an optional argument for a specific number can
654 % be used:\\
655 % \cs{author\oarg{affiliation number}\marg{author's name}} or\\
656 % \cs{author*\oarg{affiliation number}\marg{author's name}\marg{email
657 % address}}.
658 %
659 % If you want to provide an email address for a non-corresponding author,
660 % there is a second optional argument:\\
661 % \cs{author\oarg{affiliation number}\oarg{email address}\marg{author's name}}
662 %
663 % \vspace{0.3em}
664 % \noindent\fcolorbox{black}{red!40}{\parbox{%
665 % \dimexpr\textwidth-2\fboxsep-2\fboxrule\relax}{
666 % In order to add an email address the first optional argument
667 % has to be present in any case. If there is no affiliation number, empty
668 % square brackets need to be given.}}
669 %
670 % \vspace{0.3em}
671 % \DescribeMacro{\affiliation}
672 % The affiliations are given with \cs{affiliation\marg{postal address}}
673 % and are numbered consecutively. Each \cs{author} with dedicated affiliation(s)
674 % is followed by one or more \cs{affiliation} commands (see example
675 % below). This can also be combined with the optional affiliation number.
676 %
677 % \DescribeMacro{\maketitle}
678 % To print the title page use the command
679 % \cs{maketitle}.
680 % A complete title block might look like this:
681 % \begin{LaTeXdemo}[code only]
682 % \begin{document}
683 % \title{Synthesis of highly substituted allenylsilanes by
684 % alkylidenation of silylketenes}
685 % %Corresponding author:
686 % \author*{Stephen P. Marsden}{[email protected]} %
687 % \affiliation{School of Chemistry, University of Leeds, Leeds
688 % LS2 9JT, United Kingdom}
689 % %A second author with two affiliations and an email address:
690 % %Important: empty first optional argument
691 % \author[][Ducept@...]{Pascal C. Ducept}
692 % \affiliation{Department of Chemistry, Imperial College London,
693 % London SW7 2AY, United Kingdom}
694 % \affiliation{An alternative address can be given here.}
695 % %A third author with the same affiliation as the second:
696 % \author[2]{X. Y.}
697 % \maketitle %print the title page
698 % \end{LaTeXdemo}
699 %
700 % For abstract and keywords please see section~\ref{sec:special}.
701 %
702 % \subsection{Section headers}
703 % You can use the standard \LaTeX\ sectioning commands (with the exception of
704 % \cs{chapter}) to structure your document. Depending on the type of
705 % manuscript some sections are mandatory while others are optional.
706 %
707 % For a ``Full Research Paper'' the following section headings might
708 % be used:
709 % \begin{LaTeXdemo}[code only]
710 % \section{Introduction}
711 % ...
712 % \section{Experimental}
713 % ...
714 % \section{Results and Discussion}
715 % ...
716 % \section{Conclusion}
717 % \end{LaTeXdemo}
718 %
719 % Table \ref{tab:specialsections} gives an overview of all allowed section
720 % headings for the different \pkg{Beilstein} class manuscript types.
721 % \clearpage
722 % \begin{table}
723 % \centering
724 % \begin{minipage}{\linewidth}
725 % \caption{Allowed section headings for the different \pkg{Beilstein} class
726 % manuscript types.}
727 % \label{tab:specialsections}
728 % \begin{tabular}{@{}l*{5}{>{$}c<{$}}@{}}
729 % \toprule
730 % Section heading& \multicolumn{5}{c@{}}{Manuscript
731 % type\textsuperscript{\textit{a}}}\\
732 % &\mbox{BR}\textsuperscript{\textit{b}} & \mbox{CA}%
733 % \textsuperscript{\textit{c}}&\mbox{FR}\textsuperscript{\textit{d}}&
734 % \mbox{LA}\textsuperscript{\textit{e}} & \mbox{RA}%
735 % \textsuperscript{\textit{f}}\\\midrule
736 % \texttt{Book Details} & + & - & - & - & - \\
737 % \texttt{Conclusion} & - & + & o & - & + \\
738 % \texttt{Discussion} & - & + & - & - & - \\
739 % \texttt{Experimental} & - & - & o & - & - \\
740 % \texttt{Findings} & - & - & - & + & - \\
741 % \texttt{Introduction} & - & + & + & - & - \\
742 % \texttt{Main Text} & + & - & - & - & - \\
743 % \texttt{Results and Discussion} (may be separate) & - & - & + & - & - \\
744 % \texttt{Review} & - & - & - & - & + \\
745 % \bottomrule
746 % \end{tabular}
747 % \begin{flushleft}\footnotesize
748 % \textsuperscript{\textit{a}}$+$ denotes a mandatory, $o$ an optional and $-$ a
749 % non-feasible section\\
750 % \textsuperscript{\textit{b}}Book Report Article\\
751 % \textsuperscript{\textit{c}}Commentary Article\\
752 % \textsuperscript{\textit{d}}Full Research Paper\\
753 % \textsuperscript{\textit{e}}Letter Article\\
754 % \textsuperscript{\textit{f}}Review Article\\
755 % \end{flushleft}
756 % \end{minipage}
757 % \end{table}
758 %
759 % \subsection{Special sections}\label{sec:special}
760 % \DescribeEnv{abstract}
761 % After the title page an abstract must be given (with the exception of
762 % ``Book Reports'' and ``Commentaries''). To meet the specifications for
763 % \BJNANO submissions \LaTeX\ redefines the usual \env{abstract} environment
764 % internally.
765 %
766 % \DescribeMacro{\keywords}
767 % The ``Keywords'' need to be given right after the abstract. There can be an
768 % arbitrary number of keywords (at least five keywords are recommended), and
769 % therefore the \cs{keywords} macro has only one mandatory argument holding the
770 % keywords separated by semicolons.
771 %
772 % An abstract with keywords should look like this:
773 % \begin{LaTeXdemo}[code only]
774 % \begin{abstract}
775 % ...
776 % \end{abstract}
777 % \keywords{allenylsilanes; rhodium(II) octanoate-mediated
778 % rearrangement; silylketenes; titanium carbenoids; ylide}
779 % \end{LaTeXdemo}
780 % \clearpage
781 %
782 % \DescribeEnv{acknowledgements}
783 % \DescribeEnv{funding}
784 % The sections ``Acknowledgements'' and ``Funding'' are optional parts of all
785 % article types.
786 %
787 % \vspace{0.3em}
788 % \noindent\fcolorbox{black}{red!40}{\parbox{%
789 % \dimexpr\textwidth-2\fboxsep-2\fboxrule\relax}{%
790 % All financial disclosures are supposed to be part of the ``Funding''
791 % section.}}
792 %
793 % As the layout differs from that of the main text, these sections should be
794 % written using the environments \env{acknowledgements} and \env{funding}:
795 %
796 % \begin{LaTeXdemo}[code only]
797 % \begin{acknowledgements}
798 % We would like to thank ...
799 % \end{acknowledgements}
800 % \end{LaTeXdemo}
801 %
802 % \begin{LaTeXdemo}[code only]
803 % \begin{funding}
804 % This work was financially supported by ...
805 % The authors are grateful for funding from ...
806 % \end{funding}
807 % \end{LaTeXdemo}
808 %
809 % \DescribeEnv{suppinfo}\label{suppinfo}%
810 % Another optional section of an article is the
811 % ``Supporting Information'', which may consist of various ``Supporting
812 % Information Files''. To begin this section simply use \cs{begin\{suppinfo\}}.
813 %
814 % \DescribeMacro{\sifile}
815 % Inside the \env{suppinfo} environment the command \cs{sifile} is
816 % used to add a ``Supporting Information File''. The syntax is:\\
817 % \cs{sifile\oarg{long description}\marg{filename}\marg{format}\marg{short
818 % description}}
819 %
820 % Each \cs{sifile} can be followed by a \cs{label\marg{labelname}} to
821 % cross-reference that file in the main text using
822 % \cs{ref\marg{labelname}}.
823 %
824 % The complete section could look like this:
825 % \begin{LaTeXdemo}[code only]
826 % \begin{suppinfo}
827 % \sifile{experimental_part.pdf}{PDF}{Experimental part}
828 % \label{si:experimental-part}
829 % \sifile[A long description about the experimental data given in
830 % this file]{nmr1.pdf}{PDF}{NMR spectra of compounds \CN{1},
831 % \CN{2}, \CN{6} and \CN{7}.}
832 % \end{suppinfo}
833 % \end{LaTeXdemo}
834 %
835 % \DescribeEnv{\LaTeX\ source}A Supporting Information File can be created from
836 % a \LaTeX\ source using the Beilstein \LaTeX\ class. The same syntax that is
837 % used for the title page of the main manuscript can be used for the
838 % Supporting Information. An additional title for the
839 % Supporting Information (e.g., ``Additional experimental data'') can be added
840 % by using the \oarg{sititle} option of the \cs{title} command:
841 % \cs{title\oarg{sititle}\marg{manuscript title}}.\\
842 % \DescribeMacro{\sititle}
843 % Alternatively, the macro \cs{sititle\marg{sititle}} can be used.
844 %
845 % \subsection{Floats}\label{sec:floats}
846 % \DescribeEnv{figure}
847 % \DescribeEnv{table}
848 % \DescribeEnv{scheme}
849 % In addition to the environments \env{table} and \env{figure} already included
850 % in \LaTeX , there is a third environment for \BJNANO publications, i.e.,
851 % \env{scheme}. There is no difference in usage between \env{scheme}
852 % and the former two. To add a scheme ``AScheme.pdf'' you can enter the
853 % following:
854 % \begin{LaTeXdemo}[code only]
855 % \begin{scheme}
856 % \caption{A scheme demonstrating something.}
857 % \label{scheme:something}
858 % \includegraphics[width=16.8cm,keepaspectratio]{AScheme}
859 % \end{scheme}
860 % \end{LaTeXdemo}
861 %
862 % \noindent\fcolorbox{black}{red!40}{\parbox{%
863 % \dimexpr\textwidth-2\fboxsep-2\fboxrule\relax}{%
864 % pdf\LaTeX\ is limited to a small set of graphic formats. All files have
865 % to be either in the PDF, PNG or JPG format.\\
866 % Using EPS graphics will lead to an error during upload to the submission
867 % system. EPS graphics need to be converted to PDF, e.g., by using the package
868 % \pkg{epstopdf}, before uploading the manuscript to the submission system.}}
869 %
870 % \vspace{\baselineskip}
871 % \DescribeMacro{\caption}\DescribeMacro{\label}
872 % Please note that it does not matter whether \cs{caption} is put above or
873 % below \cs{includegraphics}. The caption will always be below the scheme in
874 % the output file. The same mechanism is used to put figure captions
875 % below and table captions above the content. If you want to add a
876 % concise title to a float, please use the optional argument:
877 % \cs{caption\oarg{concise title}\marg{legend}}.
878 % \DescribeMacro{\ref}
879 % However, as common in \LaTeX\ \cs{label\marg{labelname}} must
880 % always follow \cs{caption}, otherwise a corresponding \cs{ref}
881 % command will yield wrong results.
882 %
883 % \DescribeMacro{\sglcolfigure}
884 % \DescribeMacro{\sglcolscheme}
885 % \DescribeEnv{sglcoltabular}\DescribeMacro{sglcoltabularx}
886 % During the final typesetting process the article will be printed in
887 % double-column mode. Although this does not make any difference for
888 % section headings and text, floating objects can be formatted
889 % single-column (with a maximum width of 8.2\,cm) or double-column (with
890 % a maximum width of 16.8\,cm).
891 %
892 % The \pkg{Beilstein} class defines some macros to comfortably add
893 % floats without bothering about the correct width. For single-column
894 % floats you can use \cs{sglcolfigure\marg{filename}} and
895 % \cs{sglcolscheme\marg{filename}} as well as the environments
896 % \env{sglcoltabular} and \env{sglcoltabularx}.
897 %
898 % A single-column scheme containing ``results-sil.pdf'' can
899 % then be inserted as:
900 % \begin{LaTeXdemo}[code only]
901 % \begin{scheme}
902 % \sglcolscheme{results-sil} %or alternatively:
903 % %\includegraphics[width=8.2cm,keepaspectratio]{results-sil}
904 % \caption{Reaction of substituted silylketenes with
905 % ester-stabilised phosphoranes.}
906 % \label{scheme:silylketenes}
907 % \end{scheme}
908 % \end{LaTeXdemo}
909 % \newpage
910 % \DescribeMacro{\dblcolscheme}%
911 % \DescribeMacro{\dblcolfigure}%
912 % \DescribeEnv{dblcoltabular}%
913 % \DescribeEnv{dblcoltabularx}
914 % The same macros and environments with ``dbl'' instead of ``sgl'' are
915 % defined for double-column floats. Thus for a table you can use:
916 % \begin{LaTeXdemo}[code only]
917 % \begin{table} %floating environment
918 % \caption{Reaction of substituted silylketenes with ester-stabilised
919 % phosphoranes.}
920 % \label{tab:silylketenes}
921 % \begin{dblcoltabularx}{|l|>{\bfseries}l|>{\bfseries}l|l|l|X|X|}\hline
922 % \bfseries Entry & \bfseries Ketene & \bfseries Ylide &
923 % \bfseries Temp (\celsius) & \bfseries t (h) & \bfseries Solvent &
924 % \bfseries Yield 6/7 (8)\\\hline
925 % 1 & 1a & 4 & 80 & 24 & PhH & 54\,\%\\\hline
926 % 2 & 1a & 5 & rt & 3 & CHCL & 60\,\%\\\hline
927 % ...
928 % \end{dblcoltabularx}
929 % \end{table}
930 % \end{LaTeXdemo}
931 %
932 % More information on the \env{tabularx} environment can be found
933 % in the documentation of the \pkg{tabularx} package \cite{doc-tabularx}.
934 % The standard \env{tabular} environment
935 % with the common column parameters ``l, c, r, p'' is supported as
936 % well.
937 %
938 % \DescribeEnv{longtable}
939 % If you have a table that is longer than one page, please use the
940 % \env{longtable} environment. Please see the documentation of the package
941 % for more information.
942 %
943 % \DescribeMacro{\footnote}
944 % Footnotes are only allowed in tables (see Appendix section).
945 % You can use them in the caption as well as within the table.
946 % Lowercase letters are used automatically and the footnote text is
947 % written below the table.
948 %
949 % \DescribeMacro{\fnpara}\DescribeMacro{\fnnormal}\label{pg:fnpara}
950 % You can use \cs{fnpara} to switch to paragraph mode for footnotes in
951 % all following tables. To restore the usual footnote formatting
952 % just use \cs{fnnormal}.
953 % \begin{LaTeXdemo}[code only]
954 % \fnpara
955 % %Table with footnotes in paragraph mode
956 % \begin{table}
957 % ...
958 % \end{table}
959 % ...
960 % \fnnormal
961 % %Table with normal footnotes
962 % \begin{table}
963 % ...
964 % \end{table}
965 % \end{LaTeXdemo}
966 %
967 % \subsection{Writing chemistry}
968 % \LaTeX\ is a very powerful tool for mathematical
969 % typesetting. All commands and structures included in
970 % are provided by the \pkg{Beilstein} class as well. In addition, the
971 % packages of the \AmS, such as \pkg{amsmath} and \pkg{amssymb}, are loaded.
972 %
973 % \DescribeEnv{\$...\$}\DescribeEnv{equation}
974 % You can use the standard delimiters \$\ldots\$ for inline math and
975 % environments such as \env{equation} for math floats. Please use the inline
976 % math mode for single numbers such as $-2$ to obtain the correct minus sign.
977 % Please note that --- as described in the ``Instructions for Authors'' ---
978 % equations must fit a width of 8.2\,cm (single column). Wider equations need to
979 % be split accordingly.
980 %
981 % \DescribeMacro{\text}
982 % If you have text inside a formula, e.g., as an index, you can use
983 % \cs{text} to typeset it in an upright font and in the correct size.
984 % \begin{LaTeXdemo}[code only]
985 % $\text{amplitude sensitivity}=10$\\
986 % $C_\text{PEG}=170$
987 % \end{LaTeXdemo}
988 %
989 % However, for chemical elements and reactions the \LaTeX\ math mode is not
990 % sufficient, because many chemical expressions have to be typeset
991 % in an upright font and not in italics. For example, \texttt{\$O\_2\$}
992 % results in $O_2$ instead of O$_2$. Using \cs{text} or writing
993 % \texttt{O\$\_2\$} can solve this issue, but both methods are not very
994 % comfortable when they have to be applied multiple times. Therefore a
995 % special \cs{chem} macro is provided by the \pkg{Beilstein} class.
996 %
997 % \vskip2ex%
998 % \noindent\textbf{Chemical specialities: the \cs{chem} and \cs{unit} macros}\\
999 % Although there are already many powerful packages such as
1000 % \pkg{siunitx} or \pkg{chemsym} to write physical and chemical units
1001 % and symbols, the \pkg{Beilstein} class implements its own rather
1002 % simple interface to keep all submitted documents consistent and make
1003 % it easier to process them during final typesetting.
1004 %
1005 % \DescribeMacro{\chem}
1006 % \DescribeMacro{^}\DescribeMacro{_}
1007 % For chemical formulas the macro \cs{chem} is defined. Inside its
1008 % argument \texttt{\_} and \texttt{\^} are active in the same way as in the math
1009 % mode. All text, e.g., element names is typeset in an upright font.
1010 % \begin{LaTeXdemo}[code and example]%
1011 % \chem{CuCl_2} and \chem{{SO_4}^{2-}}\\
1012 % \chem{^2_1H+{^3_1H}}\\
1013 % $C\chem{_{Cu^{2+}}}\times 10^{-2}=0.005(1)\,\text{M}$\\
1014 % \end{LaTeXdemo}
1015 %
1016 % \DescribeMacro{\unit}
1017 % The same applies to physical units. For instance, writing
1018 % \texttt{\$cm\^{}2\$} does not result in cm$^2$, but $cm^2$. Thus,
1019 % \cs{unit} can be used to enter all units correctly and more
1020 % comfortably. If more than one unit is needed,
1021 % \texttt{\textasciitilde} can be used to separate them.
1022 %
1023 % \begin{LaTeXdemo}[code and example]
1024 % $\text{amplitude sensitivity}=10\unit{nA~V^{-1}}$\\
1025 % $C_\text{PEG}=170\unit{mg/ml}$
1026 % \end{LaTeXdemo}
1027 %
1028 % \DescribeMacro{\rightarrow}
1029 % \DescribeMacro{\rightleftarrows}
1030 % \DescribeMacro{\rightleftharpoons}
1031 % \DescribeMacro{\leftrightarrow}
1032 % \DescribeMacro{\leftrightarrow}
1033 % \DescribeMacro{\Rightarrow}
1034 % \DescribeMacro{\uparrow}
1035 % \DescribeMacro{\downarrow}
1036 % \DescribeMacro{\curvearrowright}
1037 % \DescribeMacro{\rightharpoondown}
1038 % \LaTeX\ provides
1039 % several arrows for chemical reactions. The most common ones are
1040 % listed in Table~\ref{tab:arrows}. Many more can be obtained from
1041 % \pkg{amssymb}.
1042 %
1043 % \begin{LaTeXdemo}[code and example]
1044 % \chem{CH_4+2O_2\rightarrow CO_2 + 2H_2O}\\
1045 % \chem{2H_{2(g)}+O_{2(g)}\to 2H_2 O_{(l)}} $\Delta H=-286$\unit{kJ/mol}\\
1046 % \chem{N_{2(g)}+3H_{2(g)}\rightleftharpoons 2NH_{3(g)}}
1047 % \end{LaTeXdemo}
1048 %
1049 % \begin{table}
1050 % \centering
1051 % \caption{\LaTeX\ macros for arrows used in chemical reactions.}
1052 % \label{tab:arrows}
1053 % \begin{tabular}{lll}
1054 % \toprule
1055 % Arrow & Macro & Usage\\\midrule
1056 % $\rightarrow$ & \cs{rightarrow} or \cs{to} & One-way chemical reactions\\
1057 % $\rightleftarrows$ & \cs{rightleftarrows} & Two-way chemical reactions\\
1058 % $\rightleftharpoons$ & \cs{rightleftharpoons} & Equilibria\\
1059 % $\leftrightarrow$ & \cs{leftrightarrow} & Resonance structures\\
1060 % $\Rightarrow$ & \cs{Rightarrow} & Retrosynthetic analysis\\
1061 % $\uparrow$ & \cs{uparrow}\\
1062 % $\downarrow$ & \cs{downarrow}\\
1063 % $\curvearrowright$ & \cs{curvearrowright}\\
1064 % $\rightharpoondown$ & \cs{rightharpoondown}\\
1065 % \bottomrule
1066 % \end{tabular}
1067 % \end{table}
1068 %
1069 % \DescribeMacro{\CN}
1070 % Compounds have to be typeset in boldface. Instead of \cs{textbf}
1071 % \cs{CN} can also be used for a logical markup. For ranges of
1072 % compound numbers \cs{nobreakdash--} avoids linebreaks.
1073 %
1074 % \DescribeMacro{\IUPAC}
1075 % \DescribeMacro{\-}\DescribeMacro{\|}
1076 % Long names of chemical compounds sometimes are hyphenated badly.
1077 % This can be controlled by using \cs{-} for hyphens and \cs{|}
1078 % for soft hyphens as arguments in \cs{IUPAC}, e.g.,\\
1079 %\cs{IUPAC\{4,7-dimethyl\cs{-}3,5,7-tri\cs{|}hydro-1,2,4,7-tetrazocin\cs{-}3,8-dione\}}.
1080 %
1081 % \vspace{\baselineskip}%
1082 % \noindent\textbf{Chemical structures from external programs}\\
1083 % There is a lot of highly specified software such as
1084 % \textsf{ChemDraw\textsuperscript{\textregistered}} to draw complex chemical
1085 % structures. You should always use such programs and then export your drawings
1086 % to the PDF format to be included in your \LaTeX\ document as described in
1087 % section~\ref{sec:floats}.
1088 %
1089 % \section{Managing references with \texorpdfstring{\BibTeX}{BiBTeX}}
1090 % \subsection{The \texorpdfstring{\BibTeX}{BiBTeX} style files}
1091 % The \pkg{Beilstein} bundle includes a special \BibTeX\ style
1092 % \file{bjnano.bst}, which implements all needed entry types and fields
1093 % as well as format specifications of the \BJNANO. It is always used
1094 % automatically by the \pkg{Beilstein} class. The exact structure of a suitable
1095 % \BibTeX\ database for \BJNANO is described in
1096 % section~\ref{sec:structure}.
1097 %
1098 % \DescribeMacro{\bibliography}
1099 % To generate the section ``References'' containing all information
1100 % from the \BibTeX\ database for all citations, the command
1101 % \cs{bibliography\marg{database}} is to be used just before
1102 % \cs{end\{document\}}.
1103 %
1104 % \subsection{Structure of a \texorpdfstring{\BibTeX}{BibTeX} database}
1105 % \label{sec:structure}
1106 % The \BibTeX\ programming language knows the most common entry
1107 % types cited in academic papers. However, a few such as ``WWW'' for
1108 % internet resources and links or ``SOFTWARE'' are missing. They
1109 % could be emulated, but it is much better to directly introduce them to
1110 % \BibTeX. The same is valid for special data fields.
1111 %
1112 % Not all entry types and fields that are in included in \BibTeX
1113 % are needed and allowed in \BJNANO submissions. They could even lead to
1114 % erroneous output when not treated correctly. Therefore the entry types are
1115 % restricted to the following:
1116 % \begin{multicols}{3}
1117 % \small
1118 % \begin{itemize}\ttfamily
1119 % \item @ARTICLE
1120 % \item @BOOK
1121 % \item @INCOLLECTION
1122 % \item @INPRESS
1123 % \item @INPROCEEDINGS
1124 % \item @MISC
1125 % \item @PATENT
1126 % \item @PHDTHESIS
1127 % \item @PROCEEDINGS
1128 % \item @SOFTWARE
1129 % \item @WWW
1130 % \item []~
1131 % \end{itemize}
1132 % \end{multicols}
1133 %
1134 % \noindent In addition to the well-known data fields the following data fields were
1135 % added:
1136 % \begin{description}
1137 % \item[doi] Digital Object Identifier, e.g.,\\
1138 % \verb+doi = {10.1080/02678290500291699}+\\
1139 % (optional for all references)
1140 % \item[url] URL for any internet source, e.g.,\\
1141 % \verb+url = {https://www.beilstein-journals.org/bjnano}+\\(mandatory for
1142 % \texttt{@WWW})
1143 % \item[urldate] Date when the url was visited last, e.g.,\\
1144 % \verb+urldate = {Sep 12, 2007}+\\(mandatory for \texttt{@WWW})
1145 % \item[venue] Information about a conference (place and time), e.g.,\\
1146 % \verb+venue = {Baltimore, MD, June 27--30, 1996}+\\(optional for
1147 % \texttt{@PROCEEDINGS} and \texttt{@INPROCEEDINGS})
1148 % \item[version] Version of a software, e.g.,
1149 % \verb+version = {Revision C.02}+\\(mandatory for \texttt{@SOFTWARE})
1150 % \end{description}%
1151 %
1152 % \noindent\fcolorbox{black}{red!40}{\parbox{%
1153 % \dimexpr\textwidth-2\fboxsep-2\fboxrule\relax}{The%
1154 % \pkg{Beilstein} bundle contains the file ``beilstein-template.bib'' with
1155 % example entries for all types of references
1156 % described in \cite{Beilstein-MSG}.}}%
1157 % \begin{thebibliography}{9}
1158 % \bibitem{Beilstein-MSG}\BJNANO Instructions for Authors.
1159 % \url{https://www.beilstein-journals.org/bjnano/authorInstructions}
1160 % \bibitem{doc-tabularx}\emph{David Carlisle:} The \pkg{tabularx}
1161 % package, v2.11 (2016-02-03), %
1162 % \url{https://ctan.org/pkg/tabularx}.
1163 % \end{thebibliography}
1164 %
1165 % \newpage
1166 % \addcontentsline{toc}{section}{Appendix}
1167 % \appendix
1168 % \section*{Appendix}\label{appendix}\markboth{\appendixname}{\appendixname}
1169 % \subsection*{Deactivated macros}\label{sec:forbidden}
1170 % A few macros were
1171 % ``deactivated'', i.e., their usage results in an error. Right now
1172 % this is valid for the standard commands listed in
1173 % Table~\ref{tab:forbidden}.
1174 % \begin{table}
1175 % \begin{minipage}{\linewidth}
1176 % \centering
1177 % \caption{Forbidden macros.}
1178 % \label{tab:forbidden}
1179 % \begin{tabular}{ll}
1180 % \toprule
1181 % Macro & Alternative\\\midrule
1182 % \cs{and} & Use \cs{author} and \cs{author*} for every author\\
1183 % \cs{footnote\marg{text}} & None\textsuperscript{\textit{a}}\\
1184 % \cs{thanks\marg{affiliation}} & Use
1185 % \cs{affiliation\marg{affiliation}}\\
1186 % \bottomrule
1187 % \end{tabular}
1188 % \begin{flushleft}\footnotesize
1189 % \textsuperscript{\textit{a}}\cs{footnote} remains active in the \env{table}
1190 % environment.
1191 % \end{flushleft}
1192 % \end{minipage}
1193 % \end{table}
1194 % \subsection*{List of package files}\label{sec:filelist}
1195 % \small
1196 % \noindent%
1197 % \begin{longtable}{@{}p{.25\linewidth}@{\extracolsep}p{.75\linewidth}@{}}
1198 % File name & Version\\\midrule
1199 % \endhead
1200 % \multicolumn{2}{r@{}}{\itshape Continued on next page}
1201 % \endfoot
1202 % \bottomrule
1203 % \endlastfoot
1204 % beilstein.cls & 2020/02/11 v2.0 Template for submissions to the ``Beilstein
1205 % Journal of Nanotechnology'' (BJNANO)\\
1206 % xkeyval.sty & 2014/12/03 v2.7a package option processing (HA)\\
1207 % xkeyval.tex & 2014/12/03 v2.7a key=value parser (HA)\\
1208 % ifthen.sty & 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)\\
1209 % article.cls & 2019/10/25 v1.4k Standard LaTeX document class\\
1210 % size12.clo & 2019/10/25 v1.4k Standard LaTeX file (size option)\\
1211 % babel.sty & 2020/01/15 3.38 The Babel package\\
1212 % bblopts.cfg & 2005/09/08 v0.1 add Arabic and Farsi to "declared" options of
1213 % babel\\
1214 % american.ldf & 2017/06/06 v3.3r English support from the babel system\\
1215 % inputenc.sty & 2018/08/11 v1.3c Input encoding file\\
1216 % fontenc.sty\\
1217 % t1enc.def & 2018/08/11 v2.0j Standard LaTeX file\\
1218 % textcomp.sty & 2018/08/11 v2.0j Standard LaTeX package\\
1219 % ts1enc.def & 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file\\
1220 % ts1enc.dfu & 2019/07/11 v1.2j UTF-8 support for inputenc\\
1221 % tgheros.sty & 2009/09/27 v1.2 TeX Gyre Heros as default sans serif family\\
1222 % kvoptions.sty & 2019/11/29 v3.13 Key value format for package options (HO)\\
1223 % ltxcmds.sty & 2019/12/15 v1.24 LaTeX kernel commands for general use (HO)\\
1224 % kvsetkeys.sty & 2019/12/15 v1.18 Key value parser (HO)\\
1225 % amsmath.sty & 2019/11/16 v2.17d AMS math features\\
1226 % amstext.sty & 2000/06/29 v2.01 AMS text\\
1227 % amsgen.sty & 1999/11/30 v2.0 generic functions\\
1228 % amsbsy.sty & 1999/11/29 v1.2d Bold Symbols\\
1229 % amsopn.sty & 2016/03/08 v2.02 operator names\\
1230 % amssymb.sty & 2013/01/14 v3.01 AMS font symbols\\
1231 % amsfonts.sty & 2013/01/14 v3.01 Basic AMSFonts support\\
1232 % newtxtext.sty & 2018/03/27 v1.531\\
1233 % fontaxes.sty & 2014/03/23 v1.0d Font selection axes\\
1234 % etoolbox.sty & 2019/09/21 v2.5h e-TeX tools for LaTeX (JAW)\\
1235 % mweights.sty & 2017/03/30 (Bob Tennent) Support package for multiple-weight
1236 % font packages. \\
1237 % fontenc.sty\\
1238 % t1enc.def & 2018/08/11 v2.0j Standard LaTeX file\\
1239 % newtxtt.sty & 2014/12/23 v1.051\\
1240 % newtxmath.sty & 2020/01/11 v1.623\\
1241 % ifxetex.sty & 2019/10/25 v0.7 ifxetex legacy package. Use iftex instead.\\
1242 % iftex.sty & 2019/11/07 v1.0c TeX engine tests\\
1243 % ifluatex.sty & 2019/10/25 v1.5 ifluatex legacy package. Use iftex instead.\\
1244 % centernot.sty & 2016/05/16 v1.4 Centers the not symbol horizontally (HO)\\
1245 % binhex.tex\\
1246 % geometry.sty & 2020/01/02 v5.9 Page Geometry\\
1247 % ifvtex.sty & 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.\\
1248 % geometry.cfg\\
1249 % setspace.sty & 2011/12/19 v6.7a set line spacing\\
1250 % ragged2e.sty & 2019/07/28 v2.2 ragged2e Package (MS)\\
1251 % everysel.sty & 2011/10/28 v1.2 EverySelectfont Package (MS)\\
1252 % footmisc.sty & 2011/06/06 v5.5b a miscellany of footnote facilities\\
1253 % lineno.sty & 2005/11/02 line numbers on paragraphs v4.41\\
1254 % multicol.sty & 2019/03/01 v1.8w multicolumn formatting (FMi)\\
1255 % float.sty & 2001/11/08 v1.3d Float enhancements (AL)\\
1256 % flafter.sty & 2018/11/28 v1.4d Standard LaTeX floats after reference (FMi)\\
1257 % graphicx.sty & 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)\\
1258 % graphics.sty & 2019/11/01 v1.3d Standard LaTeX Graphics (DPC,SPQR)\\
1259 % trig.sty & 2016/01/03 v1.10 sin cos tan (DPC)\\
1260 % graphics.cfg & 2016/06/04 v1.11 sample graphics configuration\\
1261 % pdftex.def & 2018/01/08 v1.0l Graphics/color driver for pdftex\\
1262 % array.sty & 2019/08/31 v2.4l Tabular extension package (FMi)\\
1263 % tabularx.sty & 2016/02/03 v2.11b `tabularx' package (DPC)\\
1264 % longtable.sty & 2019/02/06 v4.12 Multi-page Table package (DPC)\\
1265 % natbib.sty & 2010/09/13 8.31b (PWD, AO)\\
1266 % url.sty & 2013/09/16 ver 3.4 Verb mode for urls, etc.\\
1267 % xspace.sty & 2014/10/28 v1.13 Space after command names (DPC,MH)\\
1268 % t1ntxtlf.fd & 2015/01/17 v1.0 font definition file for T1/ntx/tlf\\
1269 % cleveref.sty & 2018/03/27 v0.21.4 Intelligent cross-referencing\\
1270 % omlntxmi.fd & 2015/08/25 Fontinst v1.933 font definitions for OML/ntxmi.\\
1271 % untxexa.fd & 2012/04/16 Fontinst v1.933 font definitions for U/ntxexa.\\
1272 % ts1cmr.fd & 2014/09/29 v2.5h Standard LaTeX font definitions\\
1273 % lmsntxsy.fd & 2016/07/02 Fontinst v1.933 font definitions for LMS/ntxsy.\\
1274 % lmxntxexx.fd & 2016/07/03 Fontinst v1.933 font definitions for LMX/ntxexx.\\
1275 % supp-pdf.mkii\\
1276 % epstopdf-base.sty & 2019-12-09 v2.10 Base part for package epstopdf\\
1277 % infwarerr.sty & 2019/12/03 v1.5 Providing info/warning/error messages (HO)\\
1278 % grfext.sty & 2019/12/03 v1.3 Manage graphics extensions (HO)\\
1279 % kvdefinekeys.sty & 2019-12-19 v1.6 Define keys (HO)\\
1280 % pdftexcmds.sty & 2019/11/24 v0.31 Utility functions of pdfTeX for LuaTeX
1281 % (HO)\\
1282 % t1qhv.fd & 2009/09/25 v1.2 font definition file for T1/qhv\\
1283 % ot1ntxtlf.fd & 2015/01/17 v1.0 font definition file for OT1/ntx/tlf\\
1284 % umsa.fd & 2013/01/14 v3.01 AMS symbols A\\
1285 % umsb.fd & 2013/01/14 v3.01 AMS symbols B\\
1286 % untxmia.fd & 2018/04/14 Fontinst v1.933 font definitions for U/ntxmia.\\
1287 % untxsym.fd & 2015/03/20 Fontinst v1.933 font definitions for U/ntxsym.\\
1288 % untxsyc.fd & 2012/04/12 Fontinst v1.933 font definitions for U/ntxsyc.\\
1289 % \end{longtable}
1290 %
1291 % \normalsize
1292 % \StopEventually{\clearpage\PrintChanges\PrintIndex}
1293 % \section{Implementation}
1294 %
1295 % \begin{macrocode}
1296 %<*class>
1297 % \end{macrocode}
1298 % \begin{macrocode}
1299 \NeedsTeXFormat{LaTeX2e}
1300 \ProvidesClass{beilstein}
1301 [2020/08/26 v2.1 Template for submissions to the ``Beilstein Journal %
1302 of Nanotechnology'' (BJNANO)]
1303 % \end{macrocode}
1304 % For class options key-value pairs are used. They are provided by the
1305 % \pkg{xkeyval} package.
1306 % \begin{macrocode}
1307 \RequirePackage{xkeyval}
1308 \RequirePackage{ifthen}
1309 % \end{macrocode}
1310 % The articles can be written in British or American English.
1311 % Therefore the class offers different options which are passed to the
1312 % \pkg{babel} package.
1313 % \begin{macrocode}
1314 \newif\iflangamerican
1315 \DeclareOptionX<beilstein>{american}{%
1316 \langamericantrue%
1317 }%
1318 \DeclareOptionX<beilstein>{british}{%
1319 \langamericanfalse%
1320 }
1321 \DeclareOptionX<beilstein>{english}{%
1322 \langamericanfalse%
1323 }
1324 % \end{macrocode}
1325 % \changes{v1.2}{2017/08/16}{Modified options to match \pkg{xkeyval}}
1326 % \begin{macrocode}
1327 \DeclareOptionX<beilstein>{latin1}{\def\beilstein@inputenc{latin1}}
1328 \DeclareOptionX<beilstein>{utf8}{\def\beilstein@inputenc{utf8}}
1329 \DeclareOptionX<beilstein>{applemac}{\def\beilstein@inputenc{applemac}}
1330 % \end{macrocode}
1331 % Setup the defaults
1332 % \changes{v2.0}{2020/02/05}{utf8 is now the default option}
1333 % \begin{macrocode}
1334 \ExecuteOptionsX<beilstein>{american,utf8}
1335 % \end{macrocode}
1336 % There are five types of documents which differ in their structure. To
1337 % check it the concrete manuscript type can be given with the type
1338 % option. The code is adapted from the \pkg{achemso} bundle.
1339 % \begin{macrocode}
1340 \newcommand*\beilstein@manuscript{fullresearchpaper}
1341 \define@cmdkey{beilstein}[beilstein@]{manuscript}{}
1342 % \end{macrocode}
1343 % \begin{macrocode}
1344 \define@boolkey{beilstein}[beilstein@]{sectionnumbering}[true]{}
1345 % \end{macrocode}
1346 % \begin{macrocode}
1347 \define@boolkey{beilstein}[beilstein@]{fnpara}[true]{}
1348 % \end{macrocode}
1349 % \changes{v1.4}{2018/01/16}{New option suppinfo}
1350 % \begin{macrocode}
1351 \ProcessOptionsX*<beilstein>
1352 \newcommand*\beilstein@manuscript@fullresearchpaper{fullresearchpaper}
1353 \newcommand*\beilstein@manuscript@commentary{commentary}
1354 \newcommand*\beilstein@manuscript@bookreport{bookreport}
1355 \newcommand*\beilstein@manuscript@review{review}
1356 \newcommand*\beilstein@manuscript@letter{letter}
1357 \newcommand*\beilstein@manuscript@suppinfo{suppinfo}
1358 \newcommand*\beilstein@type@list{fullresearchpaper,commentary,%
1359 bookreport,review,letter,suppinfo}
1360 \newcommand*\beilstein@type@default{fullresearchpaper}
1361 \newcommand*\beilstein@type@check{%
1362 \@tempswafalse
1363 \@for\@tempa:=\beilstein@type@list\do{%
1364 \ifx\@tempa\beilstein@manuscript
1365 \expandafter\@tempswatrue
1366 \fi
1367 }%
1368 \if@tempswa\else
1369 \ClassWarningNoLine{beilstein}{%
1370 Invalid manuscript type \beilstein@manuscript:\MessageBreak
1371 changed to default type \beilstein@type@default
1372 }%
1373 \let\beilstein@manuscript\beilstein@type@default
1374 \fi
1375 }
1376 % \end{macrocode}
1377 % Set up the document class with corresponding options.
1378 % \begin{macrocode}
1379 \LoadClass[12pt,a4paper,oneside,onecolumn,titlepage]{article}
1380 \iflangamerican
1381 \RequirePackage[american]{babel}%
1382 \ClassInfo{beilstein}{Language has been set to American English}%
1383 \else%
1384 \RequirePackage[british]{babel}%
1385 \ClassInfo{beilstein}{Language has been set to British English}%
1386 \fi%
1387 \RequirePackage[\beilstein@inputenc]{inputenc}
1388 \ClassInfo{beilstein}{Input encoding has been set to \beilstein@inputenc}
1389 \RequirePackage[T1]{fontenc}
1390 % \end{macrocode}
1391 % Set up fonts. The document is typeset using TX fonts, for sans serif TeX
1392 % Gyre Heros will be used.
1393 % \begin{macrocode}
1394 \RequirePackage[full]{textcomp}
1395 \RequirePackage[scale]{tgheros}
1396 \RequirePackage[intlimits,sumlimits,namelimits,fleqn]{amsmath}
1397 \RequirePackage{amssymb}
1398 \RequirePackage{newtxtext}
1399 \RequirePackage[zerostyle=a]{newtxtt}
1400 \RequirePackage{newtxmath}
1401 % \end{macrocode}
1402 % Set up the page geometry. All articles are typeset doublespaced and %
1403 % flushleft. The \pkg{ragged2e} package gives better results for ragged %
1404 % texts. \pkg{setspace} easily changes the line spreading.
1405 % \begin{macrocode}
1406 \RequirePackage[%
1407 textheight=23cm,%
1408 textwidth=16.8cm,%
1409 ignoreheadfoot]{geometry}
1410 \usepackage[doublespacing]{setspace}
1411 \pagestyle{plain}
1412 \beilstein@type@check%
1413 \ifthenelse{\equal{\beilstein@manuscript}{\beilstein@manuscript@suppinfo}}%
1414 {\RequirePackage[newcommands]{ragged2e}}%
1415 {\RequirePackage[document,newcommands]{ragged2e}}%
1416 \setlength{\parindent}{0pt}
1417 % \end{macrocode}
1418 % For the Referee's version line numbers are pretty useful. Some
1419 % modifications must be done to make \pkg{lineno} work with
1420 % \pkg{amsmath} (see e.g., \url{http://phaseportrait.blogspot.com/2007/
1421 % 08/lineno-and-amsmath-compatibility.html})
1422 % Additionally all equations' width can be limited. The environment
1423 % widetext allows equations of the whole text width.
1424 % \begin{macrocode}
1425 \newcommand{\setdisplaywidth}{%
1426 \ifthenelse{\boolean{widetext}}%
1427 {\makeatletter%
1428 \setlength{\mathindent}{0cm}%
1429 \makeatother}%
1430 {\makeatletter%
1431 \setlength{\mathindent}{1.6cm}%
1432 \makeatother}%
1433 }%
1434 \newboolean{widetext}
1435 \newenvironment{widetext}%
1436 {\setboolean{widetext}{true}}%
1437 {\setboolean{widetext}{false}}
1438 \RequirePackage[mathlines]{lineno}
1439 \ifthenelse{\equal{\beilstein@manuscript}{\beilstein@manuscript@suppinfo}}%
1440 {\nolinenumbers}%
1441 {\linenumbers}%
1442 \newcommand*\patchAmsMathEnvironmentForLineno[1]{%
1443 \expandafter\let\csname old#1\expandafter\endcsname\csname #1\endcsname
1444 \expandafter\let\csname oldend#1\expandafter\endcsname\csname end#1\endcsname
1445 \renewenvironment{#1}%
1446 {\linenomath\setdisplaywidth\csname old#1\endcsname}%
1447 {\csname oldend#1\endcsname\endlinenomath}}%
1448 \newcommand*\patchBothAmsMathEnvironmentsForLineno[1]{%
1449 \patchAmsMathEnvironmentForLineno{#1}%
1450 \patchAmsMathEnvironmentForLineno{#1*}}%
1451 \AtBeginDocument{%
1452 \patchBothAmsMathEnvironmentsForLineno{equation}%
1453 \patchBothAmsMathEnvironmentsForLineno{align}%
1454 \patchBothAmsMathEnvironmentsForLineno{flalign}%
1455 \patchBothAmsMathEnvironmentsForLineno{alignat}%
1456 \patchBothAmsMathEnvironmentsForLineno{gather}%
1457 \patchBothAmsMathEnvironmentsForLineno{multline}%
1458 }%
1459 % \end{macrocode}
1460 % All sections are unnumbered. Therefore the counter ``secnumdepth'' %
1461 % is set to a value less than -1
1462 % \begin{macrocode}
1463 \ifbeilstein@sectionnumbering%
1464 \setcounter{secnumdepth}{3}
1465 \ClassInfo{beilstein}{Section numbering turned on}
1466 \else%
1467 \setcounter{secnumdepth}{-2}
1468 \ClassInfo{beilstein}{Section numbering turned off}
1469 \fi%
1470 % \end{macrocode}
1471 % The appearance of the section headings is changed a little bit
1472 % \begin{macrocode}
1473 \renewcommand\Large{\fontsize{16pt}{22pt}\selectfont}
1474 \renewcommand\section{%
1475 \@startsection{section}{1}{\z@}%
1476 {-2ex}%
1477 {1ex}%
1478 {\normalfont\Large\bfseries}}
1479 \renewcommand\subsection{%
1480 \@startsection{subsection}{2}{\z@}%
1481 {-2ex}%
1482 {1ex}%
1483 {\normalfont\large\bfseries}}
1484 \renewcommand\subsubsection{%
1485 \@startsection{subsubsection}{3}{\z@}%
1486 {-2ex}%
1487 {1ex}%
1488 {\normalfont\normalsize\bfseries}}
1489 \renewcommand\paragraph{%
1490 \ClassError{beilstein}{The sectioning command \string\paragraph\space
1491 \MessageBreak is not supported by the beilstein class}{You can only use \string\section\space \string\subsection\space and \string\subsubsection}%
1492 \@gobble}
1493 \renewcommand\subparagraph{
1494 \ClassError{beilstein}{The sectioning command \string\paragraph\space
1495 \MessageBreak is not supported by the beilstein class}{You can only use \string\section\space \string\subsection\space and \string\subsubsection}}
1496 % \end{macrocode}
1497 % \DescribeMacro{\chem}\DescribeMacro{\unit}
1498 % \DescribeMacro{\IUPAC}
1499 % Load standard math packages and define special macros
1500 % \cs{chem} and \cs{unit}. Additionally macros for some special units
1501 % are defined.
1502 % \begin{macrocode}
1503 \setlength{\mathindent}{1.6cm}%
1504 \DeclareFontFamily{U}{eur}{\skewchar\font'177}
1505 \DeclareFontShape{U}{eur}{m}{n}{%
1506 <-6> eurm5 <6-8> eurm7 <8-> eurm10}{}
1507 \DeclareFontShape{U}{eur}{b}{n}{%
1508 <-6> eurb5 <6-8> eurb7 <8-> eurb10}{}
1509 \DeclareSymbolFont{ugrf@m}{U}{eur}{m}{n}
1510 \SetSymbolFont{ugrf@m}{bold}{U}{eur}{b}{n}
1511 \let\uppi\@undefined
1512 \DeclareMathSymbol{\upalpha}{\mathord}{ugrf@m}{"0B}
1513 \DeclareMathSymbol{\upbeta}{\mathord}{ugrf@m}{"0C}
1514 \DeclareMathSymbol{\upgamma}{\mathord}{ugrf@m}{"0D}
1515 \DeclareMathSymbol{\updelta}{\mathord}{ugrf@m}{"0E}
1516 \DeclareMathSymbol{\upepsilon}{\mathord}{ugrf@m}{"0F}
1517 \DeclareMathSymbol{\upzeta}{\mathord}{ugrf@m}{"10}
1518 \DeclareMathSymbol{\upeta}{\mathord}{ugrf@m}{"11}
1519 \DeclareMathSymbol{\uptheta}{\mathord}{ugrf@m}{"12}
1520 \DeclareMathSymbol{\upiota}{\mathord}{ugrf@m}{"13}
1521 \DeclareMathSymbol{\upkappa}{\mathord}{ugrf@m}{"14}
1522 \DeclareMathSymbol{\uplambda}{\mathord}{ugrf@m}{"15}
1523 \DeclareMathSymbol{\upmu}{\mathord}{ugrf@m}{"16}
1524 \DeclareMathSymbol{\upnu}{\mathord}{ugrf@m}{"17}
1525 \DeclareMathSymbol{\upxi}{\mathord}{ugrf@m}{"18}
1526 \DeclareMathSymbol{\uppi}{\mathord}{ugrf@m}{"19}
1527 \DeclareMathSymbol{\uprho}{\mathord}{ugrf@m}{"1A}
1528 \DeclareMathSymbol{\upsigma}{\mathord}{ugrf@m}{"1B}
1529 \DeclareMathSymbol{\uptau}{\mathord}{ugrf@m}{"1C}
1530 \DeclareMathSymbol{\upupsilon}{\mathord}{ugrf@m}{"1D}
1531 \DeclareMathSymbol{\upphi}{\mathord}{ugrf@m}{"1E}
1532 \DeclareMathSymbol{\upchi}{\mathord}{ugrf@m}{"1F}
1533 \DeclareMathSymbol{\uppsi}{\mathord}{ugrf@m}{"20}
1534 \DeclareMathSymbol{\upomega}{\mathord}{ugrf@m}{"21}
1535 \DeclareMathSymbol{\upvarepsilon}{\mathord}{ugrf@m}{"22}
1536 \DeclareMathSymbol{\upvartheta}{\mathord}{ugrf@m}{"23}
1537 \DeclareMathSymbol{\upvarpi}{\mathord}{ugrf@m}{"24}
1538 \let\upvarrho\uprho
1539 \let\upvarsigma\upsigma
1540 \DeclareMathSymbol{\upvarphi}{\mathord}{ugrf@m}{"27}
1541 \DeclareMathSymbol{\Upgamma}{\mathord}{ugrf@m}{"00}
1542 \DeclareMathSymbol{\Updelta}{\mathord}{ugrf@m}{"01}
1543 \DeclareMathSymbol{\Uptheta}{\mathord}{ugrf@m}{"02}
1544 \DeclareMathSymbol{\Uplambda}{\mathord}{ugrf@m}{"03}
1545 \DeclareMathSymbol{\Upxi}{\mathord}{ugrf@m}{"04}
1546 \DeclareMathSymbol{\Uppi}{\mathord}{ugrf@m}{"05}
1547 \DeclareMathSymbol{\Upsigma}{\mathord}{ugrf@m}{"06}
1548 \DeclareMathSymbol{\Upupsilon}{\mathord}{ugrf@m}{"07}
1549 \DeclareMathSymbol{\Upphi}{\mathord}{ugrf@m}{"08}
1550 \DeclareMathSymbol{\Uppsi}{\mathord}{ugrf@m}{"09}
1551 \DeclareMathSymbol{\Upomega}{\mathord}{ugrf@m}{"0A}
1552 % \end{macrocode}
1553 % Equations should usually not span over one column (8.2cm). Thus all
1554 % mathematical environments are patched.
1555 % \begin{macrocode}
1556 \RequirePackage{multicol}
1557 \newcommand*\patchAmsMathEnvironmentForOnecolumn[1]{%
1558 \expandafter\let\csname old#1\expandafter\endcsname\csname #1\endcsname
1559 \expandafter\let\csname oldend#1\expandafter\endcsname\csname end#1\endcsname
1560 \renewenvironment{#1}%
1561 {\csname old#1\endcsname}%
1562 {\csname oldend#1\endcsname}}%
1563 \newcommand*\patchBothAmsMathEnvironmentsForOnecolumn[1]{%
1564 \patchAmsMathEnvironmentForOnecolumn{#1}%
1565 \patchAmsMathEnvironmentForOnecolumn{#1*}}%
1566 % \end{macrocode}
1567 % \begin{macrocode}
1568 \def\testbx{bx}
1569 \AtBeginDocument{%
1570 \@ifundefined{chem}{%
1571 \DeclareRobustCommand*{\chem}[1]{\ensuremath{%
1572 \ifx\testbx\f@series\mathbf{#1}\else\mathrm{#1}\fi}}}%
1573 {}
1574 \@ifundefined{unit}{%
1575 \DeclareRobustCommand*{\unit}[1]{%
1576 \ensuremath{\def\mu{\mbox{\textmu}}\def~{\,}%
1577 \unskip~%
1578 \ifx\testbx\f@series\mathbf{#1}\else\mathrm{#1}\fi}}}%
1579 {}
1580 \@ifundefined{degree}{%
1581 \newcommand*{\degree}{\ensuremath{{}^{\circ}}}}%
1582 {}
1583 \@ifundefined{celsius}{%
1584 \newcommand*{\celsius}{\degree\kern-\scriptspace C}}%
1585 {}
1586 \@ifundefined{angstrom}{%
1587 \newcommand*{\angstrom}{\AA}}%
1588 {}
1589 \@ifundefined{permil}{%
1590 \newcommand*{\permil}{\textperthousand}}%
1591 {}
1592 \@ifundefined{percent}{%
1593 \newcommand*{\percent}{\%}}%
1594 {}
1595 }%
1596 % \end{macrocode}
1597 % If the \pkg{bpchem} has not been loaded we take some of its definitions
1598 % and add them to the beginning of the document.
1599 % \begin{macrocode}
1600 \AtBeginDocument{%
1601 \@ifpackageloaded{bpchem}{}{%
1602 \DeclareRobustCommand{\allowhyphens}{\penalty\@M \hskip\z@skip}
1603 \DeclareRobustCommand{\BreakHyph}{\penalty\@M -\allowhyphens}
1604 \DeclareRobustCommand{\MultiBreak}%
1605 {\penalty\@M\discretionary{-}{}{\kern.03em}%
1606 \allowhyphens}
1607 \DeclareRobustCommand{\DoIUPAC}[1]{%
1608 #1\endgroup}
1609 \def\Prep{%
1610 \let\-=\BreakHyph%
1611 \let\|=\MultiBreak%
1612 \DoIUPAC%
1613 }
1614 \DeclareRobustCommand*{\IUPAC}{%
1615 \begingroup\ignorespaces%
1616 \Prep}%
1617 \expandafter\DeclareRobustCommand\expandafter\|\expandafter{\|}
1618 % \end{macrocode}
1619 % \changes{v1.2}{2017/08/21}{Removed definition for robust \cs{-} due to
1620 % conflict with recent \LaTeX{} versions.}
1621 % \begin{macrocode}
1622 }%
1623 % \end{macrocode}
1624 % Recent \LaTeX{} versions define \cs{-} as robust. \pkg{bpchem} up to v1.06
1625 % does this as well, which results in a infinite loop. We therefore take the
1626 % definition from the latest LaTeX version and use it in all cases.
1627 % \begin{macrocode}
1628 \DeclareRobustCommand{\-}{%
1629 \discretionary{%
1630 \char \ifnum\hyphenchar\font<\z@
1631 \defaulthyphenchar
1632 \else
1633 \hyphenchar\font
1634 \fi%
1635 }{}{}%
1636 }%
1637 }%
1638 % \end{macrocode}
1639 % \begin{macrocode}
1640 \newcommand{\fnpara}{\setboolean{beilstein@fnpara}{true}}
1641 \newcommand{\fnnormal}{\setboolean{beilstein@fnpara}{false}}
1642 \newskip\footglue
1643 \newcommand{\testfnpara}{
1644 \ifbeilstein@fnpara%
1645 % \end{macrocode}
1646 % From latex.ltx :
1647 % \begin{macrocode}
1648 \renewcommand\@mpfootnotetext[1]{%
1649 \global\setbox\@mpfootins\vbox{%
1650 \unvbox\@mpfootins
1651 \reset@font\footnotesize
1652 \hsize\columnwidth
1653 \@parboxrestore
1654 \protected@edef\@currentlabel
1655 {\csname p@mpfootnote\endcsname\@thefnmark}%
1656 \color@begingroup
1657 \setbox0=\hbox{%
1658 \@makefntext{%
1659 \rule\z@\footnotesep\ignorespaces##1\@finalstrut\strutbox
1660 \penalty -10
1661 \hskip\footglue
1662 }%
1663 }%
1664 \dp0=0pt \ht0=\fudgefactor\wd0 \box0
1665 \color@endgroup}}
1666 \footglue=1em plus.3em minus.3em
1667 % \end{macrocode}
1668 % Cut down from article.cls :
1669 % From latex.ltx:
1670 % \begin{macrocode}
1671 \def\endminipage{%
1672 \par
1673 \unskip
1674 \ifvoid\@mpfootins\else
1675 \vskip\skip\@mpfootins
1676 \normalcolor
1677 \footnoterule
1678 \mpmakefootnoteparagraph
1679 \fi
1680 \global\@minipagefalse %% added 24 May 89
1681 \color@endgroup
1682 \egroup
1683 \expandafter\@iiiparbox\@mpargs{\unvbox\@tempboxa}}
1684 \def\@makecol{%
1685 \ifvoid\footins
1686 \setbox\@outputbox\box\@cclv
1687 \else
1688 \setbox\@outputbox\vbox{%
1689 \boxmaxdepth \@maxdepth
1690 \unvbox \@cclv
1691 \vskip \skip\footins
1692 \color@begingroup
1693 \normalcolor
1694 \footnoterule
1695 \makefootnoteparagraph
1696 \color@endgroup
1697 }%
1698 \fi%
1699 \xdef\@freelist{\@freelist\@midlist}%
1700 \global\let\@midlist\@empty
1701 \@combinefloats
1702 \ifvbox\@kludgeins
1703 \@makespecialcolbox
1704 \else
1705 \setbox\@outputbox\vbox to\@colht{%
1706 \@texttop
1707 \dimen@ \dp\@outputbox
1708 \unvbox \@outputbox
1709 \vskip -\dimen@
1710 \@textbottom
1711 }%
1712 \fi%
1713 \global\maxdepth\@maxdepth
1714 }%
1715 {\catcode`p=12 \catcode`t=12 \gdef\@ennumber##1pt {##1} }
1716 {\footnotesize \newdimen\footnotebaselineskip
1717 \global
1718 \footnotebaselineskip=\normalbaselineskip}
1719 \dimen0=\footnotebaselineskip \multiply\dimen0 by 1024
1720 \divide \dimen0 by \columnwidth \multiply\dimen0 by 64
1721 \xdef\fudgefactor{\expandafter0.2441}%%\@ennumber\the\dimen0 }
1722 \def\makefootnoteparagraph{\unvbox\footins \makehboxofhboxes
1723 \setbox0=\hbox{\unhbox0 \removehboxes}
1724 \hsize\columnwidth
1725 \@parboxrestore
1726 \baselineskip=\footnotebaselineskip
1727 \noindent
1728 \rule{\z@}{\footnotesep}%
1729 \unhbox0\par}
1730 \def\mpmakefootnoteparagraph{\unvbox\@mpfootins \makehboxofhboxes
1731 \setbox0=\hbox{\unhbox0 \removehboxes}
1732 \hsize\columnwidth
1733 \@parboxrestore
1734 \baselineskip=\footnotebaselineskip
1735 \noindent
1736 \rule{\z@}{\footnotesep}%
1737 \unhbox0\par}
1738 \def\makehboxofhboxes{\setbox0=\hbox{}
1739 \loop\setbox2=\lastbox \ifhbox2 \setbox0=\hbox{\box2\unhbox0}\repeat}
1740 \def\removehboxes{\setbox0=\lastbox
1741 \ifhbox0{\removehboxes}\unhbox0 \fi}%
1742 \ClassInfo{beilstein}{Footnotes are set to paragraph mode.}
1743 \fi%
1744 }%
1745 % \end{macrocode}
1746 % \LaTeX\ already knows about tables and figures as floating objects. %
1747 % Additionally for Beilstein publications the new type ``scheme'' is %
1748 % defined with the \pkg{caption} package which is as well used to set %
1749 % the captions and positions of all floats correctly.
1750 % First of all load the package with options.
1751 % With the \pkg{float} package the position of the captions can be %
1752 % fixed independently of their position in the source.
1753 % \begin{macrocode}
1754 \RequirePackage{float}
1755 \let\belowcaptionskip\abovecaptionskip
1756 \renewcommand\floatc@plain[2]{{\bfseries #1:} #2\par}
1757 \floatstyle{plaintop}
1758 \restylefloat{table}
1759 \floatstyle{plain}
1760 \restylefloat{figure}
1761 % Try to place figures and tables ``here'', i.e., after the current %
1762 % paragraph, first. The \pkg{flafter} package automatically places %
1763 % floats after the first reference.
1764 % \begin{macrocode}
1765 \RequirePackage{flafter}
1766 \renewcommand*{\fps@figure}{htb}
1767 \renewcommand*{\fps@table}{htb}
1768 \def\FloatBarrier{\par\begingroup \let\@elt\relax
1769 \edef\@tempa{\@botlist\@deferlist\@dbldeferlist}%
1770 \ifx\@tempa\@empty%
1771 \else
1772 \ifx\@fltovf\relax % my indicator of recursion
1773 \if@firstcolumn%
1774 \clearpage
1775 \else %
1776 \null\newpage\FloatBarrier
1777 \fi
1778 \else%
1779 \newpage \let\@fltovf\relax%
1780 \FloatBarrier % recurse once only
1781 \fi\fi \endgroup
1782 \suppressfloats[t]}
1783 % \end{macrocode}
1784 % Define a new type of float named ``scheme'' which is handled like %
1785 % table and figure.
1786 % \begin{macrocode}
1787 \newfloat{scheme}{htb}{los}
1788 \floatname{scheme}{Scheme}
1789 % \end{macrocode}
1790 % For graphics (PDF, PNG and JPG) the standard package \pkg{graphicx} %
1791 % is loaded.
1792 % \begin{macrocode}
1793 \RequirePackage{graphicx}
1794 % \end{macrocode}
1795 % For tables some more packages are needed.
1796 % Apart from the standard \pkg{array} package \pkg{tabularx} for
1797 % tables with columns of equal size is loaded.
1798 % \begin{macrocode}
1799 \RequirePackage{array}
1800 \RequirePackage{tabularx}
1801 \RequirePackage{longtable}
1802 % \end{macrocode}
1803 % For the authors' convenience special tabular environments for single
1804 % and double column tables and commands for figures and schemes are
1805 % defined.
1806 % \begin{macrocode}
1807 \newenvironment{sglcoltabular}[1]{\begin{tabular*}{8.2cm}{#1}}%
1808 {\end{tabular*}}
1809 \newenvironment{dblcoltabular}[1]{\begin{tabular*}{16.8cm}{#1}}%
1810 {\end{tabular*}}
1811 \newenvironment{sglcoltabularx}[1]{\tabularx{8.2cm}{#1}}{\endtabularx}
1812 \newenvironment{dblcoltabularx}[1]{\tabularx{16.8cm}{#1}}{\endtabularx}
1813 \newcommand{\sglcolfigure}[1]%
1814 {\includegraphics[width=8.2cm,keepaspectratio]{#1}}
1815 \newcommand{\dblcolfigure}[1]%
1816 {\includegraphics[width=16.8cm,keepaspectratio]{#1}}
1817 \newcommand{\sglcolscheme}[1]%
1818 {\includegraphics[width=8.2cm,keepaspectratio]{#1}}
1819 \newcommand{\dblcolscheme}[1]%
1820 {\includegraphics[width=16.8cm,keepaspectratio]{#1}}
1821 % \end{macrocode}
1822 % Referencing floats is one of LaTeXs advantages. The \pkg{cleveref} %
1823 % package extends those abilities even further.
1824 %
1825 % To avoid problems when \pkg{hyperref} is used as well, we postpone the
1826 % packages's loading to the very end of the preamble.
1827 % \changes{1.3}{2017/11/09}{Postpone loading of \pkg{cleveref}}
1828 % \begin{macrocode}
1829 \RequirePackage{etoolbox}%
1830 \AtEndPreamble{%
1831 \IfFileExists{cleveref.sty}{%
1832 \RequirePackage{cleveref}[2009/12/11]
1833 }{\ClassInfo{beilstein}{Package ``cleveref'' was not found and %
1834 \MessageBreak therefore has not been loaded.}}
1835 % \end{macrocode}
1836 % The standard types just need a little adaption for the names.
1837 % \begin{macrocode}
1838 \@ifpackageloaded{cleveref}{%
1839 \crefname{figure}{Figure}{Figures}
1840 \crefname{table}{Table}{Tables}
1841 % \end{macrocode}
1842 % The new type ``scheme'' should be recognized as well.
1843 % \begin{macrocode}
1844 \crefname{scheme}{Scheme}{Schemes}
1845 \crefformat{scheme}{Scheme~#2#1#3}
1846 \Crefformat{scheme}{Scheme~#2#1#3}
1847 % \end{macrocode}
1848 % The authors use extended information stored in extra files as well
1849 % and cross-reference to them. So those ones are also adapted.
1850 % \begin{macrocode}
1851 \crefname{suppinfo}{Supporting Information File}{Supporting
1852 Information Files}
1853 \crefformat{suppinfo}{Supporting Information File~#2#1#3}
1854 \Crefformat{suppinfo}{Supporting Information File~#2#1#3}
1855 }{\newcommand{\cref}[1]%
1856 {\ClassError{beilstein}{Macro \string\cref\space has not been
1857 defined\MessageBreak since the cleveref package could not be
1858 loaded}{Please install the package cleveref first}
1859 }%
1860 }%
1861 }%
1862 % \end{macrocode}
1863 % The bibliography has a special format which is based on a kind of %
1864 % standard in chemistry. Together with a custom \BibTeX Style called %
1865 % ``bjnano'' the \pkg{natbib} package sets up the correct format.
1866 % \begin{macrocode}
1867 \RequirePackage[sort&compress,numbers]{natbib}
1868 \renewcommand{\bibnumfmt}[1]{#1.\ }
1869 \bibliographystyle{bjnano}
1870 \def\NAT@spacechar{}%
1871 \def\NAT@citexnum[#1][#2]#3{%
1872 \NAT@reset@parser
1873 \NAT@sort@cites{#3}%
1874 \NAT@reset@citea
1875 \@cite{\def\NAT@num{-1}\let\NAT@last@yr\relax\let\NAT@nm\@empty
1876 \@for\@citeb:=\NAT@cite@list\do
1877 {\@safe@activestrue
1878 \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}%
1879 \@safe@activesfalse
1880 \@ifundefined{b@\@citeb\@extra@b@citeb}{%
1881 {\reset@font\bfseries?}
1882 \NAT@citeundefined\PackageWarning{natbib}%
1883 {Citation `\@citeb' on page \thepage \space undefined}}%
1884 {\let\NAT@last@num\NAT@num\let\NAT@last@nm\NAT@nm
1885 \NAT@parse{\@citeb}%
1886 \ifNAT@longnames\@ifundefined{bv@\@citeb\@extra@b@citeb}{%
1887 \let\NAT@name=\NAT@all@names
1888 \global\@namedef{bv@\@citeb\@extra@b@citeb}{}}{}%
1889 \fi
1890 \ifNAT@full\let\NAT@nm\NAT@all@names\else
1891 \let\NAT@nm\NAT@name\fi
1892 \ifNAT@swa
1893 \@ifnum{\NAT@ctype>\@ne}{%
1894 \@citea
1895 \NAT@hyper@{\@ifnum{\NAT@ctype=\tw@}{\NAT@test{\NAT@ctype}}{\NAT@alias}}%
1896 }{%
1897 \@ifnum{\NAT@cmprs>\z@}{%
1898 \NAT@ifcat@num\NAT@num
1899 {\let\NAT@nm=\NAT@num}%
1900 {\def\NAT@nm{-2}}%
1901 \NAT@ifcat@num\NAT@last@num
1902 {\@tempcnta=\NAT@last@num\relax}%
1903 {\@tempcnta\m@ne}%
1904 \@ifnum{\NAT@nm=\@tempcnta}{%
1905 \@ifnum{\NAT@merge>\@ne}{}{\NAT@last@yr@mbox}%
1906 }{%
1907 \advance\@tempcnta by\@ne
1908 \@ifnum{\NAT@nm=\@tempcnta}{%
1909 \ifx\NAT@last@yr\relax
1910 \def@NAT@last@yr{\@citea}%
1911 \else
1912 \def@NAT@last@yr{-\NAT@penalty}%
1913 \fi
1914 }{%
1915 \NAT@last@yr@mbox
1916 }%
1917 }%
1918 }{%
1919 \@tempswatrue
1920 \@ifnum{\NAT@merge>\@ne}{\@ifnum{\NAT@last@num=\NAT@num\relax}{\@tempswafalse}{}}{}%
1921 \if@tempswa\NAT@citea@mbox\fi
1922 }%
1923 }%
1924 \NAT@def@citea
1925 \else
1926 \ifcase\NAT@ctype
1927 \ifx\NAT@last@nm\NAT@nm \NAT@yrsep\NAT@penalty\NAT@space\else
1928 \@citea
1929 \NAT@test{\@ne}\NAT@spacechar\NAT@mbox{\NAT@super@kern\NAT@@open}%
1930 \fi
1931 \if*#1*\else#1\NAT@spacechar\fi
1932 \NAT@mbox{\NAT@hyper@{{\citenumfont{\NAT@num}}}}%
1933 \NAT@def@citea@box
1934 \or
1935 \NAT@hyper@citea@space{\NAT@test{\NAT@ctype}}%
1936 \or
1937 \NAT@hyper@citea@space{\NAT@test{\NAT@ctype}}%
1938 \or
1939 \NAT@hyper@citea@space\NAT@alias
1940 \fi
1941 \fi
1942 }%
1943 }%
1944 \@ifnum{\NAT@cmprs>\z@}{\NAT@last@yr}{}%
1945 \ifNAT@swa\else
1946 \@ifnum{\NAT@ctype=\z@}{%
1947 \if*#2*\else\NAT@cmt#2\fi
1948 }{}%
1949 \NAT@mbox{\NAT@@close}%
1950 \fi
1951 }{#1}{#2}%
1952 }%
1953 % \end{macrocode}
1954 % \begin{macrocode}
1955 \newboolean{nobreakdashused}
1956 \newcommand{\mynobreakdash}{%
1957 \ifthenelse{\boolean{nobreakdashused}}
1958 {}
1959 {\nobreakdash--%
1960 \setboolean{nobreakdashused}{true}%
1961 }}%
1962 % \end{macrocode}
1963 % Load the \pkg{url} package to get enhanced support for Links and set %
1964 % the font to the same as the main text
1965 % \begin{macrocode}
1966 \RequirePackage{url}
1967 \urlstyle{same}
1968 % \end{macrocode}
1969 % For cites in floats special care has to be taken, as those citations %
1970 % have to be listed after all others. %
1971 % TODO: If a reference is cited elsewhere in the main text, the number
1972 % is not correctly set yet.
1973 % \begin{macrocode}
1974 \newcounter{c@totalcites}
1975 \newcounter{c@floatcites}
1976 \AtBeginDocument{\setcounter{c@floatcites}{\value{c@totalcites}}}
1977 \def\floatcites{}
1978 \let\ORIG@bibliography\bibliography
1979 \renewcommand\bibliography{%
1980 \FloatBarrier%
1981 \@ifundefined{NAT@num}{\gdef\NAT@num{0}}{}%
1982 \ifx\NAT@num\@empty\gdef\NAT@num{0}\fi%
1983 \immediate\write\@auxout{%
1984 \string\setcounter{\string c@totalcites}{\NAT@num}}%
1985 \floatcites%
1986 \setlength{\bibsep}{0pt}%
1987 \ORIG@bibliography}
1988 \renewenvironment{thebibliography}[1]
1989 {\section*{\refname}%
1990 \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
1991 \list{\@biblabel{\@arabic\c@enumiv}}%
1992 {\settowidth\labelwidth{\@biblabel{#1}}%
1993 \leftmargin\labelwidth
1994 \advance\leftmargin\labelsep
1995 \@openbib@code
1996 \usecounter{enumiv}%
1997 \let\p@enumiv\@empty
1998 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
1999 \sloppy
2000 \clubpenalty10000
2001 \@clubpenalty \clubpenalty
2002 \widowpenalty10000%
2003 \sfcode`\.\@m}
2004 {\def\@noitemerr
2005 {\@latex@warning{Empty `thebibliography' environment}}%
2006 \endlist}
2007 % \end{macrocode}
2008 % The title page needs some special care. The author should have an
2009 % easy interface. Most of the work is then done internally. Basically
2010 % speaking all information are stored in a temp variable and printed
2011 % later, because the punctuation differs.
2012 % First some commands and counters are set up.
2013 % \begin{macrocode}
2014 \DeclareRobustCommand\authors{}
2015 \def\authorsep{}
2016 \DeclareRobustCommand\temp@author{}
2017 \DeclareRobustCommand\temp@superscripts{}
2018 \def\emails{}
2019 \def\emailsep{}
2020 \newcommand{\oneORnone}{1}
2021 \newcommand{\firstoptarg}{}
2022 \newcommand{\temp@firstoptarg}{}
2023 \newcounter{c@author}
2024 \newcounter{c@totauthor}
2025 \newcounter{c@totalauthors}
2026 \newboolean{corauth}
2027 \setboolean{corauth}{false}
2028 \newboolean{extraaffil}
2029 \setboolean{extraaffil}{false}
2030 % \end{macrocode}
2031 % There are different ``author'' commands. So a distinction has to be made
2032 % \begin{macrocode}
2033 \def\author{\@ifstar{\@ifnextchar[{\@@corauth}{\@corauth}}%
2034 {\@ifnextchar[{\@@author}{\@author}}}
2035 % \end{macrocode}
2036 % \DescribeMacro{\author}
2037 % \cs{author} increments the internal counter and saves the author's
2038 % name together with an superscript indicating the author's address.
2039 % The saved one from the call before is printed.
2040 % \begin{macrocode}
2041 \def\@author#1{%
2042 \stepcounter{c@totalauthors}%
2043 \g@addto@macro\authors{%
2044 \ifnum\value{c@totauthor}>1%
2045 \unskip,\space%
2046 \fi%
2047 \temp@author\unskip\temp@superscripts\unskip%
2048 \stepcounter{c@totauthor}%
2049 \stepcounter{c@author}%
2050 \renewcommand{\temp@author}{%
2051 \upshape#1\unskip}%
2052 \renewcommand{\temp@superscripts}{\empty}%
2053 \setboolean{extraaffil}{false}%
2054 }%
2055 }%
2056 % \end{macrocode}
2057 % When having two or more authors with the same address one can easily
2058 % use an optional argument to give the corresponding number.
2059 % \begin{macrocode}
2060 \def\@@author[#1]{%
2061 \stepcounter{c@totalauthors}%
2062 \g@addto@macro\authors{\renewcommand\temp@firstoptarg{#1}}%
2063 \@ifnextchar[{\@@@author}{\@@@@author}
2064 }%
2065 \def\@@@@author#1{%
2066 \stepcounter{c@totalauthors}%
2067 \g@addto@macro\authors{%
2068 \ifnum\value{c@totauthor}>1%
2069 \unskip,\space%
2070 \fi%
2071 \temp@author\unskip\temp@superscripts\unskip%
2072 \stepcounter{c@totauthor}%
2073 \let\firstoptarg\temp@firstoptarg
2074 \renewcommand{\temp@author}{%
2075 \ifthenelse{\equal{\firstoptarg}{1}}%
2076 {\upshape#1\unskip\textsuperscript{%
2077 \oneORnone}}%
2078 {\upshape#1\unskip\textsuperscript{%
2079 \firstoptarg}}\unskip%
2080 }%
2081 \renewcommand{\temp@superscripts}{\empty}%
2082 \setboolean{extraaffil}{true}
2083 }}%
2084 \def\@@@author[#1]#2{%
2085 \stepcounter{c@totalauthors}%
2086 \g@addto@macro\authors{%
2087 \ifnum\value{c@totauthor}>1%
2088 \unskip,\space%
2089 \fi%
2090 \temp@author\unskip\temp@superscripts\unskip%
2091 \stepcounter{c@totauthor}%
2092 \let\firstoptarg\temp@firstoptarg
2093 \renewcommand{\temp@author}{%
2094 \ifthenelse{\equal{\firstoptarg}{1}}%
2095 {\upshape#2\unskip\textsuperscript{%
2096 \oneORnone}}%
2097 {\ifthenelse{\equal{\firstoptarg}{}}%
2098 {\upshape#2\unskip}%
2099 {\upshape#2\unskip\textsuperscript{%
2100 \firstoptarg}}\unskip}%
2101 }%
2102 \renewcommand{\temp@superscripts}{\empty}%
2103 \ifthenelse{\equal{\firstoptarg}{}}%
2104 {\setboolean{extraaffil}{false}}%
2105 {\setboolean{extraaffil}{true}}%
2106 \g@addto@macro\emails{\normalsize%
2107 \emailsep#2 - #1%
2108 \def\emailsep{;\space}}
2109 }%
2110 }%
2111 % \end{macrocode}
2112 % Each article must have at least one corresponding author. He is
2113 % given with \cs{author*} which has a second mandatory argument
2114 % holding the author's email address
2115 % \begin{macrocode}
2116 \def\@corauth#1#2{%
2117 \setboolean{corauth}{true}%
2118 \stepcounter{c@totalauthors}%
2119 \g@addto@macro\authors{\normalsize%
2120 \ifnum\value{c@totauthor}>1%
2121 \unskip,\space%
2122 \fi%
2123 \temp@author\unskip%
2124 \temp@superscripts\unskip%
2125 \stepcounter{c@totauthor}%
2126 \stepcounter{c@author}%
2127 \renewcommand{\temp@author}{%
2128 \upshape#1\unskip\textsuperscript{%
2129 $\ast$}\unskip%
2130 }%
2131 \renewcommand{\temp@superscripts}{\empty}%
2132 \setboolean{extraaffil}{false}%
2133 }%
2134 \g@addto@macro\emails{\normalsize%
2135 \emailsep#1 - #2%
2136 \def\emailsep{;\space}}
2137 }%
2138 % \end{macrocode}
2139 % As with ``normal'' authors corresponding authors can have the same %
2140 % affiliation. So a command \cs{author*} with optional argument can be %
2141 % used.
2142 % \begin{macrocode}
2143 \def\@@corauth[#1]#2#3{
2144 \setboolean{corauth}{true}%
2145 \stepcounter{c@totalauthors}
2146 \g@addto@macro\authors{\normalsize%
2147 \ifnum\value{c@totauthor}>1%
2148 \unskip,\space%
2149 \fi%
2150 \temp@author\unskip\temp@superscripts\unskip%
2151 \stepcounter{c@totauthor}%
2152 \renewcommand{\temp@author}{%
2153 \ifthenelse{\equal{#1}{1}}%
2154 {\upshape#2\unskip\textsuperscript{%
2155 $\ast$\oneORnone}}%
2156 {\upshape#2\unskip\textsuperscript{%
2157 $\ast$#1}}%
2158 }%
2159 \renewcommand{\temp@superscripts}{\empty}%
2160 \setboolean{extraaffil}{true}%
2161 }%
2162 \g@addto@macro\emails{\normalsize%
2163 \emailsep#2 - #3%
2164 \def\emailsep{;\space}}%
2165 }%
2166 % \end{macrocode}
2167 % For the affiliations the same has to be done basically since the
2168 % separation between two entries differs as well. First some commands
2169 % are set up. We remember the affiliations first and add them in a
2170 % second step when knowing if there are other affiliations following.
2171 % \begin{macrocode}
2172 \def\affiliations{}
2173 \newcounter{c@affiliation}
2174 \newcounter{c@totaffiliation}
2175 \newcounter{c@superscripts}
2176 \newcommand\temp@affil{\par\vskip2ex Address:\space}
2177 \newcommand\affiliation[2][]{
2178 \stepcounter{c@totaffiliation}
2179 \ifthenelse{\value{c@totaffiliation}>1}%
2180 {\renewcommand{\oneORnone}{1}}{}%
2181 \g@addto@macro\authors{%
2182 \ifthenelse{\equal{\temp@superscripts}{\empty}\AND\NOT\boolean{extraaffil}}{%
2183 \stepcounter{c@superscripts}%
2184 \renewcommand{\temp@superscripts}{\unskip%
2185 %\ifthenelse{\value{c@totaffiliation}>1}{}{}%
2186 {\textsuperscript{\arabic{c@superscripts}}\unskip}%
2187 %{\textsuperscript{\oneORnone}\unskip}%
2188 }
2189 }{\g@addto@macro\temp@superscripts{%
2190 \protect\stepcounter{c@superscripts}%
2191 \unskip\textsuperscript{,\,\arabic{c@superscripts}}\unskip}%
2192 }%
2193 }%
2194 \g@addto@macro\affiliations{%
2195 \ifnum\value{c@affiliation}>1%
2196 \unskip;\space%
2197 \fi%
2198 \temp@affil%
2199 \stepcounter{c@affiliation}%
2200 \renewcommand{\temp@affil}%
2201 {\ifthenelse{\value{c@affiliation}=1}%
2202 {\ifthenelse{\value{c@totauthor}=1}%
2203 {#2}%
2204 {\textsuperscript{\oneORnone}#2}}%
2205 {\ifthenelse{\value{c@totauthor}=1}%
2206 {#2}%
2207 {\textsuperscript{\arabic{c@affiliation}}#2}}%
2208 }%
2209 }%
2210 }%
2211 % \end{macrocode}
2212 % The usual \cs{maketitle} command puts together all information and
2213 % prints the title page.
2214 % \changes{v1.4}{2018/01/15}{For suppinfo manuscripts we need a special title
2215 % page}
2216 % \begin{macrocode}
2217 \ifthenelse{\equal{\beilstein@manuscript}{\beilstein@manuscript@suppinfo}}%
2218 {\long\def\maketitle{%
2219 \thispagestyle{empty}
2220 \begin{center}
2221 \Large\bfseries
2222 {Supporting Information}\\
2223 \textmd{for}\\
2224 \@title\par\vspace{\baselineskip}%
2225 \end{center}
2226 \normalsize
2227 \authors%
2228 \ifthenelse{\value{c@totauthor}>1}%
2229 {\unskip\space and\space\temp@author\temp@superscripts}%
2230 {\ifthenelse{\boolean{corauth}}%
2231 {\temp@author}%
2232 {\temp@author\textsuperscript{$\ast$}}%
2233 }%
2234 \par\vskip2ex%
2235 \ifthenelse{\boolean{corauth}}%
2236 {}%
2237 {\ifthenelse{\value{c@totauthor}>1}%
2238 {\ClassError{beilstein}{At least one corresponding author has to be
2239 given.\MessageBreak Please use \string\author*\space for that}%
2240 {Please use at least one \string\author* command to set
2241 information %
2242 about the corresponding author.\MessageBreak Have a look at
2243 the %
2244 documentation for more details}%
2245 }%
2246 {\ifthenelse{\equal{\emails}{}}%
2247 {\ClassError{beilstein}{The author has been made corresponding
2248 author.\MessageBreak Therefore please provide an email address
2249 for the author}%
2250 {Use the second optional argument for that or use
2251 \string\author* instead}}{}%
2252 }%
2253 }%
2254 \ifthenelse{\value{c@totaffiliation}>1}%
2255 {\affiliations\unskip\space and\space\temp@affil}%
2256 {\affiliations\temp@affil}%
2257 \par\vskip3ex
2258 \normalsize Email:\space\emails\par\vskip2ex
2259 \textsuperscript{$\ast$}\space{\small Corresponding author}%
2260 \par\vfill%
2261 \begin{center}
2262 \Large\bfseries\@suppinfotitle%
2263 \end{center}
2264 \clearpage%
2265 }%
2266 }%
2267 {%
2268 \long\def\maketitle{%
2269 {\Large\bfseries\@title}\par\vskip2ex
2270 \normalsize
2271 \authors%
2272 \ifthenelse{\value{c@totauthor}>1}%
2273 {\unskip\space and\space\temp@author\temp@superscripts}%
2274 {\ifthenelse{\boolean{corauth}}%
2275 {\temp@author}%
2276 {\temp@author\textsuperscript{$\ast$}}%
2277 }%
2278 \par\vskip2ex%
2279 \ifthenelse{\boolean{corauth}}{}%
2280 {\ifthenelse{\value{c@totauthor}>1}%
2281 {\ClassError{beilstein}{At least one corresponding author has to
2282 be given.\MessageBreak Please use \string\author*\space for
2283 that}%
2284 {Please use at least one \string\author* command to set
2285 information %
2286 about the corresponding author.\MessageBreak Have a look
2287 at the %
2288 documentation for more details}%
2289 }%
2290 {\ifthenelse{\equal{\emails}{}}%
2291 {\ClassError{beilstein}{The author has been made
2292 corresponding author.\MessageBreak Therefore please provide
2293 an email address for the author}%
2294 {Use the second optional argument for that or use
2295 \string\author* instead}}{}%
2296 }%
2297 }%
2298 \ifthenelse{\value{c@totaffiliation}>1}%
2299 {\affiliations\unskip\space and\space\temp@affil}%
2300 {\affiliations\temp@affil}%
2301 \par\vskip3ex
2302 \normalsize Email:\space\emails\par\vskip2ex
2303 \textsuperscript{$\ast$}\space{\small Corresponding author}%
2304 \par\vskip3ex
2305 }%
2306 }%
2307 % \end{macrocode}
2308 % We suppinfo manuscripts we need an additional title information.
2309 % This can be given as optional argument to \cs{title} or as separate macro
2310 % \begin{macrocode}
2311 \newcommand{\@suppinfotitle}{}%
2312 \newcommand{\sititle}[1]{\renewcommand{\@suppinfotitle}{#1}}%
2313 \let\@RIGtitle\title
2314 \newcommand{\@@title}[2][]{\sititle{#1}\@RIGtitle{#2}}%
2315 \long\def\title{\@ifnextchar[{\@@title}{\@RIGtitle}}%
2316 % \end{macrocode}
2317 % For the \env{abstract} the three necessary items have their own command.
2318 % \begin{macrocode}
2319 %%%\beilstein@type@check
2320 \ifthenelse{\not\equal{\beilstein@manuscript}{\beilstein@manuscript@bookreport}%
2321 \and\not\equal{\beilstein@manuscript}{\beilstein@manuscript@suppinfo}}%
2322 {%
2323 \renewenvironment{abstract}{\textbf{\large\abstractname}\\[2ex]}{\\[2ex]}%
2324 \newcommand*{\background}{\textbf{Background:\ }}
2325 \newcommand*{\results}{\\\textbf{Results:\ }}
2326 \newcommand*{\conclusion}{\\\textbf{Conclusion:\ }}%
2327 }%
2328 {%
2329 \renewenvironment{abstract}{\ClassWarning{beilstein}{An abstract %
2330 should not be part of the chosen document type
2331 \beilstein@manuscript}}{}%
2332 \newcommand*{\background}{\relax}%
2333 \newcommand*{\results}{\relax}%
2334 \newcommand*{\conclusion}{\relax}%
2335 }%
2336 % \end{macrocode}
2337 % Last, but not least the keywords can be given with a command to get
2338 % the correct format.
2339 % \DescribeMacro{keywords}
2340 % \begin{macrocode}
2341 \ifthenelse{\not\equal{\beilstein@manuscript}{\beilstein@manuscript@commentary}%
2342 \and\not\equal{\beilstein@manuscript}{\beilstein@manuscript@bookreport}%
2343 \and\not\equal{\beilstein@manuscript}{\beilstein@manuscript@suppinfo}}%
2344 {\newcommand{\keywords}[1]{\textbf{\large Keywords}\\*#1}}%
2345 {\newcommand{\keywords}[1]{%
2346 \ClassWarning{beilstein}{Keywords should not be part of the
2347 chosen document type \beilstein@manuscript}}}
2348 % \end{macrocode}
2349 % Acknowledgments should be made inside the special environment.
2350 % \DescribeEnv{acknowledgements}
2351 % \begin{macrocode}
2352 \newenvironment{acknowledgements}{\par\textbf{\large Acknowledgements\\*}}{}
2353 % \end{macrocode}
2354 % \changes{v1.5}{2019/10/30}{New environment \env{funding}}
2355 % Funding is defined the same.
2356 % \DescribeEnv{funding}
2357 % \begin{macrocode}
2358 \newenvironment{funding}{\par\textbf{\large Funding\\*}}{}
2359 % \end{macrocode}
2360 % Supporting Information are a special section at the end the main
2361 % document, so they get an own environment as well
2362 % \DescribeEnv{suppinfo}
2363 % \begin{macrocode}
2364 \newenvironment{suppinfo}%
2365 {\FloatBarrier%
2366 \par\vskip2ex%
2367 \textbf{\large Supporting Information\\*}}{}
2368 % \end{macrocode}
2369 % \DescribeMacro{sifile}
2370 % Each supporting information file is added with \cs{sifile}. The
2371 % optional argument holds a detailed description.
2372 % \begin{macrocode}
2373 \newcounter{suppinfo}
2374 \newcommand{\sifile}[4][]{%
2375 \par
2376 \refstepcounter{suppinfo}%
2377 Supporting Information File \arabic{suppinfo}:\\*
2378 File Name: \url{#2}\\
2379 File Format: #3\\
2380 Title: #4\\
2381 \ifthenelse{\equal{#1}{}}{}{Description: #1}\vspace{1ex}}
2382 % \end{macrocode}
2383 % \DescribeMacro{\CN}
2384 % Compounds are typeset in boldface. The \cs{CN} command is a shortcut.
2385 % \begin{macrocode}
2386 \newcommand*{\CN}[1]{\textbf{#1}}
2387 % \end{macrocode}
2388 % Some standard \LaTeX commands can not be used in documents of the
2389 % Beilstein-Institut. They have to be deactivated in order to avoid
2390 % trouble in the final layout process.
2391 % Footnotes are only allowed in tables, so a special mechanism is
2392 % implemented to achieve this.
2393 % \begin{macrocode}
2394 \renewcommand\@makefntext[1]%
2395 {\noindent\makebox[.5em][l]{\@makefnmark\,}#1}
2396 \renewcommand{\footnoterule}{}
2397 \let\ORIGfootnote\footnote
2398 \newcommand{\errorfootnote}[2]{\ClassError{beilstein}{Footnotes are not
2399 allowed throughout the document}%
2400 {Avoid footnotes and give those information in the main text}}
2401 \let\footnote\errorfootnote
2402 \renewenvironment{table}%
2403 {\@nameuse{fst@table}%
2404 \@float@setevery{table}\@float{table}
2405 \testfnpara%
2406 \begin{minipage}{\linewidth}%
2407 \renewcommand\footnote[2][]{\protect\ORIGfootnote{##2}}}
2408 {\end{minipage}%
2409 \float@end%
2410 \gdef\footnote{\errorfootnote\@gobble}}
2411 \let\ORIGlongtable\longtable
2412 \let\ORIGendlongtable\endlongtable
2413 \newcommand{\longtablefootnote}{}
2414 \newcounter{myfootnote}
2415 \newboolean{firstfootnote}
2416 \renewcommand\longtable{%
2417 \renewcommand{\longtablefootnote}{}
2418 \setcounter{footnote}{0}
2419 \setcounter{myfootnote}{0}
2420 \setboolean{firstfootnote}{true}
2421 \renewcommand\thefootnote{\alph{footnote}}
2422 \renewcommand\themyfootnote{\alph{myfootnote}}
2423 \renewcommand\footnote[2][]{%
2424 \footnotemark%
2425 \g@addto@macro{\longtablefootnote}{%
2426 \stepcounter{myfootnote}
2427 \ifthenelse{\boolean{firstfootnote}}%
2428 {\setboolean{firstfootnote}{false}}%
2429 {\ifbeilstein@fnpara
2430 \quad
2431 \else
2432 \newline
2433 \fi
2434 }%
2435 \textsuperscript{\scriptsize\themyfootnote}%
2436 \footnotesize ##2\normalsize}}%
2437 \ORIGlongtable}
2438 \renewcommand\endlongtable{%
2439 \ORIGendlongtable%
2440 \longtablefootnote
2441 \gdef\footnote{\errorfootnote\@gobble}}
2442 \renewcommand{\thanks}[1]{\ClassError{beilstein}{\string\thanks\space %
2443 has been deactivated.\MessageBreak %
2444 Please use the commands of the beilstein class instead}%
2445 {The class defines commands to set the titlepage\MessageBreak %
2446 properly. Have a look at the documentation for more details}}
2447 \renewcommand{\and}{\ClassError{beilstein}{\string\and\space has been deactivated.\MessageBreak %
2448 Please use the commands of the beilstein class instead}{The class %
2449 defines commands to set the titlepage\MessageBreak properly. Have a %
2450 look at the documentation for more details}}
2451 % \end{macrocode}
2452 % To get a correct line numbering around floats, the environments have
2453 % to be modified
2454 % \begin{macrocode}
2455 \let\ORIGfigure\figure
2456 \let\ORIGscheme\scheme
2457 \let\ORIGtable\table
2458 \renewcommand{\figure}{\par\ORIGfigure\par}
2459 \renewcommand{\scheme}{\par\ORIGscheme\par}
2460 \renewcommand{\table}{\par\ORIGtable\par}
2461 % \end{macrocode}
2462 % For suppinfo manuscripts we have to change the output for some of the references
2463 % \begin{macrocode}
2464 \ifthenelse{\equal{\beilstein@manuscript}{\beilstein@manuscript@suppinfo}}%
2465 {%
2466 \renewcommand{\thepage}{S\arabic{page}}%
2467 \renewcommand{\thefigure}{S\arabic{figure}}%
2468 \renewcommand{\thetable}{S\arabic{table}}%
2469 \renewcommand{\thescheme}{S\arabic{scheme}}%
2470 \renewcommand{\theequation}{S\arabic{equation}}%
2471 }{}%
2472 % \end{macrocode}
2473 % Some parameters are set to give a nicer output and less
2474 % ``overfull boxes''
2475 % \begin{macrocode}
2476 \reversemarginpar
2477 \tolerance 1414
2478 \hbadness 1414
2479 \emergencystretch 1.5em
2480 \hfuzz 0.3pt
2481 \clubpenalty=5000
2482 \widowpenalty=10000
2483 \vfuzz \hfuzz
2484 % \end{macrocode}
2485 % \begin{macrocode}
2486 %</class>
2487 % \end{macrocode}
2488 %
2489 % \Finale
2490 %
2491 % \iffalse
2492 %<*bst>
2493 %% bjnano.bst is based on achemso.bst which is part of the achemso
2494 %% bundle. Some code cleaning and modifications were done and new
2495 %% entry types and fields introduced.
2496 ENTRY
2497 { address
2498 author
2499 booktitle
2500 chapter
2501 ctrl-use-title
2502 ctrl-etal-number
2503 doi
2504 edition
2505 editor
2506 howpublished
2507 institution
2508 journal
2509 key
2510 note
2511 number
2512 organization
2513 pages
2514 publisher
2515 school
2516 series
2517 title
2518 type
2519 url
2520 urldate
2521 venue
2522 version
2523 volume
2524 year
2525 }
2526 {}
2527 { label
2528 extra.label
2529 short.list
2530 }
2531
2532 INTEGERS { output.state before.all mid.sentence after.sentence }
2533 INTEGERS { after.block after.item author.or.editor }
2534 INTEGERS { separate.by.semicolon }
2535 INTEGERS { is.use.title etal.number }
2536
2537 FUNCTION {init.state.consts}
2538 { #0 'before.all :=
2539 #1 'mid.sentence :=
2540 #2 'after.sentence :=
2541 #3 'after.block :=
2542 #4 'after.item :=
2543 }
2544
2545 %% #0 turns off the display of the title for articles
2546 %% #1 enables
2547 FUNCTION {default.is.use.title} { #0 }
2548
2549 %% The number of names that force "et al." to be used
2550 FUNCTION {default.etal.number} { #100 }
2551
2552 FUNCTION {add.comma}
2553 { ", " * }
2554
2555 FUNCTION {add.semicolon}
2556 { "; " * }
2557
2558 FUNCTION {add.comma.or.semicolon}
2559 { #1 separate.by.semicolon =
2560 'add.semicolon
2561 'add.comma
2562 if$
2563 }
2564
2565 FUNCTION {add.colon}
2566 { ": " * }
2567
2568 STRINGS { s t }
2569
2570 FUNCTION {output.nonnull}
2571 { 's :=
2572 output.state mid.sentence =
2573 { add.comma write$ }
2574 { output.state after.block =
2575 { add.semicolon write$
2576 newline$
2577 "\newblock " write$
2578 }
2579 { output.state before.all =
2580 'write$
2581 { output.state after.item =
2582 { " " * write$ }
2583 { add.period$ " " * write$ }
2584 if$
2585 }
2586 if$
2587 }
2588 if$
2589 mid.sentence 'output.state :=
2590 }
2591 if$
2592 s
2593 }
2594
2595 FUNCTION {output}
2596 { duplicate$ empty$
2597 'pop$
2598 'output.nonnull
2599 if$
2600 }
2601
2602 FUNCTION {output.check}
2603 { 't :=
2604 duplicate$ empty$
2605 { pop$ "Empty " t * " in " * cite$ * warning$ }
2606 'output.nonnull
2607 if$
2608 }
2609
2610 FUNCTION {new.block}
2611 { output.state before.all =
2612 'skip$
2613 { after.block 'output.state := }
2614 if$
2615 }
2616
2617 FUNCTION {new.sentence}
2618 { output.state after.block =
2619 'skip$
2620 { output.state before.all =
2621 'skip$
2622 { after.sentence 'output.state := }
2623 if$
2624 }
2625 if$
2626 }
2627
2628 FUNCTION {fin.entry}
2629 { add.period$
2630 write$
2631 ""
2632 newline$
2633 note missing$
2634 'skip$
2635 {" " write$ note write$ }
2636 if$
2637 write$ newline$
2638 }
2639
2640 FUNCTION {not}
2641 { { #0 }
2642 { #1 }
2643 if$
2644 }
2645
2646 FUNCTION {and}
2647 { 'skip$
2648 { pop$ #0 }
2649 if$
2650 }
2651
2652 FUNCTION {or}
2653 { { pop$ #1 }
2654 'skip$
2655 if$
2656 }
2657
2658 FUNCTION {field.or.null}
2659 { duplicate$ empty$
2660 { pop$ "" }
2661 'skip$
2662 if$
2663 }
2664
2665 FUNCTION {emphasize}
2666 { duplicate$ empty$
2667 { pop$ "" }
2668 { "\emph{" swap$ * "}" * }
2669 if$
2670 }
2671
2672 FUNCTION {boldface}
2673 { duplicate$ empty$
2674 { pop$ "" }
2675 { "\textbf{" swap$ * "}" * }
2676 if$
2677 }
2678
2679 FUNCTION {paren}
2680 { duplicate$ empty$
2681 { pop$ "" }
2682 { "(" swap$ * ")" * }
2683 if$
2684 }
2685
2686 FUNCTION {bbl.and}
2687 { "and" }
2688
2689 FUNCTION {bbl.chapter}
2690 { "Chapter" }
2691
2692 FUNCTION {bbl.editor}
2693 { "Ed." }
2694
2695 FUNCTION {bbl.editors}
2696 { "Eds." }
2697
2698 FUNCTION {bbl.edition}
2699 { "ed." }
2700
2701 FUNCTION {bbl.etal}
2702 { "et~al." }
2703
2704 FUNCTION {bbl.in}
2705 { "In" }
2706
2707 FUNCTION {bbl.inpress}
2708 { "in press" }
2709
2710 FUNCTION {bbl.page}
2711 { "p" }
2712
2713 FUNCTION {bbl.pages}
2714 { "pp" }
2715
2716 FUNCTION {bbl.phd}
2717 { "Ph.\,D.\ Thesis" }
2718
2719 FUNCTION {bbl.submitted}
2720 { "submitted for publication" }
2721
2722 FUNCTION {bbl.volume}
2723 { "Vol." }
2724
2725 FUNCTION {bbl.first}
2726 { "1st" }
2727
2728 FUNCTION {bbl.second}
2729 { "2nd" }
2730
2731 FUNCTION {bbl.third}
2732 { "3rd" }
2733
2734 FUNCTION {bbl.fourth}
2735 { "4th" }
2736
2737 FUNCTION {bbl.fifth}
2738 { "5th" }
2739
2740 FUNCTION {bbl.st}
2741 { "st" }
2742
2743 FUNCTION {bbl.nd}
2744 { "nd" }
2745
2746 FUNCTION {bbl.rd}
2747 { "rd" }
2748
2749 FUNCTION {bbl.th}
2750 { "th" }
2751
2752 FUNCTION {eng.ord}
2753 { duplicate$ "1" swap$ *
2754 #-2 #1 substring$ "1" =
2755 { bbl.th * }
2756 { duplicate$ #-1 #1 substring$
2757 duplicate$ "1" =
2758 { pop$ bbl.st * }
2759 { duplicate$ "2" =
2760 { pop$ bbl.nd * }
2761 { "3" =
2762 { bbl.rd * }
2763 { bbl.th * }
2764 if$
2765 }
2766 if$
2767 }
2768 if$
2769 }
2770 if$
2771 }
2772
2773 FUNCTION {is.a.digit}
2774 { duplicate$ "" =
2775 {pop$ #0}
2776 {chr.to.int$ #48 - duplicate$
2777 #0 < swap$ #9 > or not}
2778 if$
2779 }
2780
2781 FUNCTION {is.a.number}
2782 {
2783 { duplicate$ #1 #1 substring$ is.a.digit }
2784 {#2 global.max$ substring$}
2785 while$
2786 "" =
2787 }
2788
2789 FUNCTION {extract.num}
2790 { duplicate$ 't :=
2791 "" 's :=
2792 { t empty$ not }
2793 { t #1 #1 substring$
2794 t #2 global.max$ substring$ 't :=
2795 duplicate$ is.a.number
2796 { s swap$ * 's := }
2797 { pop$ "" 't := }
2798 if$
2799 }
2800 while$
2801 s empty$
2802 'skip$
2803 { pop$ s }
2804 if$
2805 }
2806
2807 FUNCTION {chr.to.value}
2808 { chr.to.int$ #48 -
2809 duplicate$ duplicate$
2810 #0 < swap$ #9 > or
2811 { #48 + int.to.chr$
2812 " is not a number..." *
2813 warning$
2814 pop$ #0
2815 }
2816 {}
2817 if$
2818 }
2819
2820 %% Some tricks from "Tame the BeaST" to convert a string
2821 %% to a number
2822 INTEGERS { a b }
2823
2824 FUNCTION {mult}
2825 { 'a :=
2826 'b :=
2827 b #0 <
2828 {#-1 #0 b - 'b :=}
2829 {#1}
2830 if$
2831 #0
2832 {b #0 >}
2833 { a +
2834 b #1 - 'b :=
2835 }
2836 while$
2837 swap$
2838 'skip$
2839 {#0 swap$ -}
2840 if$
2841 }
2842
2843 FUNCTION {str.to.int.aux}
2844 { {duplicate$ empty$ not}
2845 { swap$ #10 mult 'a :=
2846 duplicate$ #1 #1 substring$
2847 chr.to.value a +
2848 swap$
2849 #2 global.max$ substring$
2850 }
2851 while$
2852 pop$
2853 }
2854
2855 FUNCTION {str.to.int}
2856 { duplicate$ #1 #1 substring$ "-" =
2857 {#1 swap$ #2 global.max$ substring$}
2858 {#0 swap$}
2859 if$
2860 #0 swap$ str.to.int.aux
2861 swap$
2862 {#0 swap$ -}
2863 {}
2864 if$
2865 }
2866
2867 FUNCTION {bibinfo.check}
2868 { swap$
2869 duplicate$ missing$
2870 { pop$ pop$
2871 ""
2872 }
2873 { duplicate$ empty$
2874 {
2875 swap$ pop$
2876 }
2877 { swap$
2878 pop$
2879 }
2880 if$
2881 }
2882 if$
2883 }
2884
2885 FUNCTION {convert.edition}
2886 { extract.num "l" change.case$ 's :=
2887 s "first" = s "1" = or
2888 { bbl.first 't := }
2889 { s "second" = s "2" = or
2890 { bbl.second 't := }
2891 { s "third" = s "3" = or
2892 { bbl.third 't := }
2893 { s "fourth" = s "4" = or
2894 { bbl.fourth 't := }
2895 { s "fifth" = s "5" = or
2896 { bbl.fifth 't := }
2897 { s #1 #1 substring$ is.a.number
2898 { s eng.ord 't := }
2899 { edition 't := }
2900 if$
2901 }
2902 if$
2903 }
2904 if$
2905 }
2906 if$
2907 }
2908 if$
2909 }
2910 if$
2911 t
2912 }
2913
2914 FUNCTION {tie.or.space.connect}
2915 { duplicate$ text.length$ #3 <
2916 { "~" }
2917 { " " }
2918 if$
2919 swap$ * *
2920 }
2921
2922 FUNCTION {space.connect}
2923 { " " swap$ * * }
2924
2925 INTEGERS { nameptr namesleft numnames }
2926
2927 FUNCTION {format.names}
2928 { 's :=
2929 #1 'nameptr :=
2930 s num.names$ 'numnames :=
2931 numnames 'namesleft :=
2932 numnames etal.number > etal.number #0 > and
2933 { s #1 "{vv~}{ll,}{~f.}{,~jj}" format.name$ 't :=
2934 t bbl.etal space.connect
2935 }
2936 {
2937 { namesleft #0 > }
2938 { s nameptr "{vv~}{ll,}{~f.}{,~jj}" format.name$ 't :=
2939 nameptr #1 >
2940 { namesleft #1 >
2941 { add.comma.or.semicolon t * }
2942 { numnames #2 >
2943 { "" * }
2944 'skip$
2945 if$
2946 t "others," =
2947 { bbl.etal space.connect }
2948 { add.comma.or.semicolon t * }
2949 if$
2950 }
2951 if$
2952 }
2953 't
2954 if$
2955 nameptr #1 + 'nameptr :=
2956 namesleft #1 - 'namesleft :=
2957 }
2958 while$
2959 }
2960 if$
2961 }
2962
2963 FUNCTION {format.authors}
2964 { author empty$
2965 { "" }
2966 { #1 'author.or.editor :=
2967 #1 'separate.by.semicolon :=
2968 author format.names
2969 }
2970 if$
2971 }
2972
2973 FUNCTION {format.editors}
2974 { editor empty$
2975 { "" }
2976 { #2 'author.or.editor :=
2977 #0 'separate.by.semicolon :=
2978 editor format.names
2979 add.comma
2980 editor num.names$ #1 >
2981 { bbl.editors }
2982 { bbl.editor }
2983 if$
2984 *
2985 }
2986 if$
2987 }
2988
2989 FUNCTION {n.separate.multi}
2990 { 't :=
2991 ""
2992 #0 'numnames :=
2993 t text.length$ #4 > t is.a.number and
2994 {
2995 { t empty$ not }
2996 { t #-1 #1 substring$ is.a.number
2997 { numnames #1 + 'numnames := }
2998 { #0 'numnames := }
2999 if$
3000 t #-1 #1 substring$ swap$ *
3001 t #-2 global.max$ substring$ 't :=
3002 numnames #4 =
3003 { duplicate$ #1 #1 substring$ swap$
3004 #2 global.max$ substring$
3005 "," swap$ * *
3006 #1 'numnames :=
3007 }
3008 'skip$
3009 if$
3010 }
3011 while$
3012 }
3013 { t swap$ * }
3014 if$
3015 }
3016
3017 FUNCTION {format.bvolume}
3018 { volume empty$
3019 { "" }
3020 { bbl.volume volume tie.or.space.connect }
3021 if$
3022 }
3023
3024 FUNCTION {format.title.noemph}
3025 { 't :=
3026 t empty$
3027 { "" }
3028 { t }
3029 if$
3030 }
3031
3032 FUNCTION {format.title}
3033 { 't :=
3034 t empty$
3035 { "" }
3036 { t emphasize }
3037 if$
3038 }
3039
3040 %% The add.title function only does anything if the appropriate
3041 %% flag is set.
3042 FUNCTION {add.title}
3043 { is.use.title
3044 { title format.title.noemph "title" output.check
3045 new.sentence }
3046 'skip$
3047 if$
3048 }
3049
3050 FUNCTION {format.number.series}
3051 { volume empty$
3052 { number empty$
3053 { series field.or.null }
3054 { series empty$
3055 { "There is a number but no series in " cite$ * warning$ }
3056 { series number space.connect }
3057 if$
3058 }
3059 if$
3060 }
3061 { "" }
3062 if$
3063 }
3064
3065 FUNCTION {format.url}
3066 { url empty$
3067 { "There is no url in " cite$ * warning$ }
3068 { new.sentence "\url{" url * "}" * }
3069 if$
3070 }
3071
3072 FUNCTION {format.urldate}
3073 { urldate empty$
3074 { "There is no urldate in " cite$ * warning$ }
3075 { "accessed " urldate * paren space.connect }
3076 if$
3077 }
3078
3079 FUNCTION {format.full.names}
3080 {'s :=
3081 #1 'nameptr :=
3082 s num.names$ 'numnames :=
3083 numnames 'namesleft :=
3084 { namesleft #0 > }
3085 { s nameptr
3086 "{vv~}{ll}" format.name$ 't :=
3087 nameptr #1 >
3088 {
3089 namesleft #1 >
3090 { ", " * t * }
3091 {
3092 numnames #2 >
3093 { "," * }
3094 'skip$
3095 if$
3096 t "others" =
3097 { bbl.etal * }
3098 { bbl.and space.connect t space.connect }
3099 if$
3100 }
3101 if$
3102 }
3103 't
3104 if$
3105 nameptr #1 + 'nameptr :=
3106 namesleft #1 - 'namesleft :=
3107 }
3108 while$
3109 }
3110
3111 FUNCTION {author.editor.full}
3112 { author empty$
3113 { editor empty$
3114 { "" }
3115 { editor format.full.names }
3116 if$
3117 }
3118 { author format.full.names }
3119 if$
3120 }
3121
3122 FUNCTION {author.full}
3123 { author empty$
3124 { "" }
3125 { author format.full.names }
3126 if$
3127 }
3128
3129 FUNCTION {editor.full}
3130 { editor empty$
3131 { "" }
3132 { editor format.full.names }
3133 if$
3134 }
3135
3136 FUNCTION {make.full.names}
3137 { type$ "book" =
3138 type$ "inbook" =
3139 or
3140 'author.editor.full
3141 { type$ "proceedings" =
3142 'editor.full
3143 'author.full
3144 if$
3145 }
3146 if$
3147 }
3148
3149 FUNCTION {output.bibitem}
3150 { newline$
3151 "\setboolean{nobreakdashused}{false}" write$
3152 "\bibitem[" write$
3153 label write$
3154 ")" make.full.names duplicate$ short.list =
3155 { pop$ }
3156 { * }
3157 if$
3158 "]{" * write$
3159 cite$ write$
3160 "}" write$
3161 newline$
3162 ""
3163 before.all 'output.state :=
3164 }
3165
3166 FUNCTION {n.dashify}
3167 { 't :=
3168 ""
3169 { t empty$ not }
3170 { t #1 #1 substring$ "-" =
3171 { t #1 #2 substring$ "--" = not
3172 { "\mynobreakdash " *
3173 t #2 global.max$ substring$ 't :=
3174 }
3175 { { t #1 #1 substring$ "-" = }
3176 { "\mynobreakdash " *
3177 t #2 global.max$ substring$ 't :=
3178 }
3179 while$
3180 }
3181 if$
3182 }
3183 { t #1 #1 substring$ *
3184 t #2 global.max$ substring$ 't :=
3185 }
3186 if$
3187 }
3188 while$
3189 }
3190
3191 FUNCTION {format.date}
3192 { year empty$
3193 { "" }
3194 { year boldface }
3195 if$
3196 }
3197
3198 FUNCTION {format.bdate}
3199 { year empty$
3200 { "There's no year in " cite$ * warning$ }
3201 'year
3202 if$
3203 }
3204
3205 FUNCTION {either.or.check}
3206 { empty$
3207 'pop$
3208 { "Can't use both " swap$ * " fields in " * cite$ * warning$ }
3209 if$
3210 }
3211
3212 FUNCTION {format.edition}
3213 { edition duplicate$ empty$
3214 'skip$
3215 { convert.edition
3216 bbl.edition bibinfo.check
3217 " " * bbl.edition *
3218 }
3219 if$
3220 }
3221
3222 INTEGERS { multiresult }
3223
3224 FUNCTION {multi.page.check}
3225 { 't :=
3226 #0 'multiresult :=
3227 { multiresult not
3228 t empty$ not
3229 and
3230 }
3231 { t #1 #1 substring$
3232 duplicate$ "-" =
3233 swap$ duplicate$ "," =
3234 swap$ "+" =
3235 or or
3236 { #1 'multiresult := }
3237 { t #2 global.max$ substring$ 't := }
3238 if$
3239 }
3240 while$
3241 multiresult
3242 }
3243
3244 FUNCTION {format.pages}
3245 { pages empty$
3246 { "" }
3247 { pages multi.page.check
3248 { bbl.pages pages n.dashify tie.or.space.connect }
3249 { bbl.page pages tie.or.space.connect }
3250 if$
3251 }
3252 if$
3253 }
3254
3255 FUNCTION {format.pages.required}
3256 { pages empty$
3257 { ""
3258 "There are no page numbers for " cite$ * warning$
3259 output
3260 }
3261 { pages multi.page.check
3262 { bbl.pages pages n.dashify tie.or.space.connect }
3263 { bbl.page pages tie.or.space.connect }
3264 if$
3265 }
3266 if$
3267 }
3268
3269 FUNCTION {format.pages.nopp}
3270 { pages empty$
3271 { ""
3272 "There are no page numbers for " cite$ * warning$
3273 output
3274 }
3275 { pages multi.page.check
3276 { pages n.dashify space.connect }
3277 { pages space.connect }
3278 if$
3279 }
3280 if$
3281 }
3282
3283 FUNCTION {format.pages.patent}
3284 { pages empty$
3285 { "There is no patent number for " cite$ * warning$ }
3286 { pages multi.page.check
3287 { pages n.dashify }
3288 { pages n.separate.multi }
3289 if$
3290 }
3291 if$
3292 }
3293
3294 FUNCTION {format.vol.pages}
3295 { volume emphasize field.or.null
3296 number empty$
3297 'skip$
3298 { number paren tie.or.space.connect }
3299 if$
3300 duplicate$ empty$
3301 { pop$ format.pages.required }
3302 { add.comma pages n.dashify * }
3303 if$
3304 }
3305
3306 FUNCTION {format.chapter.pages}
3307 { chapter empty$
3308 'format.pages
3309 { type empty$
3310 { bbl.chapter }
3311 { type "l" change.case$ }
3312 if$
3313 chapter tie.or.space.connect
3314 pages empty$
3315 'skip$
3316 { add.comma format.pages * }
3317 if$
3318 }
3319 if$
3320 }
3321
3322 FUNCTION {format.title.in}
3323 { 's :=
3324 s empty$
3325 { "" }
3326 { editor empty$
3327 { bbl.in s format.title space.connect }
3328 { bbl.in s format.title space.connect
3329 add.semicolon format.editors *
3330 }
3331 if$
3332 }
3333 if$
3334 }
3335
3336 FUNCTION {format.proc.title.in}
3337 { 's :=
3338 s empty$
3339 { "" }
3340 { editor empty$
3341 { bbl.in s format.title space.connect }
3342 { venue empty$
3343 { bbl.in s format.title space.connect
3344 add.semicolon format.editors * }
3345 { bbl.in s format.title space.connect
3346 add.comma venue *
3347 add.semicolon format.editors * }
3348 if$
3349 }
3350 if$
3351 }
3352 if$
3353 }
3354
3355 FUNCTION {format.pub.address}
3356 { publisher empty$
3357 { "" }
3358 { address empty$
3359 { publisher }
3360 { publisher add.colon address *}
3361 if$
3362 }
3363 if$
3364 }
3365
3366 FUNCTION {format.school.address}
3367 { school empty$
3368 { "" }
3369 { address empty$
3370 { school }
3371 { school add.colon address *}
3372 if$
3373 }
3374 if$
3375 }
3376
3377 FUNCTION {format.organization.address}
3378 { organization empty$
3379 { "" }
3380 { address empty$
3381 { organization }
3382 { organization add.colon address *}
3383 if$
3384 }
3385 if$
3386 }
3387
3388 FUNCTION {format.venue}
3389 { venue empty$
3390 { "" }
3391 { venue add.semicolon}
3392 if$
3393 }
3394
3395 FUNCTION {empty.misc.check}
3396 { note empty$
3397 { "note field is empty in " cite$ * warning$ }
3398 'skip$
3399 if$
3400 }
3401
3402 FUNCTION {empty.doi.note}
3403 { doi empty$ note empty$ and
3404 { "Need either a note or DOI for " cite$ * warning$ }
3405 'skip$
3406 if$
3407 }
3408
3409 FUNCTION {format.thesis.type}
3410 { type empty$
3411 'skip$
3412 { pop$
3413 type
3414 }
3415 if$
3416 }
3417
3418 FUNCTION {format.doi}
3419 { doi empty$
3420 { " "} % 'skip$
3421 { new.sentence "\url{doi:" doi tie.or.space.connect "}" * }
3422 if$
3423 }
3424
3425 FUNCTION {article}
3426 { output.bibitem
3427 author empty$
3428 { format.editors "editor" output.check
3429 after.item 'output.state :=
3430 title empty$
3431 'skip$
3432 { title format.title.noemph output
3433 after.sentence 'output.state :=
3434 }
3435 if$
3436 journal emphasize "journal" output.check
3437 }
3438 { format.authors "author" output.check
3439 after.item 'output.state :=
3440 add.title
3441 journal emphasize "journal" output.check
3442 }
3443 if$
3444 after.item 'output.state :=
3445 format.date "year" output.check
3446 volume empty$
3447 { number empty$
3448 { "There is neither volume nor number given for " cite$ * warning$ }
3449 { "No. " number * output}
3450 if$
3451 ""
3452 format.pages.nopp output
3453 }
3454 { format.vol.pages output }
3455 if$
3456 format.doi output
3457 fin.entry
3458 }
3459
3460 FUNCTION {book}
3461 { output.bibitem
3462 author empty$
3463 { booktitle empty$
3464 { title format.title "title" output.check }
3465 { booktitle format.title "booktitle" output.check }
3466 if$
3467 format.edition output
3468 new.block
3469 editor empty$
3470 { "Need either an author or editor for " cite$ * warning$ }
3471 { "" format.editors * "editor" output.check }
3472 if$
3473 }
3474 { format.authors output
3475 after.item 'output.state :=
3476 "author and editor" editor either.or.check
3477 booktitle empty$
3478 { title format.title "title" output.check }
3479 { booktitle format.title "booktitle" output.check }
3480 if$
3481 format.edition output
3482 }
3483 if$
3484 new.block
3485 format.number.series output
3486 new.block
3487 format.pub.address "publisher" output.check
3488 format.bdate "year" output.check
3489 new.block
3490 format.bvolume output
3491 pages empty$
3492 'skip$
3493 { format.pages output }
3494 if$
3495 format.doi output
3496 fin.entry
3497 }
3498
3499 FUNCTION {booklet}
3500 { "Entrytype booklet of " cite$ " is not supported." * * warning$ }
3501
3502 FUNCTION {inbook}
3503 { output.bibitem
3504 author empty$
3505 { booktitle format.title "booktitle" output.check
3506 format.edition output
3507 new.block
3508 editor empty$
3509 { "Need at least an author or an editor for " cite$ * warning$ }
3510 { "" format.editors * "editor" output.check }
3511 if$
3512 }
3513 { format.authors output
3514 after.item 'output.state :=
3515 title empty$
3516 'skip$
3517 { title format.title.noemph output }
3518 if$
3519 after.sentence 'output.state :=
3520 booktitle format.title.in "booktitle" output.check
3521 format.edition output
3522 }
3523 if$
3524 new.block
3525 format.number.series output
3526 new.block
3527 format.pub.address "publisher" output.check
3528 format.bdate "year" output.check
3529 new.block
3530 format.bvolume output
3531 format.chapter.pages "chapter and pages" output.check
3532 fin.entry
3533 }
3534
3535 FUNCTION {incollection}
3536 { output.bibitem
3537 author empty$
3538 { booktitle format.title "booktitle" output.check
3539 format.edition output
3540 new.block
3541 editor empty$
3542 { "Need at least an author or an editor for " cite$ * warning$ }
3543 { "" format.editors * "editor" output.check }
3544 if$
3545 }
3546 { format.authors output
3547 after.item 'output.state :=
3548 title empty$
3549 'skip$
3550 { title format.title.noemph output }
3551 if$
3552 after.sentence 'output.state :=
3553 booktitle format.title.in "booktitle" output.check
3554 format.edition output
3555 }
3556 if$
3557 new.block
3558 format.number.series output
3559 new.block
3560 format.pub.address "publisher" output.check
3561 format.bdate "year" output.check
3562 new.block
3563 format.bvolume output
3564 format.chapter.pages "chapter and pages" output.check
3565 format.doi output
3566 fin.entry
3567 }
3568
3569 FUNCTION {inpress}
3570 { output.bibitem
3571 format.authors "author" output.check
3572 after.item 'output.state :=
3573 journal emphasize "journal" output.check
3574 doi empty$
3575 { bbl.inpress output }
3576 { after.item 'output.state :=
3577 format.date output
3578 "doi:" doi tie.or.space.connect output
3579 }
3580 if$
3581 format.doi output
3582 fin.entry
3583 }
3584
3585 FUNCTION {inproceedings}
3586 { output.bibitem
3587 format.authors "author" output.check
3588 after.item 'output.state :=
3589 title empty$
3590 'skip$
3591 { title format.title.noemph output
3592 after.sentence 'output.state :=
3593 }
3594 if$
3595 booktitle format.proc.title.in "booktitle" output.check
3596 new.block
3597 format.pub.address "publisher" output.check
3598 format.bdate "year" output.check
3599 pages empty$
3600 'skip$
3601 { new.block
3602 format.pages output }
3603 if$
3604 format.doi output
3605 fin.entry
3606 }
3607
3608 FUNCTION {manual}
3609 { "Entrytype manual of " cite$ " is not supported." * * warning$ }
3610
3611 FUNCTION {mastersthesis}
3612 { "Entrytype masterthesis of " cite$ " is not supported." * * warning$ }
3613
3614 FUNCTION {misc}
3615 { output.bibitem
3616 fin.entry
3617 }
3618
3619 FUNCTION {online}
3620 { output.bibitem
3621 format.authors output
3622 after.item 'output.state :=
3623 title empty$
3624 'skip$
3625 { title output }
3626 if$
3627 format.url output
3628 after.item 'output.state :=
3629 format.urldate output
3630 format.doi output
3631 fin.entry
3632 }
3633
3634 FUNCTION {patent}
3635 { output.bibitem
3636 format.authors "author" output.check
3637 after.item 'output.state :=
3638 title empty$
3639 'skip$
3640 { title format.title.noemph output
3641 after.sentence 'output.state :=
3642 }
3643 if$
3644 journal "journal" output.check
3645 after.item 'output.state :=
3646 format.pages.patent "pages" output.check
3647 format.bdate "year" output.check
3648 format.doi output
3649 fin.entry
3650 }
3651
3652 FUNCTION {phdthesis}
3653 { output.bibitem
3654 format.authors "author" output.check
3655 after.item 'output.state :=
3656 title empty$
3657 'skip$
3658 { title format.title.noemph output
3659 after.sentence 'output.state :=
3660 }
3661 if$
3662 bbl.phd format.thesis.type output
3663 format.school.address "school" output.check
3664 format.bdate "year" output.check
3665 format.doi output
3666 fin.entry
3667 }
3668
3669 FUNCTION {proceedings}
3670 { output.bibitem
3671 format.editors "editor" output.check
3672 after.item 'output.state :=
3673 title format.title "title" output.check
3674 venue empty$
3675 { }
3676 { venue output
3677 add.semicolon write$ }
3678 if$
3679 format.pub.address "publisher" output.check
3680 format.bdate "year" output.check
3681 pages empty$
3682 'skip$
3683 { new.block
3684 format.pages output }
3685 if$
3686 format.doi output
3687 fin.entry
3688 }
3689
3690 FUNCTION {software}
3691 { output.bibitem
3692 title format.title "title" output.check
3693 version empty$
3694 'skip$
3695 { version output }
3696 if$
3697 after.block 'output.state :=
3698 format.pub.address "publisher" output.check
3699 format.bdate "year" output.check
3700 format.doi output
3701 fin.entry
3702 }
3703
3704 FUNCTION {techreport}
3705 { "Entrytype techreport of " cite$ " is not supported." * * warning$ }
3706
3707 FUNCTION {unpublished}
3708 { "Entrytype unpublished of " cite$ " is not supported." * * warning$ }
3709
3710 FUNCTION {www}
3711 { output.bibitem
3712 format.authors output
3713 after.item 'output.state :=
3714 title empty$
3715 'skip$
3716 { title output }
3717 if$
3718 format.url output
3719 after.item 'output.state :=
3720 format.urldate output
3721 format.doi output
3722 fin.entry
3723 }
3724
3725 %% Convert the strings "yes" or "no" to #1 or #0 respectively
3726 FUNCTION {yes.no.to.int}
3727 { "l" change.case$ duplicate$
3728 "yes" =
3729 { pop$ #1 }
3730 { duplicate$ "no" =
3731 { pop$ #0 }
3732 { "unknown Boolean " quote$ * swap$ * quote$ *
3733 " in " * cite$ * warning$
3734 #0
3735 }
3736 if$
3737 }
3738 if$
3739 }
3740
3741 %% Using the same mechanism as in IEEEtrans, control of
3742 %% output can be achieved using a special entry type.
3743 FUNCTION {Control}
3744 { ctrl-use-title
3745 empty$
3746 { }
3747 { ctrl-use-title
3748 yes.no.to.int
3749 'is.use.title := }
3750 if$
3751 ctrl-etal-number
3752 empty$
3753 { }
3754 { ctrl-etal-number
3755 str.to.int
3756 'etal.number := }
3757 if$
3758 }
3759
3760 FUNCTION {conference} {inproceedings}
3761
3762 FUNCTION {other} {patent}
3763
3764 FUNCTION {default.type} {misc}
3765
3766 READ
3767
3768 FUNCTION {initialize.controls}
3769 { default.is.use.title 'is.use.title :=
3770 default.etal.number 'etal.number :=
3771 }
3772
3773 EXECUTE {initialize.controls}
3774
3775 INTEGERS { len }
3776
3777 FUNCTION {chop.word}
3778 { 's :=
3779 'len :=
3780 s #1 len substring$ =
3781 { s len #1 + global.max$ substring$ }
3782 's
3783 if$
3784 }
3785
3786 FUNCTION {format.lab.names}
3787 { 's :=
3788 s #1 "{vv~}{ll}" format.name$
3789 s num.names$ duplicate$
3790 #2 >
3791 { pop$ bbl.etal space.connect }
3792 { #2 <
3793 'skip$
3794 { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" =
3795 { bbl.etal space.connect }
3796 { bbl.and space.connect s #2 "{vv~}{ll}" format.name$ space.connect
3797 }
3798 if$
3799 }
3800 if$
3801 }
3802 if$
3803 }
3804
3805 FUNCTION {author.key.label}
3806 { author empty$
3807 { key empty$
3808 { cite$ #1 #3 substring$ }
3809 'key
3810 if$
3811 }
3812 { author format.lab.names }
3813 if$
3814 }
3815
3816 FUNCTION {author.editor.key.label}
3817 { author empty$
3818 { editor empty$
3819 { key empty$
3820 { cite$ #1 #3 substring$ }
3821 'key
3822 if$
3823 }
3824 { editor format.lab.names }
3825 if$
3826 }
3827 { author format.lab.names }
3828 if$
3829 }
3830
3831 FUNCTION {author.key.organization.label}
3832 { author empty$
3833 { key empty$
3834 { organization empty$
3835 { cite$ #1 #3 substring$ }
3836 { "The " #4 organization chop.word #3 text.prefix$ }
3837 if$
3838 }
3839 'key
3840 if$
3841 }
3842 { author format.lab.names }
3843 if$
3844 }
3845
3846 FUNCTION {editor.key.organization.label}
3847 { editor empty$
3848 { key empty$
3849 { organization empty$
3850 { cite$ #1 #3 substring$ }
3851 { "The " #4 organization chop.word #3 text.prefix$ }
3852 if$
3853 }
3854 'key
3855 if$
3856 }
3857 { editor format.lab.names }
3858 if$
3859 }
3860
3861 FUNCTION {calc.short.authors}
3862 { type$ "book" =
3863 type$ "inbook" =
3864 or
3865 'author.editor.key.label
3866 { type$ "proceedings" =
3867 'editor.key.organization.label
3868 { type$ "manual" =
3869 'author.key.organization.label
3870 'author.key.label
3871 if$
3872 }
3873 if$
3874 }
3875 if$
3876 'short.list :=
3877 }
3878
3879 FUNCTION {calc.label}
3880 { calc.short.authors
3881 short.list
3882 "("
3883 *
3884 year duplicate$ empty$
3885 short.list key field.or.null = or
3886 { pop$ "" }
3887 'skip$
3888 if$
3889 *
3890 'label :=
3891 }
3892
3893 ITERATE {calc.label}
3894
3895 STRINGS { longest.label last.label next.extra }
3896
3897 INTEGERS { longest.label.width last.extra.num number.label }
3898
3899 FUNCTION {initialize.longest.label}
3900 { "" 'longest.label :=
3901 #0 int.to.chr$ 'last.label :=
3902 "" 'next.extra :=
3903 #0 'longest.label.width :=
3904 #0 'last.extra.num :=
3905 #0 'number.label :=
3906 }
3907
3908 FUNCTION {forward.pass}
3909 { last.label label =
3910 { last.extra.num #1 + 'last.extra.num :=
3911 last.extra.num int.to.chr$ 'extra.label :=
3912 }
3913 { "a" chr.to.int$ 'last.extra.num :=
3914 "" 'extra.label :=
3915 label 'last.label :=
3916 }
3917 if$
3918 number.label #1 + 'number.label :=
3919 }
3920
3921 EXECUTE {initialize.longest.label}
3922
3923 ITERATE {forward.pass}
3924
3925 FUNCTION {begin.bib}
3926 { preamble$ empty$
3927 'skip$
3928 { preamble$ write$ newline$ }
3929 if$
3930 "\begin{thebibliography}{" number.label int.to.str$ * "}" *
3931 write$ newline$
3932 }
3933
3934 EXECUTE {begin.bib}
3935
3936 EXECUTE {init.state.consts}
3937
3938 ITERATE {call.type$}
3939
3940 FUNCTION {end.bib}
3941 { newline$
3942 "\end{thebibliography}" write$ newline$
3943 }
3944
3945 EXECUTE {end.bib}
3946 %</bst>
3947 %<*bib>
3948 @COMMENT{This BibTeX database consists of entries of all types of
3949 documents listed in the ``Instructions for Authors'', pp 5--6}
3950 @COMMENT{The references used in ``beilstein-template.tex'' are listed as well at the end of the file.}
3951
3952 @COMMENT{Article within a journal}
3953 @ARTICLE{Constantino2001,
3954 author = {Constantino, M. G. and V. Lacerda, Jr. and Aragao, V.},
3955 year ={2001},
3956 journal = {Molecules},
3957 volume = 6,
3958 pages = {770--776}
3959 }
3960
3961 @COMMENT{Article within a journal with non-continuos (i.e., issue-based) pagination}
3962 @ARTICLE{Groeger2000,
3963 author = {Gr\"{o}ger, H. and Sans, J. and G\"{u}thner, T.},
3964 journal = {Chim. Oggi},
3965 year = 2000,
3966 volume = 18,
3967 number = {3/4},
3968 pages = {12--16}
3969 }
3970
3971 @COMMENT{If no volume, but only a number is given, ``No.'' is added automatically}
3972 @ARTICLE{Wills1983,
3973 author = {Wills, M. R. and Savory, J.},
3974 journal = {Lancet},
3975 year = 1983,
3976 number = 2,
3977 pages = {29}
3978 }
3979
3980 @COMMENT{Article within a journal with article number}
3981 @COMMENT{The ``pages'' field is used for the article number.}
3982 @ARTICLE{Flamme2005,
3983 author = {Flamme, E. M. and Roush, W. R.},
3984 journal = {Beilstein J. Org. Chem.},
3985 year = 2005,
3986 volume = 1,
3987 pages = {No. 7}
3988 }
3989
3990 @COMMENT{Article within a journal supplement}
3991 @ARTICLE{Orengo1999,
3992 author = {Orengo, C. A. and Bray, J. E. and Hubbard, T. and LoConte, L. and Sillitoe, I.},
3993 journal = {Proteins},
3994 year = {1999},
3995 volume = 37,
3996 number = {Suppl. S3},
3997 pages = {149--170}
3998 }
3999
4000 @COMMENT{Article within a journal with two separate editions or with translations/article within a journal with aditional Chemical Abstracts reference}
4001 @ARTICLE{Grubbs2006,
4002 author = {Grubbs, R. H.},
4003 journal = {Angew. Chem.},
4004 year = 2006,
4005 volume = 118,
4006 pages = {3845--3850},
4007 note = {{\emph{Angew. Chem., Int. Ed.} \textbf{2006,} \emph{45,} 3760--3765.}}
4008 }
4009
4010 @COMMENT{In press article}
4011 @INPRESS{Schwartzman,
4012 author = {Schwartzman, M. and S. J. Wind},
4013 journal ={Nano Lett.}
4014 }
4015
4016 @COMMENT{Patent}
4017 @COMMENT{``pages'' holds the patent number}
4018 @PATENT{Schimmel,
4019 author = {Schimmel, T. and Xie, F. and Obermair, C.},
4020 title = {Gate controlled atomic switch},
4021 pages = {US20100128342A1},
4022 year = {Aug 6, 2009}
4023 }
4024
4025 @COMMENT{Article within conference proceedings}
4026 @INPROCEEDINGS{Jones1996,
4027 author = {Jones, X.},
4028 title ={Zeolites and synthetic mechanisms},
4029 year = {1996},
4030 pages = {16--27},
4031 booktitle = {Proceedings of the First National Conference on Porous Sieves},
4032 publisher = {Butterworth-Heinemann},
4033 address = {Stoneham, MA},
4034 venue = {Baltimore, MD, June 27--30, 1996},
4035 editor = {Smith, Y.}
4036 }
4037
4038 @COMMENT{Whole issue of a journal}
4039 @COMMENT{Instead of an author only an editor is given}
4040 @ARTICLE{OBrian2002,
4041 editor = {O'Brian, P.},
4042 title = {Recent developments in chiral lithium amide base chemistry},
4043 year ={2002},
4044 journal = {Tetrahedron},
4045 volume = 58,
4046 pages = {4567--4733}
4047 }
4048
4049 @COMMENT{Whole conference proceedings}
4050 @Proceedings{Smith1996,
4051 editor = {Smith, Y.},
4052 title ={Proceedings of the First National Conference on Porous Sieves},
4053 year = {1996},
4054 address = {Stoneham, MA},
4055 venue = {Baltimore, MD, June 27--30, 1996},
4056 publisher = {Butterworth-Heinemann}
4057 }
4058
4059 @COMMENT{Complete book}
4060 @BOOK{Rao2005,
4061 author = {Rao, C. N. R. and Govindaraj, A.},
4062 title = {Nanotubes and Nanowires},
4063 publisher = {Royal Society of Chemistry},
4064 address = {Cambridge, U.K.},
4065 year = 2005
4066 }
4067
4068 @COMMENT{Book edition}
4069 @BOOK{Borisenko2008,
4070 author = {Borisenko, V. E. and Ossicini, S.},
4071 title = {What is what in the Nanoworld},
4072 edition = 2,
4073 publisher = {Wiley-VCH},
4074 address = {Berlin},
4075 year = 2008
4076 }
4077
4078 @COMMENT{Book chapter or article within book}
4079 @INCOLLECTION{Taylor2007,
4080 author = {Taylor, R. and Burley, G. A.},
4081 title = {Production, Isolation and Purification of Fullerenes},
4082 booktitle = {Fullerenes -- Principles and Application},
4083 editor = {Langa, F. and Nierengarten, J.-F.},
4084 publisher = {Royal Society of Chemistry},
4085 address = {Cambridge, U.K.},
4086 year = 2007,
4087 pages = {1--14}
4088 }
4089
4090 @COMMENT{Book chapter or article within a multi-volume book}
4091 @INCOLLECTION{Farnum2003,
4092 author = {Farnum, M. A. and DesJarlais, R. L. and Agrafiotis, D. K.},
4093 title = {Molecular Diversity},
4094 booktitle = {Handbook of Chemoinformatics: From Data to Knowledge},
4095 editor = {Gasteiger, J.},
4096 publisher = {Wiley-VCH},
4097 address = {Weinheim, Germany},
4098 year = {2003},
4099 volume = {4},
4100 pages = {1640--1686}
4101 }
4102
4103 @COMMENT{Chapter of a book in a series}
4104 @INCOLLECTION{Goldfuss2003,
4105 author = {Goldfuss, B.},
4106 title = {Enantioselective addition of organolithiums to C=O groups},
4107 booktitle = {Organolithiums in Enantioselective Synthesis},
4108 editor = {Hodgson, D. M.},
4109 series = {Topics in Organometallic Chemistry, Vol.~5},
4110 publisher = {Springer},
4111 address = {Berlin},
4112 year = 2003,
4113 pages = {21--35}
4114 }
4115
4116 @COMMENT{Book with institutional author}
4117 @BOOK{AnnualReport,
4118 author = {{Advisory Committee on Genetic Modification}},
4119 title = {Annual Report},
4120 year = 1999,
4121 address = {London}
4122 }
4123
4124 @COMMENT{Thesis}
4125 @PhDThesis{Pfrang2004,
4126 author = {Pfrang, A.},
4127 title ={Von den Fr\"uhstadien der Pyrokohlenstoffabscheidung bis zum Kompositwerkstoff -- Untersuchungen mit Rastersondenverfahren},
4128 year = {2004},
4129 school = {University of Karlsruhe, Germany}
4130 }
4131
4132 @COMMENT{For online resources a new type ``WWW'' is introduced. The fields ``url'' and ``urldate'' hold the corresponding address and access date. Please note: the urldate is not formatted, so it has to be in the correct format already.}
4133 @WWW{Bozen2002,
4134 title = {Proceedings of ``Molecular Informatics: Confronting Complexity'', May 13--16, 2002, Bozen, Italy},
4135 url = {http://www.beilstein-institut.de/index.php?id=154},
4136 urldate = {Sep 12, 2007}
4137 }
4138
4139 @COMMENT{Software}
4140 @COMMENT{For software a field ``version'' can be used.}
4141 @SOFTWARE{Gaussian03,
4142 title = {Gaussian 03},
4143 version = {Revision C.02},
4144 publisher = {Gaussian, Inc.},
4145 address = {Wallingford, CT},
4146 year = {2004}
4147 }
4148
4149 @Comment{----------------------------------------------------------------------------------------------------------}
4150 @Comment{References used in ``beilstein-template.tex''.}
4151
4152 @INCOLLECTION{Pornet2002,
4153 author = {Pornet, J.},
4154 title = {Product Subclass 32: Allenylsilanes},
4155 booktitle = {Science of Synthesis},
4156 editor = {Fleming, I.},
4157 publisher = {Georg Thieme Verlag},
4158 address = {Stuttgart},
4159 year = {2002},
4160 pages = {669--683},
4161 volume = {4}
4162 }
4163
4164 @ARTICLE{Masse1995,
4165 author = {Masse, C. E. and Panek, J. S.},
4166 journal = {Chem. Rev. (Washington, DC, U. S.)},
4167 year = 1995,
4168 volume = 95,
4169 pages = {1293--1316}
4170 }
4171
4172 @ARTICLE{Jian1995,
4173 author = {Jian, J. and Smith, D. T. and Weinreb, S. M.},
4174 year ={1995},
4175 journal = {J. Org. Chem.},
4176 volume = 60,
4177 pages = {5366--5367}
4178 }
4179
4180 @ARTICLE{Weinreb1998,
4181 author = {Weinreb, S. M. and Smith, D. T. and Jian, J.},
4182 year ={1998},
4183 journal = {Synthesis},
4184 pages = {509--521}
4185 }
4186
4187 @ARTICLE{Danheiser1980,
4188 author = {Danheiser, R. L. and Carini, D. J.},
4189 year ={1980},
4190 journal = {J. Org. Chem.},
4191 volume = 45,
4192 pages = {3925--3927}
4193 }
4194
4195 @ARTICLE{Danheiser1986,
4196 author = {Danheiser, R. L. and Carini, D. J. and Kwasigroch, C. A.},
4197 year ={1986},
4198 journal = {J. Org. Chem.},
4199 volume = 51,
4200 pages = {3870--3878}
4201 }
4202
4203 @ARTICLE{Danheiser1985,
4204 author = {Danheiser, R. L. and Kwasigroch, C. A. and Tsai, Y.-M.},
4205 year ={1985},
4206 journal = {J. Am. Chem. Soc.},
4207 volume = 107,
4208 pages = {7233--7235}
4209 }
4210
4211 @ARTICLE{Danheiser1985b,
4212 author = {Danheiser, R. L. and Fink, D. M.},
4213 year ={1985},
4214 journal = {Tetrahedron Lett.},
4215 volume = 26,
4216 pages = {2513--2516}
4217 }
4218
4219 @ARTICLE{Daidouji2005,
4220 author = {Daidouji, K. and Fuchibe, K. and Akiyama, T.},
4221 year ={2005},
4222 journal = {Org. Lett.},
4223 volume = 7,
4224 pages = {1051--1053}
4225 }
4226 @ARTICLE{Danheiser1981,
4227 author = {Danheiser, R. L. and Carini, D. J. and Basak, A.},
4228 year ={1981},
4229 journal = {J. Am. Chem. Soc.},
4230 volume = 103,
4231 pages = {1604--1606}
4232 }
4233
4234 @ARTICLE{Danheiser1983,
4235 author = {Danheiser, R. L. and Carini, D. J. and Fink, D. M.},
4236 year ={1983},
4237 journal = {Tetrahedron},
4238 volume = 39,
4239 pages = {935--947}
4240 }
4241
4242 @Article{Danheiser1987,
4243 author="R. L. Danheiser and D. A. Becker",
4244 journal="Heterocycles",
4245 year="1987",
4246 volume="25",
4247 pages="277-281",
4248 }
4249
4250 @Article{Yadav2004,
4251 author="V. K. Yadav and V. Sriramurthy",
4252 journal="Org. Lett.",
4253 year="2004",
4254 volume="6",
4255 pages="4495-4498",
4256 note="Annulations leading to cyclohexenes are known, see reference 11",
4257 }
4258
4259 @Article{Danheiser1987b,
4260 author="R. L. Danheiser and Y.-M. Tsai and D. M. Fink",
4261 journal="Org. Synth.",
4262 year="1987",
4263 volume="66",
4264 pages="1-4",
4265 }
4266 %</bib>
4267 %<*demo>
4268 %% !TeX TS-program = pdflatex
4269 %% !BIB TS-program = bibtex
4270 %% !TeX spellcheck = en_US
4271 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4272 %% Many modern TeX editors understand the above lines to overwrite %
4273 %% globally set settings for individual documents. Just leave one %
4274 %% percent sign at the beginning of the line to activate that meta %
4275 %% comment. %
4276 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4277 %
4278 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4279 %% This is a (brief) example using the beilstein class.
4280 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4281
4282 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4283 %% If issues arise when submitting your manuscript, you may want to
4284 %% un-comment the next line. This provides information on the
4285 %% version of every file you have used. That way the maintainer of
4286 %% the class can handle the issue much easier.
4287 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4288 %%\listfiles
4289
4290 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4291 %% The document class does not have many options yet. It accepts an
4292 %% optional keyval option for the manuscript type and options for the
4293 %% language and inputencoding used.
4294 %% These are for the manuscript type:
4295 %% manuscript=fullresearchpaper (default),
4296 %% manuscript=letter,
4297 %% manuscript=commentary,
4298 %% manuscript=review,
4299 %% manuscript=bookreport,
4300 %% manuscript=suppinfo.
4301 %%
4302 %% For the language (in terms of hyphenation):
4303 %% american -> American English (default),
4304 %% british, english -> British English.
4305 %%
4306 %% For the input encoding:
4307 %% latin1,
4308 %% utf8 (default),
4309 %% applemac.
4310 %%
4311 %% The defaults are [manuscript=fullresearchpaper,american,utf8].
4312 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4313 \documentclass[]{beilstein}
4314
4315 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4316 %% Place any additional packages needed here. Only include packages
4317 %% which are essential to avoid problems later. The class already
4318 %% loads some useful packages, so please have a look at the
4319 %% documentation.
4320 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4321 \usepackage{xspace}
4322
4323 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4324 %% Place any additional macros here. Please use \newcommand* where
4325 %% possible, and avoid layout-changing macros (which are not used
4326 %% when typesetting).
4327 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4328 \newcommand*{\CHCL}{\chem{CH_2Cl_2}}
4329 \newcommand*{\HNMR}{\chem{^{1}H~NMR}\xspace}
4330 \newcommand*{\CNMR}{\chem{^{13}C~NMR}\xspace}
4331
4332 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4333 %% Beginning of the article
4334 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4335 \begin{document}
4336
4337 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4338 %% Meta-data block
4339 %% ---------------
4340 %% The title of the article is given with the usual \title command.
4341 %% The title of an article should be clear, concise and comprehensible to all
4342 %% readers with the purpose of quickly identifying the focus of the reported
4343 %% work. It should be brief and contain the most important keywords for search
4344 %% engine optimization. The use of capitals should be restricted to the first
4345 %% word and proper nouns. As far as possible abbreviations should be avoided.
4346 %%
4347 %% If you write a file for Supporting Information using manuscript=suppinfo,
4348 %% you should give an additional title using the macro \sititle or the
4349 %% optional argument of \title
4350 %%
4351 %% Each author needs to be given with a separate \author command.
4352 %%
4353 %% For corresponding authors please use \author* and give the email
4354 %% address as a second mandatory argument.
4355 %%
4356 %% The affiliation of authors is given after the authors; the
4357 %% affiliations are numbered consecutively.
4358 %%
4359 %% If some authors have the same affiliation you can use the optional
4360 %% argument of \author and \author* to give the number of that
4361 %% affiliation.
4362 %%
4363 %% The whole block is printed with the \maketitle command at the very
4364 %% end.
4365 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4366 \title{Synthesis of highly substituted allenylsilanes by alkylidenation of silylketenes}
4367 %%%\sititle{} % when using manuscript=suppinfo
4368 \author*{Stephen P. Marsden}{[email protected]}
4369 \affiliation{School of Chemistry, University of Leeds, Leeds LS2 9JT, United Kingdom}
4370 \author{Pascal C. Ducept}
4371 \affiliation{Department of Chemistry, Imperial College London, London SW7 2AY, United Kingdom}
4372 \maketitle
4373
4374 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4375 %% The document should begin with an abstract, if appropriate. If one
4376 %% is given and should not be, a warning is issued.
4377 %% The abstract should summarize the context and purpose of the study,
4378 %% the main findings and provide a brief summary and potential
4379 %% implications. Abbreviations should be used sparingly in the abstract.
4380 %% Citations and references should not be given in abstracts. Only
4381 %% standard characters are allowed.
4382 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4383 \begin{abstract}
4384 Allenylsilanes are useful intermediates in organic synthesis. An attractive,
4385 convergent but little used approach for their synthesis is the alkylidenation
4386 of stable silylketenes. Reactions thus far have been limited to the use of
4387 unsubstituted silylketenes (or equivalents) with stabilised or semi-stabilised
4388 ylides only. The current study explores the reactions of substituted ketenes
4389 prepared through rhodium(II)-mediated rearrangement of silylated diazoketones.
4390 A range of novel 1,3-disubstituted and 1,3,3-trisubstituted allenylsilanes were
4391 prepared using stabilised and semi-stabilised ylides. Alkylidenation with
4392 non-stabilised phosphorus ylides was not viable, but the use of titanium-based
4393 methylenating reagents was successful, allowing access to 1-substituted
4394 allenylsilanes. Many novel allenylsilanes may be accessed by alkylidenation of
4395 substituted silylketenes. Importantly, for the first time, simple methylenation
4396 of silylketenes has been achieved using titanium carbenoid-based reagents.
4397 \end{abstract}
4398
4399 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4400 %% Keywords can be given with the \keywords command. Any number of
4401 %% keywords can be given, but a number of at least five keywords is
4402 %% recommended. The arguments are to be sorted alphabetically.
4403 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4404 \keywords{allenylsilanes; rhodium(II) octanoate-mediated rearrangement; silylketenes; titanium carbenoids; ylide}
4405
4406 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4407 %% The main text starts right here. For each required and optional
4408 %% section of the chosen document type a special command is defined.
4409 %%
4410 %% It is strongly recommended to use BibTeX for managing references.
4411 %% Citations and citation lists can be given with the \cite command.
4412 %% Please note, that not all references have been added to the
4413 %% example document.
4414 %%
4415 %% For references in floats \cite is locally redefined to
4416 %% adds the reference to the end of the list of references.
4417 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4418 \section{Introduction}
4419 Allenylsilanes are versatile intermediates for organic synthesis \cite{Pornet2002,Masse1995}. They have two main modes of reactivity: firstly, as propargyl anion equivalents in thermal \cite{Jian1995,Weinreb1998} or Lewis acid-mediated \cite{Danheiser1980,Danheiser1986} addition to carbonyls, acetals and imines, and secondly as three-carbon partners in [3+2] annulation reactions. Thus, reaction with aldehydes \cite{Danheiser1985}, imines/iminiums \cite{Danheiser1985,Daidouji2005}, enones \cite{Danheiser1981,Danheiser1983,Danheiser1985b} and nitrosyl cations \cite{Danheiser1987} leads to dihydrofurans, dihydropyrroles, cyclopentenes and isoxazoles respectively \cite{Yadav2004}. In most cases the silicon is retained in the final product and can be used as a handle for further synthetic elaboration.
4420
4421 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4422 %% When referencing objects, LaTeX offers a label--ref mechanism.
4423 %% The beilstein class extends this approach with the \cref command,
4424 %% that adds the corresponding type of the object as well.
4425 %%
4426 %% Tables, figures and schemes must have a single column or double
4427 %% column width. To make life easier, some commands are defined.
4428 %%
4429 %% Captions (legends) will always be added at the correct place no
4430 %% matter where you put in the source code.
4431 %% Please note: labels always have to come /after/ the \caption.
4432 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4433 Amongst the myriad methods to prepare allenylsilanes \cite{Pornet2002,Danheiser1987b}, an attractive disconnection is to consider a Wittig-type alkylidenation of a silylketene (\cref{fig:AlkylidenationApproach}).
4434 \begin{figure}
4435 \caption{Alkylidenation approach to the synthesis of allenylsilanes.}
4436 \label{fig:AlkylidenationApproach}
4437 \includegraphics[width=8.2cm,keepaspectratio]{figure1}
4438 %% \sglcolfigure{figure1}
4439 \end{figure}
4440
4441 [\ldots]
4442
4443 \section{Results and Discussion}
4444 Our investigations began with the preparation of substituted silylketenes \CN{1} as substrates for the alkylidenation chemistry. This was carried out under our previously reported conditions for rhodium(II) octanoate-mediated rearrangement of silyl diazoketones \CN{2}, which in turn were prepared by \textit{C}-silylation of the parent diazoketones \CN{3} with triethylsilyl triflate (\cref{scheme:1}). It should be noted that while the alkyl-substituted silylketenes are relatively stable and show little decomposition at room temperature over several days, the (hetero)aromatic-substituted silylketenes are much less robust and should be used quickly or stored in a freezer.
4445
4446 \begin{scheme}
4447 \caption{Synthesis of substituted silylketenes \CN{1}.}
4448 \label{scheme:1}
4449 \includegraphics[width=8.2cm,keepaspectratio]{scheme1}
4450 \end{scheme}
4451
4452 [\ldots]
4453
4454 With the requisite silylketenes in hand, attention turned to their reaction with the carboethoxy-stabilised phosphoranes \CN{4} and \CN{5}. At the outset, it was by no means certain that these would react efficiently with substituted silylketenes \CN{1} since it is well documented that nucleophiles attack silylketenes \textit{anti} to the silicon, i.e., the phosphoranes would be approaching from the same side as the \chem{R^1}-substituent. Since in all previous examples this substituent has been a hydrogen atom, the extension to bulkier substituents could not be taken for granted. In the event, however, we were pleased to find that in nearly all cases the desired allenylsilanes were formed in moderate to excellent yield (\cref{scheme:2}, \cref{tab:1}, see \cref{si:1} for full experimental data).
4455 \begin{scheme}
4456 \includegraphics[width=8.2cm,keepaspectratio]{scheme2}
4457 \caption{Reaction of substituted silylketenes with ester-stabilised phosphoranes.}
4458 \label{scheme:2}
4459 \end{scheme}
4460 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4461 %% Tables are a bit special. Only there the \footnote is allowed for
4462 %% Beilstein publications.
4463 %%
4464 %% As for figures and schemes sglcoltabular and dblcoltabular can be
4465 %% used to get tables of the correct width. If you do not want to
4466 %% messure the columns you can use parameter ``X'' of the tabularx
4467 %% package for one column or more to get equal-sized columns.
4468 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4469
4470 \begin{table}
4471 \caption{Reaction of substituted silylketenes with ester-stabilised phosphoranes.}
4472 \label{tab:1}
4473 \begin{dblcoltabularx}{|l|l|l|l|l|X|X|}\hline
4474 \bfseries Entry & \bfseries Ketene & \bfseries Ylide & \bfseries Temp [\celsius] & \bfseries \textit{t} [h] & \bfseries Solvent & \bfseries Yield 6/7 (8)\\\hline
4475 1 & \CN{1a} & \CN{4} & 80 & 24 & PhH & 54\,\%\\\hline
4476 2 & \CN{1a} & \CN{5} & rt & 3 & \CHCL & 60\,\%\\\hline
4477 3 & \CN{1b} & \CN{4} & 110 & 24 & toluene & 45\,\%\\\hline
4478 4 & \CN{1b} & \CN{5} & reflux & 24 & \CHCL & 77\,\%\\\hline
4479 5 & \CN{1c} & \CN{4} & 80 & 24 & PhH & 60\,\%\\\hline
4480 6 & \CN{1c} & \CN{5} & rt & 6 & \CHCL & 81\,\%\\\hline
4481 7 & \CN{1d} & \CN{4} & 110 & 48 & toluene & 22\,\%%
4482 \footnote{60\,\% of starting material recovered}\\\hline
4483 8 & \CN{1d} & \CN{5} & 80 & 48 & toluene & 78\,\%\\\hline
4484 9 & \CN{1e} & \CN{4} & 80 & 24 & PhH & 55\,\% (7\,\%)\\\hline
4485 10 & \CN{1f} & \CN{4} & 60 & 5 & \CHCL & 44\,\% (3\,\%)\\\hline
4486 11 & \CN{1h} & \CN{4} & rt & 6 & \CHCL & 0\,\% (57\,\%)\\\hline
4487 12 & \CN{1h} & \CN{4} & 50 & 1 & \CHCL & 7\,\% (23\,\%)\\\hline
4488 13 & \CN{1i} & \CN{4} & rt & 10 & \CHCL & 0\,\% (67\,\%)\\\hline
4489 14 & \CN{1i} & \CN{5} & rt & 2 & \CHCL & 98\,\%\\\hline
4490 15 & \CN{1j} & \CN{4} & 80 & 12 & PhH & 74\,\% (19\,\%)\\\hline
4491 \end{dblcoltabularx}
4492 \end{table}
4493
4494 As expected, reactions with the more substituted ylide \CN{4} were significantly slower than those with the parent ylide \CN{5} (compare reaction temperatures and times, entries 1, 3 and 5 versus entries 2, 4 and 6). [...]
4495
4496 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4497 %% The Supporting Information is an essential part of many articles.
4498 %% They are given inside the ``suppinfo'' environment with the
4499 %% \sifile command which gets the following mandatory arguments:
4500 %% #1: File name
4501 %% #2: File type
4502 %% #3: Descriptive File title
4503 %% A long description can be given using the optional argument.
4504 %%
4505 %% You can label each entry and reference it in the text.
4506 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4507 \begin{suppinfo}
4508 Supporting information features copies of \HNMR spectra of silylated diazoketones \CN{2} and silylketenes \CN{1}, plus \chem{{}^1H} and \CNMR spectra of allenylsilanes \CN{6}, \CN{7}, and \CN{14}--\CN{19}.
4509 \sifile{S1.pdf}{PDF}{Experimental part}\label{si:1}
4510 \sifile{S2.pdf}{PDF}{NMR spectra of compounds \CN{1}, \CN{2}, \CN{6} and \CN{7}}
4511 \sifile{S3.pdf}{PDF}{NMR spectra of compounds \CN{14--19}}
4512 \end{suppinfo}
4513
4514 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4515 %% The sections "Acknowledgements" and "Funding" can be given in all
4516 %% manuscripts.
4517 %% This should be done within the environments ``acknowledgements''
4518 %% and ``funding'', which will produce the correct section titles.
4519 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4520 \begin{acknowledgements}
4521 We acknowledge Prof. H. Vlassov for the helpful discussions of the results and J. Martin for assistance with the synthesis.
4522 \end{acknowledgements}
4523
4524 \begin{funding}
4525 The following sources of funding are acknowledged: National Natural Science Foundation of China (S.P.M.; Grant Nos. 51502240, 11674273, U1856203), Wellcome Trust (S.P.M., Award No. 094542/Z/12/Z, EPSRC (P.C.D.; Grant No. GR/L60135/01 (PCD)), and both authors thank the generous research funding from Pfizer for financial support.
4526 \end{funding}
4527
4528 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4529 %% The appropriate \bibliography command should be placed here.
4530 %% Notice that the class file automatically sets \bibliographystyle
4531 %% and also names the section correctly.
4532 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4533 \bibliography{beilstein-template}
4534
4535 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4536 %% That's it. Ending the document finishes the article. Happy TeXing!
4537 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4538 \end{document}
4539 %</demo>
4540 %\fi