-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathachemso.dtx
More file actions
5833 lines (5656 loc) · 146 KB
/
achemso.dtx
File metadata and controls
5833 lines (5656 loc) · 146 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
% \iffalse meta-comment
%
% File: achemso.dtx Copyright (C) 2008-2022,2024 Joseph Wright
%
% It may be distributed and/or modified under the conditions of the
% LaTeX Project Public License (LPPL), either version 1.3c of this
% license or (at your option) any later version. The latest version
% of this license is in the file
%
% https://www.latex-project.org/lppl.txt
%
% This file is part of the "achemso bundle" (The Work in LPPL)
% and all files in that bundle must be distributed together.
%
% The released version of this bundle is available from CTAN.
%
% -----------------------------------------------------------------------
%
% The development version of the bundle can be found at
%
% https://github.com/josephwright/achemso
%
% for those people who are interested.
%
% -----------------------------------------------------------------------
%
%<*driver>
\documentclass[a4paper]{ltxdoc}
\usepackage{achemso,array,booktabs,lmodern}
\usepackage[osf]{mathpazo}
\usepackage[scaled=0.95]{helvet}
\usepackage[final]{listings,microtype}
\usepackage[T1]{fontenc}
\usepackage[numbered]{hypdoc}
\EnableCrossrefs
\CodelineIndex
\RecordChanges
\begin{document}
\DocInput{\jobname.dtx}
\end{document}
%</driver>
% \fi
%
%\GetFileInfo{\jobname.sty}
%
%\makeatletter
%
%^^A \DescribeOption is in l3doc but not ltxdoc
%\newcommand*\DescribeOption{^^A
% \leavevmode
% \@bsphack
% \begingroup
% \MakePrivateLetters
% \Describe@Option
%}
%\newcommand*\Describe@Option[1]{^^A
% \endgroup
% \marginpar{^^A
% \raggedleft
% \PrintDescribeEnv{#1}^^A
% }%
% \SpecialOptionIndex{#1}^^A
% \@esphack
% \ignorespaces
%}
%\newcommand*\SpecialOptionIndex[1]{^^A
% \@bsphack
% \index{^^A
% #1\actualchar{\protect\ttfamily#1} (option)\encapchar usage^^A
% }^^A
% \index{^^A
% options:\levelchar#1\actualchar{\protect\ttfamily#1}
% \encapchar usage^^A
% }^^A
% \@esphack
%}
%
%^^A For creating examples with nice highlighting of code, and so
%^^A on; based on the system used in the listings source (lstsample).
%\lst@RequireAspects{writefile}
%\newsavebox{\LaTeXdemo@box}
%\lstnewenvironment{LaTeXdemo}[1][code and example]{^^A
% \global\let\lst@intname\@empty
% \expandafter\let\expandafter\LaTeXdemo@end
% \csname LaTeXdemo@#1@end\endcsname
% \@nameuse{LaTeXdemo@#1}^^A
%}{^^A
% \LaTeXdemo@end
%}
%\newcommand*\LaTeXdemo@new[3]{^^A
% \expandafter\newcommand\expandafter*\expandafter
% {\csname LaTeXdemo@#1\endcsname}{#2}^^A
% \expandafter\newcommand\expandafter*\expandafter
% {\csname LaTeXdemo@#1@end\endcsname}{#3}^^A
%}
%\newcommand*\LaTeXdemo@common{^^A
% \setkeys{lst}{
% basicstyle = \small\ttfamily,
% basewidth = 0.51em,
% gobble = 3,
% keywordstyle = \color{blue},
% language = [LaTeX]{TeX},
% moretexcs = {
% affiliation,
% alsoaffiliation,
% altaffiliation,
% email,
% fax,
% natmovechars,
% phone,
% setkeys
% }
% }^^A
%}
%\newcommand*\LaTeXdemo@input{^^A
% \MakePercentComment
% \catcode`\^^M=10\relax
% \small
% \begingroup
% \setkeys{lst}{
% SelectCharTable=\lst@ReplaceInput{\^\^I}{\lst@ProcessTabulator}
% }^^A
% \leavevmode
% \input{\jobname.tmp}^^A
% \endgroup
% \MakePercentIgnore
%}
%\LaTeXdemo@new{code and example}{^^A
% \setbox\LaTeXdemo@box=\hbox\bgroup
% \lst@BeginAlsoWriteFile{\jobname.tmp}^^A
% \LaTeXdemo@common
%}{^^A
% \lst@EndWriteFile
% \egroup
% \begin{center}
% \ifdim\wd\LaTeXdemo@box>0.48\linewidth\relax
% \hbox to\linewidth{\box\LaTeXdemo@box\hss}^^A
% \begin{minipage}{\linewidth}
% \LaTeXdemo@input
% \end{minipage}
% \else
% \begin{minipage}{0.48\linewidth}
% \LaTeXdemo@input
% \end{minipage}
% \hfill
% \begin{minipage}{0.48\linewidth}
% \hbox to\linewidth{\box\LaTeXdemo@box\hss}^^A
% \end{minipage}
% \fi
% \end{center}
%}
%\LaTeXdemo@new{code only}{^^A
% \LaTeXdemo@common
%}{^^A
%}
%
%\providecommand*\eTeX{\ensuremath{\varepsilon}-\TeX}
%\providecommand*\file{\texttt}
%\providecommand*\opt{\texttt}
%\providecommand*\pkg{\textsf}
%
%\newcommand*\ACS{\textsc{acs}}
%
%\makeatother
%
%\title{^^A
% \textsf{achemso} --- Support for submissions to American Chemical
% Society journals\thanks{^^A
% This file describes version \fileversion, last revised
% \filedate.^^A
% }^^A
%}
%\author{^^A
% Joseph Wright\thanks{E-mail: joseph.wright@morningstar2.co.uk}^^A
%}
%\date{Released \filedate}
%
%\maketitle
%
%\begin{abstract}
% The \pkg{achemso} bundle provides a \LaTeX\ class file and \BibTeX\
% style file in accordance with the requirements of the American
% Chemical Society (\ACS). The files can be used for any documents, but
% have been carefully designed and tested to be suitable for submission
% to \ACS\ journals.
%
% The bundle also includes the \pkg{natmove} package. This package is
% loaded by \pkg{achemso}, and provides automatic moving of superscript
% citations after punctuation.
%\end{abstract}
%
%\begin{multicols}{2}
% \tableofcontents
%\end{multicols}
%
%\section{Introduction}
% Support for \BibTeX\ bibliography following the requirements of the
% American Chemical Society (\ACS), along with a package to make
% these easy to have been available since version one of \pkg{achemso}.
% The re-write from version 1 to version 2 made a number of
% improvements to the package, and also added a number of new
% features. However, neither version one nor version two of the
% package was targeted directly at use for submissions to \ACS\
% journals. This new release of \pkg{achemso} addresses this issue.
%
% The bundle consists of four parts. The first is a \LaTeXe\ class,
% intended for use in submissions. It is based on the standard
% \pkg{article} class, but makes various changes to facilitate ease
% of use. The second part is the \LaTeX\ package. The package contains
% the parts of the bundle which are appropriate for use with other
% document classes.\footnote{For example, when writing a thesis.}
% Thirdly, two \BibTeX\ style files are included. These are used by
% both the class and the package, but can be used directly if desired.
% Finally, an example document is included; this is intended to act a
% potential template for submission, and illustrates the use of the
% class file.
%
%\section{Installation}
%
% The package is supplied in \file{dtx} format and as a pre-extracted
% zip file, \file{\jobname.tds.zip}. The later is most convenient for
% most users: simply unzip this in your local texmf directory and
% run \texttt{texhash} to update the database of file locations. If
% you want to unpack the \file{dtx} yourself, running
% \texttt{tex \jobname.dtx} will extract the package whereas
% \texttt{latex \jobname.dtx} will extract it and also typeset the
% documentation.
%
% Typesetting the documentation requires a number of packages in
% addition to those needed to use the package. This is mainly
% because of the number of demonstration items included in the text. To
% compile the documentation without error, you will need the packages:
% \begin{itemize}
% \item \pkg{array}
% \item \pkg{booktabs}
% \item \pkg{hypdoc}
% \item \pkg{listings}
% \item \pkg{lmodern}
% \item \pkg{mathpazo}
% \item \pkg{microtype}
%\end{itemize}
%
%\section{Requirements}
%
% The \pkg{achemso} class requires the following packages:
%\begin{itemize}
% \item \pkg{caption}
% \item \pkg{float}
% \item \pkg{geometry}
% \item \pkg{natbib}
% \item \pkg{setspace}
% \item \pkg{xkeyval}
%\end{itemize}
% These are normally present in the current major \TeX{} distributions,
% but are also available from \href{http://www.ctan.org}{The
% Comprehensive TeX Archive Network}.
%
%\section{The class file}
% The class file has been designed for use in submitting journals to
% the \ACS. It uses all of the modifications described here (those in
% the package as well as those in the class). The accompanying
% example manuscript can be used as a template for the correct use of
% the class file. It is intended to act as a model for submission.
%
% When submitting communications to \emph{J.~Am.\ Chem.\ Soc.}, the
% class will automatically lay the document out in the publication
% style. This allows the author to judge the length of text submitted
% more accurately. Changing the \opt{manuscript} in the
% demonstration document to \opt{communication} will illustrate the
% effect.
%
%\subsection{Class options}
%
%\DescribeOption{journal}
% The class supports a limited number of options, which are
% specifically-targeted at submission. The class uses the
% \pkg{keyval} system for options, in the form \opt{key=value}. The
% most important option is \opt{journal}. This is an identifier
% for the target journal: from \url{https://pubs.acs.org/}, the identifier
% is the part of the URL after \texttt{https://pubs.acs.org/journal/},
% \emph{e.g.}~for \emph{J.\ Org.\ Chem.}\ it would be \texttt{joceah}.
% If an unknown journal is specified, the package will fall-back on the
% \opt{journal=jacsat} option.
%
%\DescribeOption{manuscript}
% The second option is the \opt{manuscript} option. This specifies
% the type of paper in the manuscript. The values here are
% \opt{article}, \opt{note}, \opt{communication}, \opt{review},
% \opt{letter} and \opt{perspective}. The valid values will depend on
% the value of \opt{journal}. The \opt{manuscript} option determines
% whether sections and an abstract are valid. The value
% \opt{suppinfo} is also available for supporting information.
%
%\DescribeOption{layout}
% The \pkg{achemso} class can produce drafts in two layout styles. The
% standard setting for the \opt{layout} option is \opt{traditional},
% which produces a double-spaced single column manuscript. The
% alternative setting \opt{twocolumn} will use single spacing and
% print the text in two columns. The second option is obviously more
% compact. If the journal requires a particular style this option may
% be ignored.
%
%\DescribeOption{email}
% It may be desirable to omit e-mail addresses from the front page of
% a manuscript. The printing of e-mail addresses can be disabled using
% the \opt{email} option, which takes Boolean values only. The default
% is to print e-mail addresses. Notice that phone and fax numbers are
% only printed if e-mail addresses are printed.
%
% Other options are provided by the package, but when used with the
% class these are silently ignored. If you need to override the
% settings chosen by the class, include the settings \emph{after}
% the \cs{documentclass} line using \cs{setkeys}:
%\begin{LaTeXdemo}[code only]
% \documentclass[journal = jacsat]{achemso}
% \setkeys{acs}{articletitle = false}
%\end{LaTeXdemo}
%
%\subsection{Manuscript meta-data}
%
%\DescribeMacro{\author}
%\DescribeMacro{\affiliation}
%\DescribeMacro{\alsoaffiliation}
%\DescribeMacro{\altaffiliation}
%\DescribeMacro{\email}
% Inspired by REV\TeX, the \pkg{achemso} class alters the method for
% adding author information to the manuscript. Each author should be
% given as a separate \cs{author} command. These should be followed
% by an \cs{affiliation}, which applies to the preceding authors. The
% \cs{affiliation} macro takes an optional argument, for a short
% version of the affiliation.\footnote{This will usually be the
% university or company name.} At least one author should be
% followed by an \cs{email} macro, containing contact details. All
% authors with an e-mail address are automatically marked with a
% star. The example manuscript demonstrates the use of all of these
% macros. Notice that \cs{alsoaffiliation} is used when one (or more)
% authors work at multiple institutions, while \cs{altaffiliation}
% is intended for previous addresses (or other notes). Only
% \cs{affiliation} applies to multiple authors: both
% \cs{alsoaffiliation} and \cs{altaffiliation} are set on a per
% author basis.
%\begin{LaTeXdemo}[code only]
% \author{Author Person}
% \author{Second Bloke}
% \email{second.bloke@some.place}
% \affiliation[University of Sometown]
% {University of Somewhere, Sometown, USA}
% \altaffiliation
% {Previous address: Minute University, Nowhereville, USA}
% \author{Indus Trialguy}
% \email{i.trialguy@sponsor.co}
% \affiliation[SponsoCo]
% {Research Department, SponsorCo, BigCity, USA}
% \alsoaffiliation{University of Somewhere, Sometown, USA}
%\end{LaTeXdemo}
% Repeated entries for \cs{affiliation} and \cs{alsoaffiliation} will
% result in only one address being printed in the address list and
% footnotes. Repeated \cs{altaffiliation} entries only produce a single
% footnote, and can therefore be used for entries such as
%\begin{LaTeXdemo}[code only]
% \author{First Coworker}
% \altaffiliation{Contributed equally to this work}
% \author{Second Coworker}
% \altaffiliation{Contributed equally to this work}
%\end{LaTeXdemo}
% if required.
%
%\DescribeMacro{\fax}
%\DescribeMacro{\phone}
% The class will recognise the optional information \cs{fax} and
% \cs{phone}, which will be printed along with the lead authors
% e-mail address. Note that this information is only used for authors
% who have an e-mail address supplied.
%\begin{LaTeXdemo}[code only]
% \author{Second Bloke}
% \email{second.bloke@some.place}
% \phone{+xxx (0)yyy zzzzzz}
% \fax{+xxx (0)yyy wwwwww}
% \affiliation[University of Sometown]
% {University of Somewhere, Sometown, USA}
%\end{LaTeXdemo}
%
%\DescribeMacro{\and}
%\DescribeMacro{\thanks}
% The method used for setting the meta-data means that the normal
% \cs{and} and \cs{thanks} macros are not appropriate in the \
% pkg{achemso} class. Both produce a warning if used.
%
%\DescribeMacro{\title}
% The \cs{title} macro is extended to accept an optional argument.
% This is intended for a shortened version of the journal title
% suitable for running headers. Some journals require that authors
% supply this data: if it is needed then it will be printed in the
% appropriate place.
%\begin{LaTeXdemo}[code only]
% \title[Short running title]
% {Long title which would not fit in running headers}
%\end{LaTeXdemo}
%
% The meta-data items should be given in the preamble to the \LaTeX\
% file, and no \cs{maketitle} macro is required in the document body.
% This is all handled by the class file directly. At least one
% author, affiliation and e-mail address must be specified.
%
%\subsection{Floats}
%\DescribeEnv{scheme}
%\DescribeEnv{chart}
%\DescribeEnv{graph}
% The class defines three new floating environments: \texttt{scheme},
% \texttt{chart} and \texttt{graph}. These can be used as expected to
% include graphical content. The placement of these new floats and the
% standard \texttt{table} and \texttt{figure} floats is altered to be
% ``here'' if possible. The contents of all floats is automatically
% horizontally centred on the page.
%
%\subsection{Section headers}
%
%\DescribeMacro{\SectionNumbersOff}
%\DescribeMacro{\SectionNumbersOn}
% Some journals have no section numbering by default. This can be
% set up in the appropriate configuration file, but it may be that
% individual users need to change the decision. The macros
% \cs{SectionNumbersOff} and \cs{SectionNumbersOn} are therefore
% available: these should be given in the preamble.
%
%\DescribeMacro{\SectionsOff}
%\DescribeMacro{\SectionsOn}
% More radically, the entire availability of sections can be turned on
% and of. This is functionality is available to the user \emph{via} the
% \cs{SectionsOn} and \cs{SectionsOff} macros, which again are
% preamble-only.
%\DescribeMacro{\AbstractOff}
%\DescribeMacro{\AbstractOn}
% Similar functions are available for the abstract: \cs{AbstractOff} and
% \cs{AbstractOn}.
%
%\subsection{Special sections}
%
%\DescribeEnv{acknowledgement}
%\DescribeEnv{suppinfo}
% The sections for acknowledgements and supporting information
% have dedicated environments available. These ensure that
% the section headings are generated, and that the text is
% sized corrected when using creating a Communication.
%\begin{LaTeXdemo}[code only]
% \begin{acknowledgement}
% The authors thank A.N.~Other.
% \end{acknowledgement}
%
% \begin{suppinfo}
% Full characterization data for all new compounds.
% \end{suppinfo}
%\end{LaTeXdemo}
%
%\DescribeEnv{tocentry}
% For generating an entry for the graphical table of content, required
% by some journals, the environment \texttt{tocentry} is available. This
% prints its content in an appropriately sized box on a separate page.
% In contrast to the rest of the manuscript, this section is intended to
% be ``print ready'' in appearance.
%
%\begin{LaTeXdemo}[code only]
% \begin{tocentry}
% \includegraphics{toc-entry-graphic}
% Some text to explain the graphic.
% \end{tocentry}
%\end{LaTeXdemo}
%
% \subsection{Miscellaneous commands}
%
% \DescribeMacro{\latin}
%
% The command \cs{latin} is provided by the class to format Latin phrases
% such as ``et al.'' Most ACS journals do not make these italic, but
% some (for example \emph{ACS Nano}) do. By providing a command, the formatting
% is left flexible.
%
% \DescribeMacro{\doi}
%
% The bibliography style prints any \textsc{doi} values as the
% argument to the command \cs{doi}. The default definition will allow
% printing of special characters but does not create hyperlinks. A
% more sophisticated version of the command may be set up if \pkg{hyperref}
% is loaded, for example
%\begin{LaTeXdemo}[code only]
% \begin{tocentry}
% \newcommand{\doi}[1]{\href{http://dx.doi.org/#1}{\nolinkurl{#1}}}
% \end{tocentry}
%\end{LaTeXdemo}
%
%\section{The package file}
% The \pkg{achemso} package is independent of the class file, and
% contains parts of the bundle useful outside of submission to the
% \ACS.
%
%\subsection{Package options}
%
% As with the class options, the package uses the key--value method
% for option set up. These are used to control the output of citations
% and bibliographic data. The same options are used when creating
% journal configurations for the class: this is a task most users will
% not need to undertake!
%
%\DescribeOption{super}
% The \opt{super} option affects the handling of superscript
% reference markers. The option switches this behaviour
% on and off (and takes Boolean values: \opt{super=true} and
% \opt{super=false} are valid).
%
%\DescribeOption{articletitle}
% The \opt{articletitle} option is a Boolean, and sets whether the title
% of a paper referenced appears in the bibliography. The default is
% \opt{articletitle=true}.
%
% \DescribeOption{doi}
% The boolean \opt{doi} option is provided to allow a \textsc{doi}
% (Digital Object Identifier) to be included for bibliography entries
% even where other identification such as page numbers is available.
% The standard setting is \opt{false}: setting it to \opt{true} will
% cause \textsc{doi} numbers to be printed if available.
%
% \DescribeOption{chaptertitle}
% The boolean \opt{chaptertitle} option is provided to allow flexibility
% for the inclusion of chapter titles for \texttt{book} and
% related entries. The standard setting is \opt{false}: setting
% it to \opt{true} will cause chapter titles to be included.
%
%\DescribeOption{etalmode}
%\DescribeOption{maxauthors}
% Many journals require that long lists of authors are shortened using
% `et al.' in the references section. The behaviour of the \BibTeX\
% styles in this regard is controlled by two options, \opt{etalmode}
% and \opt{maxauthors}. There are two possible ways to shorten a long
% list of authors. Some journals require that only the first author
% is given, followed by `et al.': for this behaviour, set
% \opt{etalmode=firstonly}:
%\begin{verbatim}
% Jones, A.N. et al.
%\end{verbatim}
% On the other hand, some journals request that the list of authors
% is truncated after $n$ authors. This is set up by the
% \opt{etalmode=truncate} option:
%\begin{verbatim}
% Jones, A.N.; Bloggs, F.; Nobacon, D. et al.
%\end{verbatim}
% In both cases, the maximum number of authors permitted before
% introducing `et al.' is governed by the \opt{maxauthors} option.
% This option recognises the sentinel value $0$, which indicates that
% no shortening should occur at all.
%
%\DescribeOption{biblabel}
% Redefining the formatting of the numbers used in the bibliography
% usually requires modifying internal \LaTeX\ macros. The
% \opt{biblabel} option makes these changes more accessible: valid
% values are \opt{plain} (use the number only), \opt{brackets}
% (surround the number in brackets) and \opt{period} or
% \opt{fullstop} (follow the number by a full stop/period).
%
%\DescribeOption{biochem}
%\DescribeOption{biochemistry}
% Most \ACS\ journals use the same bibliography style, with the only
% variation being the inclusion of article titles. However, a small
% number of journals use a rather different style; the journal
% \emph{Biochemistry} is probably the most prominent. The
% \opt{biochemistry} or \opt{biochem} option uses the style of
% \emph{Biochemistry} for the bibliography, rather than the normal
% \ACS\ style.
%
%\subsection{Bibliography notes}
%
%\DescribeMacro{\bibnote}
%\DescribeMacro{\bibnotemark}
%\DescribeMacro{\bibnotetext}
% \pkg{achemso} provides the \cs{bibnote} macro. This is intended for
% addition of notes to the bibliography (references). The macro
% accepts a single argument, which is transferred to the bibliography by
% \BibTeX. In analogy to \cs{footnote}, the macros \cs{bibnotemark} and
% \cs{bibnotetext} are available for dividing up the marker for a
% note from the text.
%\begin{LaTeXdemo}
% Some text \bibnote{This note text will be in the bibliography}.
%\end{LaTeXdemo}
%
% The functionality for bibnotes in \pkg{achemso} is based on that
% in the \pkg{notes2bib} package. The \pkg{notes2bib} package can be
% loaded with the \pkg{achemso} package, and no clash will occur. With
% the class file, \pkg{notes2bib} will be ignored if requested, to
% prevent issues on submission to the \ACS.
%
%\section{The \texorpdfstring{\BibTeX}{BibTeX} style files}
%
% \pkg{achemso} is supplied with two style files, \file{achemso.bst} and
% \file{biochem.bst}. The direct use of these without the \pkg{achemso}
% package file is not recommended, but is possible. The style files
% can be loaded in the usual way, with a \cs{bibliographystyle}
% command. The \pkg{natbib} package must be loaded by the \LaTeX\ file
% concerned, if the \pkg{achemso} package is not in use.
%
% The style files are designed to use the \pkg{mciteplus} package if it
% is available, but to work even if is not. When \pkg{mciteplus} is
% present, it is possible to automatically produce references of the
% form
%\begin{quotation}
% \noindent
% (5) (a) Arduengo,~A.~J.,~III; Dias,~H. V.~R.; Harlow,~R.~L.;
% Kline,~M. \emph{{J}.~{A}m.\ {C}hem.\ {S}oc.} \textbf{1992},
% \emph{114}, 5530--5534; (b) Appelhans,~L.~N.; Zuccaccia,~D.;
% Kovacevic,~A.; Chianese,~A.~R.; Miecznikowski,~J.~R.; Macchioni,~A.;
% Clot,~E.; Eisenstein,~O.; Crabtree,~R.~H. \emph{{J}.~{A}m.\ {C}hem.
% {S}oc.} \textbf{2005}, \emph{127}, 16299--16311; (c)
% Arduengo,~A.~J.,~III; Gamper,~S.~F.; Calabrese,~J.~C.; Davidson,~F.
% \emph{J.~Am.\ Chem.\ Soc.} \textbf{1994}, \emph{116}, 4391--4394.
%\end{quotation}
% as demonstrated in the example document. When \pkg{mciteplus} is
% not present, this functionality is not available but the style files
% will work normally.
%
% The \BibTeX\ style files implement the bibliographic style
% specified by the \ACS\ in \emph{The ACS Style Guide}
% \cite{Coghill2006}. By default, article titles are not included in
% output using the \file{achemso.bst} file, but are with the
% \file{biochem.bst} file.
%
% The style used by the \ACS\ does not differentiate between
% \BibTeX\ \texttt{book}, \texttt{inbook}, \texttt{collection} and
% \texttt{incollection} entries. As a result, the appearance of
% these entry types depends on the fields available. Named subdivisions
% of a book (for example, chapters where each has a named author)
% should be given in the \texttt{title} field, with the title of
% the book itself in the \texttt{booktitle} field. The
% \texttt{chapter} field should be used for a chapter number, and
% is printed as part of the pagination.
%
% One frequently asked question is why some people see an empty first
% item in their bibliography when using the \pkg{achemso} package or
% class. This is usually because they have downloaded the \LaTeX\ files
% and done a local installation without also updating the \BibTeX\
% style. The two must be from the same version of \pkg{achemso}: they
% are designed to work together.
%
%\section{The \pkg{natmove} package}
%
% The \pkg{natmove} package does only one job. It brings the ability to
% move punctuation after citations, using code borrowed from the
% \pkg{cite} package. Both the \pkg{achemso} class and package load
% \pkg{natmove} automatically.
%\begin{LaTeXdemo}
% Some text \cite{Coghill2006} some more text.\\
% Some text ending a sentence \cite{Coghill2006}.
%\end{LaTeXdemo}
% This is deactivated for other citation types.
%\begin{LaTeXdemo}
% Some text \citeyear{Coghill2006}.\\
% Some text \citeauthor{Coghill2006}.\\
% Some text \citenum{Coghill2006}.
%\end{LaTeXdemo}
% The package does nothing if the \opt{super} option has not been
% given to \pkg{natbib}. This means that the source can be written
% without needing to decide where citations will to appear, with the
% \opt{super} option for \pkg{natbib} controlling the result.
%
%\DescribeMacro{\natmovechars}
% One user macro is provided: \cs{natmovechars}. This contains
% the characters which are moved before superscript punctuation.
% The default contents is |,;:.| and can be set using
% \cs{renewcommand*}:
%\begin{LaTeXdemo}
% \renewcommand*{\natmovechars}{.}
% Some text \cite{Coghill2006},
% more text \cite{Coghill2006}.
%\end{LaTeXdemo}
%
%\StopEventually{^^A
% \PrintChanges
% \PrintIndex
% \bibliography{achemso-demo}
%}
%
%\section{Implementation}
%
% A lot of the work done by the package is also needed by the class.
% Loading the package and the class makes load-order awkward. Instead,
% the two parts are done in one place. Sandwiching the common code are
% two slices of dedicated material for the class and the package. Some
% of this is needed ``early'', before the common material, whilst the
% rest is ``late''.
%
%\subsection{Early class-only code}
%
% So that there is no confusion, the base class is loaded early.
% \begin{macrocode}
%<*class>
\ProvidesClass{achemso}
[2024-01-30 v3.13g Submission to ACS journals]
\LoadClass[12pt,letter]{article}
% \end{macrocode}
%
%\begin{macro}{\acs@warning}
% The code for a warning is created so that it works for the package too.
% \begin{macrocode}
\newcommand*\acs@warning{\ClassWarning{achemso}}
%</class>
% \end{macrocode}
%\end{macro}
%
%\subsection{Early package-only code}
%
% The package and the class should not both be loaded, as the two use
% the same internal macro names. On the other hand, if the class is
% not in use a reminder is printed to use it if possible.
% \begin{macrocode}
%<*package>
\ProvidesPackage{achemso}
[2024-01-30 v3.13g Support for ACS journals]
\@ifclassloaded{achemso}{%
\PackageInfo{achemso}{%
You have already loaded the `achemso' class:\MessageBreak
loading the package will abort%
}%
\endinput
}{%
\PackageInfo{achemso}{%
When writing a submission to an ACS journal, please\MessageBreak
use the achemso document class%
}%
}
% \end{macrocode}
%
%\begin{macro}{\acs@warning}
% The code for a warning is created so that it works for the class too.
% \begin{macrocode}
\newcommand*\acs@warning{\PackageWarning{achemso}}
%</package>
% \end{macrocode}
%\end{macro}
%
%\subsection{Common code}
%
%\begin{macro}{\acs@ifundefined}
% A non-expandable test for defined macros: does not add to the hash
% table.
% \begin{macrocode}
%<*package|class>
\newcommand*\acs@ifundefined[1]{%
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname #1\endcsname\relax
\expandafter\@firstoftwo
\else
\expandafter\@secondoftwo
\fi
}
% \end{macrocode}
%\end{macro}
%
% The first stage needed is to read the package options given. Although
% \pkg{xkeyval} was perhaps not the best choice, changing this now would
% be rather risky.
% \begin{macrocode}
\RequirePackage{xkeyval}
% \end{macrocode}
%\begin{macro}{\acs@keyval@bool}
% A support macro for making Boolean options: the \pkg{xkeyval} version
% is only available in newer releases.
% \begin{macrocode}
\newcommand*\acs@keyval@bool[2]{%
\acs@ifundefined{acs@#1#2}{%
\acs@warning{Unknown option `#2' for key #1}%
}{%
\@nameuse{acs@#1#2}%
}%
}
% \end{macrocode}
%\end{macro}
%\begin{macro}{\ifacs@abbreviations}
%\begin{macro}{\ifacs@articletitle}
%\begin{macro}{\ifacs@biochem}
%\begin{macro}{\ifacs@chaptertitle}
%\begin{macro}{\ifacs@doi}
%\begin{macro}{\ifacs@email}
%\begin{macro}{\ifacs@hyperref}
%\begin{macro}{\ifacs@keywords}
%\begin{macro}{\ifacs@super}
% These are all very trivial definitions: to avoid issues with older
% versions of \pkg{xkeyval} each definition is done directly.
% \begin{macrocode}
\newif\ifacs@abbreviations
\newif\ifacs@articletitle
\newif\ifacs@biochem
\newif\ifacs@doi
\newif\ifacs@chaptertitle
\newif\ifacs@email
\newif\ifacs@hyperref
\newif\ifacs@keywords
\newif\ifacs@super
\define@key{acs}{abbreviations}[true]{%
\acs@keyval@bool{abbreviations}{#1}%
}
\define@key{acs}{articletitle}[true]{%
\acs@keyval@bool{articletitle}{#1}%
}
\define@key{acs}{biochem}[true]{%
\acs@keyval@bool{biochem}{#1}%
}
\define@key{acs}{doi}[true]{%
\acs@keyval@bool{doi}{#1}%
}
\define@key{acs}{chaptertitle}[true]{%
\acs@keyval@bool{chaptertitle}{#1}%
}
\define@key{acs}{email}[true]{%
\acs@keyval@bool{email}{#1}%
}
\define@key{acs}{hyperref}[true]{%
\acs@keyval@bool{hyperref}{#1}%
}
\define@key{acs}{keywords}[true]{%
\acs@keyval@bool{keywords}{#1}%
}
\define@key{acs}{super}[true]{%
\acs@keyval@bool{super}{#1}%
}
\define@key{acs}{usetitle}[true]{%
\acs@keyval@bool{articletitle}{#1}%
}
% \end{macrocode}
%\end{macro}
%\end{macro}
%\end{macro}
%\end{macro}
%\end{macro}
%\end{macro}
%\end{macro}
%\end{macro}
%\end{macro}
%\begin{macro}{\acs@journal}
%\begin{macro}{\acs@layout}
%\begin{macro}{\acs@manuscript}
%\begin{macro}{\acs@maxauthors}
% Trivial again: done without using \pkg{xkeyval} for the same reasons
% as before.
% \begin{macrocode}
\newcommand*\acs@journal{jacsat}
\newcommand*\acs@layout{traditional}
\newcommand*\acs@manuscript{article}
\newcommand*\acs@maxauthors{15}
\define@key{acs}{journal}{%
\def\acs@journal{#1}%
}
\define@key{acs}{layout}{%
\def\acs@layout{#1}%
}
\define@key{acs}{manuscript}{%
\def\acs@manuscript{#1}%
}
\define@key{acs}{maxauthors}{%
\def\acs@maxauthors{#1}%
}
% \end{macrocode}
%\end{macro}
%\end{macro}
%\end{macro}
%\end{macro}
%\begin{macro}{\ifacs@etal@truncate}
%\begin{macro}{\acs@etal@firstonly}
%\begin{macro}{\acs@etal@truncate}
% The setup for the \opt{etalmode} option is quite simple: just look
% for the appropriate macros.
% \begin{macrocode}
\newif\ifacs@etal@truncate
\define@key{acs}{etalmode}{%
\acs@ifundefined{acs@etal@#1}{%
\acs@warning{%
Unknown value `#1' for\MessageBreak etalmode option%
}%
}{%
\@nameuse{acs@etal@#1}%
}%
}
\newcommand*\acs@etal@firstonly{\acs@etal@truncatefalse}
\newcommand*\acs@etal@truncate{\acs@etal@truncatetrue}
% \end{macrocode}
%\end{macro}
%\end{macro}
%\end{macro}
% \begin{macro}{\acs@activate@biblabel}
% The \opt{biochemistry} option is an alias for \opt{biochem}. The
% \opt{biblabel} option is a choice, which is implemented using a
% csname search. The group here prevents hash table pollution, whilst
% the \pkg{xkeyval} method is avoided as it is more complex than it is
% worth!
% \begin{macrocode}
\define@key{acs}{biochemistry}{%
\setkeys{acs}{biochem = #1}%
}
\define@key{acs}{biblabel}{%
\acs@ifundefined{acs@biblabel@#1}{%
\acs@warning{%
Unknown value `#1' for\MessageBreak biblabel option%
}%
}{%
\acs@activate@biblabel{\@nameuse{acs@biblabel@#1}}%
}%
}
\newcommand*\acs@activate@biblabel{}
%<*class>
\let\acs@activate@biblabel\AtEndOfClass
\AtEndOfClass{\let\acs@activate@biblabel\@firstofone}
%</class>
%<*package>
\let\acs@activate@biblabel\AtEndOfPackage
\AtEndOfPackage{\let\acs@activate@biblabel\@firstofone}
%</package>
% \end{macrocode}
% \end{macro}
%\begin{macro}{\acs@biblabel@brackets}
%\begin{macro}{\acs@biblabel@fullstop}
%\begin{macro}{\acs@biblabel@period}
%\begin{macro}{\acs@biblabel@plain}
% The macros to implement the idea above for biblabels.
% \begin{macrocode}
\newcommand*\acs@biblabel@brackets{\def\bibnumfmt##1{(##1)}}
\newcommand*\acs@biblabel@fullstop{\def\bibnumfmt##1{##1.}}
\newcommand*\acs@biblabel@period{\def\bibnumfmt##1{##1.}}
\newcommand*\acs@biblabel@plain{\def\bibnumfmt##1{##1}}
% \end{macrocode}
%\end{macro}
%\end{macro}
%\end{macro}
%\end{macro}
% Set up some defaults.
% \begin{macrocode}
\setkeys{acs}{
email = true,
super = true
}
% \end{macrocode}
% Loading some other packages depends on the options chosen, so they
% are processed now.
% \begin{macrocode}
\ProcessOptionsX*<acs>
% \end{macrocode}
%
%\begin{macro}{\acs@manuscript@communication}
%\begin{macro}{\acs@manuscript@letter}
%\begin{macro}{\acs@manuscript@note}
%\begin{macro}{\acs@manuscript@review}
%\begin{macro}{\acs@manuscript@suppinfo}
% For text comparisons.
% \begin{macrocode}
\newcommand*\acs@manuscript@communication{communication}
\newcommand*\acs@manuscript@letter{letter}
\newcommand*\acs@manuscript@note{note}
\newcommand*\acs@manuscript@review{review}
\newcommand*\acs@manuscript@suppinfo{suppinfo}
% \end{macrocode}
%\end{macro}
%\end{macro}
%\end{macro}
%\end{macro}
%\end{macro}
%
%\begin{macro}{\acs@niib@create}
%\begin{macro}{bibnote}
%\begin{macro}{\thebibnote}
%\begin{macro}{\bibnote}
%\begin{macro}{\bibnotemark}
%\begin{macro}{\bibnotetext}
%\begin{macro}{\printbibnotes}
% To avoid needing to load the \pkg{notes2bib} package, especially as
% the plan is to move that package to \LaTeX3 internal syntax,
% \pkg{achemso} provides a minimal version here. The first step is to
% create macros which will need a guard against \pkg{notes2bib} already
% having been loaded. To allow the package and class to behave
% differently these are actually applied later.
% \begin{macrocode}
\newcommand*\acs@niib@create{%
\@namedef{ver@notes2bib.sty}{%
2009/04/20 v1.6a Integrating notes into the bibliography (achemso
version)
}%
\@ifundefined{c@bibnote}{\newcounter{bibnote}}{}
\def\thebibnote{%
Note-\the\value{bibnote}%
}%
\DeclareRobustCommand*{\bibnote}[1][\thebibnote]{%
\stepcounter{bibnote}%
\def\acs@niib@after@text{\cite{##1}}%
\acs@niib@text{##1}%
}%
\DeclareRobustCommand*{\bibnotemark}[1][\thebibnote]{%
\stepcounter{bibnote}%
\cite{##1}%
}%
\DeclareRobustCommand*{\bibnotetext}[1][\thebibnote]{%
\let\acs@niib@after@text\relax
\acs@niib@text{##1}%
}%
\newcommand*\printbibnotes{%
\ifnum\the\value{bibnote}>\z@\relax
\nocite{achemso-control}%