summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/rsc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-12-26 23:29:48 +0000
committerKarl Berry <karl@freefriends.org>2006-12-26 23:29:48 +0000
commit729ce53995492a87f35451ca5aa1075beca00c6b (patch)
tree30494c8c41d92c218424b0893754a1e9963cb38c /Master/texmf-dist/tex/latex/rsc
parentbbd8230e72add61180e3071b90bf5c6a48908650 (diff)
rsc update
git-svn-id: svn://tug.org/texlive/trunk@2956 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/rsc')
-rw-r--r--Master/texmf-dist/tex/latex/rsc/rsc.sty93
1 files changed, 93 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/rsc/rsc.sty b/Master/texmf-dist/tex/latex/rsc/rsc.sty
new file mode 100644
index 00000000000..30d162cfa96
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/rsc/rsc.sty
@@ -0,0 +1,93 @@
+%%
+%% This is file `rsc.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% rsc.dtx (with options: `package')
+%% ----------------------------------------------------------------
+%% The rsc package - BibTeX and macro support for Royal Society
+%% of Chemistry style articles
+%% Maintained by Joseph A. Wright
+%% E-mail: joseph.wright@morningstar2.co.uk
+%% Released under the GNU General Public License
+%% See http://www.gnu.org/licenses/gpl.txt
+%% ----------------------------------------------------------------
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{rsc}[2006/11/08 v1.0 Useful chemistry functions]
+\RequirePackage{unitsdef,graphicx,amssymb,fixltx2e,float,varioref}
+\newif\ifRSC@floatcentre\RSC@floatcentretrue
+\DeclareOption{floatleft}{\global\RSC@floatcentrefalse}
+\DeclareOption{fl}{\global\RSC@floatcentrefalse}
+\newif\ifRSC@captioncentre\RSC@captioncentretrue
+\DeclareOption{captionleft}{\global\RSC@captioncentrefalse}
+\DeclareOption{cl}{\global\RSC@captioncentrefalse}
+\newif\ifRSC@chapter\RSC@chapterfalse
+\DeclareOption{chapter}{\global\RSC@chaptertrue}
+\ProcessOptions
+\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}{Pr\textsuperscript{i}}
+\newcommand*{\iBu}{Bu\textsuperscript{i}}
+\newcommand*{\tBu}{Bu\textsuperscript{t}}
+\ifRSC@chapter
+ \ifx\chapter\@undefined
+ \@latex@warning{No chapters in this document}
+ \newfloat{Scheme}{htbp}{los}
+ \newfloat{Figure}{htbp}{lof}
+ \newfloat{Table}{htbp}{lot}
+ \else
+ \newfloat{Scheme}{htbp}{los}[chapter]
+ \newfloat{Figure}{htbp}{lof}[chapter]
+ \newfloat{Table}{htbp}{lot}[chapter]
+ \fi
+\else
+ \newfloat{Scheme}{htbp}{los}
+ \newfloat{Figure}{htbp}{lof}
+ \newfloat{Table}{htbp}{lot}
+\fi
+\floatname{Scheme}{Scheme}
+\floatname{Table}{Table}
+\floatname{Figure}{Fig.}
+\ifRSC@captioncentre
+ \renewcommand\floatc@plain[2]%
+ {\setbox\@tempboxa\hbox{\textbf{{\@fs@cfont #1}}\quad #2}%
+ \ifdim\wd\@tempboxa>\hsize {\textbf{\@fs@cfont #1}}\quad #2\par
+ \else\hbox to\hsize{\hfil\box\@tempboxa\hfil}\fi}
+\else
+ \renewcommand\floatc@plain[2]{\textbf{{\@fs@cfont #1}}\quad #2}
+\fi
+\ifRSC@floatcentre
+ \newenvironment{scheme}[1][htbp]{\begin{Scheme}[#1]\centering}
+ {\end{Scheme}}
+ \renewenvironment{figure}[1][htbp]{\begin{Figure}[#1]\centering}
+ {\end{Figure}}
+ \renewenvironment{table}[1][htbp]{\begin{Table}[#1]\centering}
+ {\end{Table}}
+\else
+ \newenvironment{scheme}[1][htbp]{\begin{Scheme}[#1]\flushleft}
+ {\end{Scheme}}
+ \renewenvironment{figure}[1][htbp]{\begin{Figure}[#1]\flushleft}
+ {\end{Figure}}
+ \renewenvironment{table}[1][htbp]{\begin{Table}[#1]\flushleft}
+ {\end{Table}}
+\fi
+\newcommand*{\listofschemes}[1][List of Schemes]%
+ {\listof{Scheme}{#1}}
+\renewcommand*{\listoffigures}[1][List of Figures]%
+ {\listof{Figure}{#1}}
+\renewcommand*{\listoftables}[1][List of Tables]%
+ {\listof{Table}{#1}}
+\labelformat{Scheme}{Scheme~#1}
+\labelformat{Figure}{Fig.~#1}
+\labelformat{Table}{Table~#1}
+\endinput
+%%
+%% End of file `rsc.sty'.