summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/rsc/rsc.sty
blob: 865d990d08c8b30d1c3d8414c4a45adf1cad9e08 (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
%%
%% This is file `rsc.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% rsc.dtx  (with options: `package')
%%  ----------------------------------------------------------------
%%  The rsc package - BibTeX support for Royal Society of Chemistry
%%  and Wiley style article
%%  Maintained by Joseph Wright
%%  E-mail: joseph.wright@morningstar2.co.uk
%%  Released under the LaTeX Project Public License v1.3 or later
%%  See http://www.latex-project.org/lppl.txt
%%  ----------------------------------------------------------------
%% 
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{rsc}[2008/01/16 v2.2b
  Useful chemistry functions]
\PackageInfo{rsc}{The rsc package has been superseded!}
\DeclareOption{floatleft}{\AtEndOfPackage{\floatcontentsleft}}
\DeclareOption{fl}{\ExecuteOptions{floatleft}}
\DeclareOption{natbib}{\AtEndOfPackage{%
  \RequirePackage[numbers,sort&compress,super]{natbib}}}
\DeclareOption{rsc}{%
  \PassOptionsToPackage{\CurrentOption}{chemstyle}%
  \def\@biblabel#1{#1}%
  \PackageInfo{rsc}%
    {Loading the chemstyle package with the `rsc' option}%
}
\DeclareOption{angew}{%
  \PassOptionsToPackage{\CurrentOption}{chemstyle}%
  \PackageInfo{rsc}%
    {Loading the chemstyle package with the `angew' option}%
  \AtBeginDocument{%
    \@ifpackageloaded{natbib}
      {\renewcommand*\NAT@open{[}\renewcommand*\NAT@close{]}}
      {\def\@citess#1{\textsuperscript{[#1]}}}
  }
}
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{chemstyle}}
\ExecuteOptions{rsc}
\ProcessOptions\relax
\RequirePackage{chemstyle}
\floatcontentscentre
\AtEndOfPackage{
  \@ifpackageloaded{natbib}{}
    {\RequirePackage[super]{cite}}
}
\endinput
%%
%% End of file `rsc.sty'.