summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/achemso/achemso.sty
blob: c9905e50c7981b62e807ed279c5bcbd35eccb3fe (plain)
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
%%
%% This is file `achemso.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% achemso.dtx  (with options: `package')
%%  ----------------------------------------------------------------
%%  The achemso package - LaTeX and BibTeX support for American
%%  Chemical Society publications
%%  Maintained by Joseph Wright
%%  E-mail: joseph.wright@morningstar2.co.uk
%%  Released under the LaTeX Project Public License v1.3c or later
%%  See http://www.latex-project.org/lppl.txt
%%  ----------------------------------------------------------------
%% 
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{achemso}
  [2008/01/16 v2.2e LaTeX and BibTeX support for American
     Chemical Society publications]
\newif\ifACS@sctnnmbr\ACS@sctnnmbrfalse
\newif\ifACS@list\ACS@listfalse
\newif\ifACS@note\ACS@notefalse
\newif\ifACS@super\ACS@supertrue
\newif\ifACS@natbib\ACS@natbibfalse
\newif\ifACS@mcite\ACS@mcitefalse
\DeclareOption{note}{\ExecuteOptions{notes}}
\DeclareOption{notes}{\ACS@notetrue}
\DeclareOption{number}{\ACS@sctnnmbrtrue}
\DeclareOption{super}{\ACS@supertrue}
\DeclareOption{list}{\ACS@listtrue}
\DeclareOption{notsuper}{\ACS@superfalse}
\DeclareOption{natbib}{\ACS@natbibtrue}
\DeclareOption{mcite}{\ACS@mcitetrue}
\DeclareOption*{\OptionNotUsed}
\ProcessOptions\relax
\ifACS@natbib
  \ifACS@super
    \RequirePackage[numbers,sort&compress,super]{natbib}
  \else
    \RequirePackage[numbers,sort&compress,round]{natbib}
    \newcommand*{\citenumfont}{\textit}
  \fi
   \ifACS@mcite
     \PackageWarning{achemso}{mcite option incompatible with natbib}
   \fi
   \ACS@mcitefalse
\else
  \ifACS@super
    \RequirePackage[nospace]{overcite}
  \else
    \RequirePackage{cite}
    \renewcommand{\citeleft}{(}
    \renewcommand{\citeright}{)}
    \renewcommand{\citeform}[1]{\emph{#1}}
  \fi
\fi
\@ifpackageloaded{babel}
  {\ACS@notefalse\PackageWarning{achemso}%
    {babel package loaded - note option disabled}}
  {}
\newcommand*{\ACS@biberror}{\PackageError{achemso}%
  {No bibliography name command defined}
  {The document class you have used does not define
    \string\refname\MessageBreak or \string\bibname}}
\@ifundefined{refname}{%
  \@ifundefined{bibname}{%
    \ACS@biberror
  }{%
    \ifACS@note
      \renewcommand*{\bibname}{References and Notes}
    \else
      \renewcommand*{\bibname}{References}
    \fi
  }
}{%
  \ifACS@note
    \renewcommand*{\refname}{References and Notes}
  \fi
}
\ifACS@sctnnmbr
  \RequirePackage[numbib]{tocbibind}
\fi
\ifACS@list
  \ifACS@natbib
    \bibliographystyle{achemlnt}
  \else
    \ifACS@mcite
      \bibliographystyle{achemsolM}
      \RequirePackage{mciteplus}
    \else
      \bibliographystyle{achemsol}
    \fi
  \fi
  \RequirePackage[notcite]{showkeys}
\else
  \ifACS@natbib
    \bibliographystyle{achemnat}
  \else
    \ifACS@mcite
      \bibliographystyle{achemsoM}
      \RequirePackage{mciteplus}
    \else
      \bibliographystyle{achemso}
    \fi
  \fi
\fi
\renewcommand*{\@biblabel}[1]{#1.}
\newcommand*{\ACS@bibwarning}{\PackageWarning{achemso}%
  {Additional bibliographystyle command ignored}}
\renewcommand*{\bibliographystyle}{\ACS@bibwarning\@gobble}
\endinput
%%
%% End of file `achemso.sty'.