diff options
author | Karl Berry <karl@freefriends.org> | 2008-09-08 00:26:52 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-09-08 00:26:52 +0000 |
commit | 06ebf7d14fd3c483ed229b86d938732cf3f6a5d2 (patch) | |
tree | 9e7ce6c30307798cacf45704443c9de484ab9603 /Master/texmf-dist/tex/latex | |
parent | 883bf95bf548e81277aeb42fc6e26f1926744a3a (diff) |
rsc 3.0 (27aug08)
git-svn-id: svn://tug.org/texlive/trunk@10467 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/rsc/rsc.sty | 89 |
1 files changed, 54 insertions, 35 deletions
diff --git a/Master/texmf-dist/tex/latex/rsc/rsc.sty b/Master/texmf-dist/tex/latex/rsc/rsc.sty index 865d990d08c..2b31377782a 100644 --- a/Master/texmf-dist/tex/latex/rsc/rsc.sty +++ b/Master/texmf-dist/tex/latex/rsc/rsc.sty @@ -6,47 +6,66 @@ %% %% rsc.dtx (with options: `package') %% ---------------------------------------------------------------- -%% The rsc package - BibTeX support for Royal Society of Chemistry -%% and Wiley style article +%% 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.3 or later +%% Released under the LaTeX Project Public License v1.3c 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}} -} +\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'. |