summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/rsc/rsc.sty
blob: 60f8d73ff1386ad5ce33f81c4a3ad340ebc4add4 (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}[2007/10/16 v2.2
  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'.