diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/rsc/rsc.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/rsc/rsc.sty | 128 |
1 files changed, 36 insertions, 92 deletions
diff --git a/Master/texmf-dist/tex/latex/rsc/rsc.sty b/Master/texmf-dist/tex/latex/rsc/rsc.sty index 6fe4351a872..60f8d73ff13 100644 --- a/Master/texmf-dist/tex/latex/rsc/rsc.sty +++ b/Master/texmf-dist/tex/latex/rsc/rsc.sty @@ -6,103 +6,47 @@ %% %% rsc.dtx (with options: `package') %% ---------------------------------------------------------------- -%% The rsc package - BibTeX and macro support for Royal Society -%% of Chemistry and Wiley chemistry articles +%% 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 GNU General Public License -%% See http://www.gnu.org/licenses/gpl.txt +%% Released under the LaTeX Project Public License v1.3 or later +%% See http://www.latex-project.org/lppl.txt %% ---------------------------------------------------------------- - +%% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{rsc}[2007/08/24 v2.1a +\ProvidesPackage{rsc}[2007/10/16 v2.2 Useful chemistry functions] -\RequirePackage{unitsdef,graphicx,amssymb,fixltx2e,varioref} -\newif \ifRSC@fl \RSC@flfalse -\newif \ifRSC@cl \RSC@clfalse -\newif \ifRSC@chapter \RSC@chapterfalse -\newif \ifRSC@angew \RSC@angewfalse -\newif \ifRSC@natbib \RSC@natbibfalse -\DeclareOption{floatleft}{\global\RSC@fltrue} -\DeclareOption{fl}{\global\RSC@fltrue} -\DeclareOption{captionleft}{\global\RSC@cltrue} -\DeclareOption{cl}{\global\RSC@cltrue} -\DeclareOption{chapter}{\global\RSC@chaptertrue% - \PassOptionsToPackage{chapter}{chemscheme}} -\DeclareOption{ch}{\global\RSC@chaptertrue% - \PassOptionsToPackage{chapter}{chemscheme}} -\DeclareOption{angew}{\global\RSC@angewtrue% - \global\RSC@cltrue} -\DeclareOption{natbib}{\global\RSC@natbibtrue} -\DeclareOption{chemcompounds}% - {\PassOptionsToPackage{chemcompounds}{chemscheme}} -\ProcessOptions -\RequirePackage{chemscheme} -\ifRSC@natbib - \RequirePackage[numbers,sort&compress,super]{natbib} -\else - \RequirePackage[super]{cite} -\fi -\newunit{\cubiccentimeter}{\cm\unitsuperscript{3}} -\newcommand*{\cmc}{\cubiccentimeter} -\newcommand*{\Hz}{\hertz} -\newunit{\Molar}{\textsc{m}} -\newunit{\molar}{\mole\unitsep\dm\unitsuperscript{--3}} -\newunit{\mmHg}{mm\unitsep{}Hg} -\newcommand*{\standardstate}% - {\textsuperscript{\rotatebox[origin=c]{140.8}% - {\ensuremath{\varnothing}}}} -\newcommand*{\iPr}% - {\ifRSC@angew\emph{i}Pr\else Pr\textsuperscript{i}\fi} -\newcommand*{\iBu}% - {\ifRSC@angew\emph{i}Bu\else Bu\textsuperscript{i}\fi} -\newcommand*{\sBu}% - {\ifRSC@angew\emph{s}Bu\else Bu\textsuperscript{s}\fi} -\newcommand*{\tBu}% - {\ifRSC@angew\emph{t}Bu\else Bu\textsuperscript{t}\fi} -\ifRSC@angew - \ifRSC@natbib - \renewcommand\NAT@open{[}\renewcommand\NAT@close{]} - \else - \def\@citess#1{\textsuperscript{[#1]}} - \fi - \else - \def\@biblabel#1{#1} -\fi -\ifRSC@angew - \RequirePackage[labelsep=period,labelfont=bf]{caption} - \captionsetup[table]{labelsep=colon} -\else - \RequirePackage[labelsep=quad,labelfont=bf]{caption} -\fi -\ifRSC@cl - \captionsetup{singlelinecheck=off} -\else -\fi -\ifRSC@angew -\else - \renewcommand{\figurename}{Fig.} -\fi -\@ifclassloaded{memoir} - {\let\newfloat\@undefined - \RequirePackage{float}} - {} -\floatstyle{plaintop} -\restylefloat{table} -\floatstyle{plain} -\restylefloat{scheme} -\restylefloat{figure} -\floatplacement{table}{htbp} -\floatplacement{scheme}{htbp} -\floatplacement{figure}{htbp} -\ifRSC@fl - \floatcontentsleft -\else - \floatcontentscentre -\fi -\labelformat{scheme}{\schemename~#1} -\labelformat{figure}{\figurename~#1} -\labelformat{table}{\tablename~#1} +\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'. |