blob: 2b31377782a23fb7dc34db76fd47e899e8e1135d (
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
|
%%
%% This is file `rsc.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% rsc.dtx (with options: `package')
%% ----------------------------------------------------------------
%% The rsc package --- BibTeX styles for Royal Society of Chemistry
%% and Wiley journals
%% 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{rsc}
[2008/08/27 v3.0 Support for RSC and Wiley journals]
\RequirePackage{mciteplus,kvoptions}
\SetupKeyvalOptions{
family = rsc,
prefix = rsc@}
\DeclareBoolOption{super}
\DeclareBoolOption{usetitle}
\DeclareBoolOption{usedoi}
\DeclareStringOption{maxauthors}
\setkeys{rsc}{
maxauthors = 0,
usetitle = false,
usedoi = false,
super = true}
\ProcessKeyvalOptions{rsc}
\newcommand*{\rsc@prefix}{rsc-}
\edef\rsc@msg{%
This is an auxiliary file used by the `rsc' package.^^J%
This file may safely be deleted. It will be recreated as
required.^^J}
\if@filesw
\newwrite\rsc@out
\newcommand*\rsc@stream{\rsc@prefix\jobname.bib}%
\immediate\openout\rsc@out\rsc@stream\relax
\immediate\write\rsc@out{\rsc@msg}%
\edef\@tempa#1#2{\space\space#1\space=\space"#2",^^J}%
\immediate\write\rsc@out{%
@Control\string{rsc-control,^^J%
\@tempa{ctrl-use-title}{\ifrsc@usetitle yes\else no\fi}%
\@tempa{ctrl-etal-number}{\rsc@maxauthors}%
\@tempa{ctrl-use-doi-all}{\ifrsc@usedoi yes\else no\fi}%
\string}^^J}%
\fi
\AtBeginDocument{
\let\rsc@bibliography\bibliography
\renewcommand*{\bibliography}[1]{%
\rsc@bibliography{\rsc@prefix\jobname,#1}}}
\g@addto@macro{\document}{%
\if@filesw
\immediate\write\@auxout{%
\string\citation\string{rsc-control\string}}%
\fi}
\ifrsc@super
\RequirePackage[sort&compress,numbers,super]{natbib}
\IfFileExists{natmove.sty}
{\RequirePackage{natmove}}
{}
\else
\RequirePackage[sort&compress,numbers]{natbib}
\fi
\endinput
%%
%% End of file `rsc.sty'.
|