summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/chemstyle
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-08-15 18:53:30 +0000
committerKarl Berry <karl@freefriends.org>2007-08-15 18:53:30 +0000
commite48b37809878cd01b7b78357f6baa132ba1e1533 (patch)
tree30a51b6da2feda0c507ee478d1ac9ddbbd676b0a /Master/texmf-dist/tex/latex/chemstyle
parent6aa70f95ff129e91c74fee91d02c115047c34ceb (diff)
new latex package chemstyle (13aug07)
git-svn-id: svn://tug.org/texlive/trunk@4736 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/chemstyle')
-rw-r--r--Master/texmf-dist/tex/latex/chemstyle/angew.jdf26
-rw-r--r--Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty181
-rw-r--r--Master/texmf-dist/tex/latex/chemstyle/ic.jdf21
-rw-r--r--Master/texmf-dist/tex/latex/chemstyle/jacs.jdf29
-rw-r--r--Master/texmf-dist/tex/latex/chemstyle/none.jdf28
-rw-r--r--Master/texmf-dist/tex/latex/chemstyle/rsc.jdf25
6 files changed, 310 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/chemstyle/angew.jdf b/Master/texmf-dist/tex/latex/chemstyle/angew.jdf
new file mode 100644
index 00000000000..c6da68fda0b
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/chemstyle/angew.jdf
@@ -0,0 +1,26 @@
+%%
+%% This is file `angew.jdf',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% chemstyle.dtx (with options: `angew')
+%% ----------------------------------------------------------------
+%% chemstyle - Writing chemistry with style
+%% 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
+%% ----------------------------------------------------------------
+
+\ProvidesFile{cst-angew.def}[2007/08/113 v1.0]
+\RequirePackage[labelsep=period,labelfont={bf,it},font=sf]{caption}
+\captionsetup[table]{labelsep=colon}
+\captionsetup{singlelinecheck=off}
+\let\cst@emph\emph
+\def\cst@hyph{}
+\let\cst@super\relax
+\cst@prefixtrue
+\endinput
+%%
+%% End of file `angew.jdf'.
diff --git a/Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty b/Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty
new file mode 100644
index 00000000000..cb3be73902a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty
@@ -0,0 +1,181 @@
+%%
+%% This is file `chemstyle.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% chemstyle.dtx (with options: `package')
+%% ----------------------------------------------------------------
+%% chemstyle - Writing chemistry with style
+%% 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
+%% ----------------------------------------------------------------
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{chemstyle}
+ [2007/08/13 v1.0 Writing chemistry with style]
+\ifx\fg\@undefined
+\else
+ \ifx\fg\relax
+ \else
+ \let\cst@fg\fg
+ \let\fg\@undefined
+ \fi
+\fi
+\RequirePackage{graphicx,amssymb,fixltx2e,varioref,xspace,unitsdef}
+\ifx\cst@fg\@undefined
+ \let\fg\@undefined
+\else
+ \let\fg\cst@fg
+\fi
+\AtBeginDocument{%
+ \ifx\fg\@undefined
+ \newcommand{\fg}{\femtogram}
+ \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}}}}
+\let\cst@emph\relax
+\def\cst@hyph{}
+\let\cst@super\relax
+\newif \ifcst@prefix \cst@prefixtrue
+\def\cst@radical#1#2{%
+ \expandafter\newcommand\expandafter{\csname #1#2\endcsname}{}%
+ \expandafter\DeclareRobustCommand\expandafter{%
+ \csname #1#2\endcsname}{%
+ \ifcst@prefix
+ \cst@super{\cst@emph{#1}}\cst@hyph#2%
+ \else
+ #2\cst@hyph\cst@super{\cst@emph{#1}}%
+ \fi%
+ \xspace
+ }
+}
+\cst@radical{n}{Pr}%
+\cst@radical{i}{Pr}%
+\cst@radical{n}{Bu}%
+\cst@radical{i}{Bu}%
+\cst@radical{s}{Bu}%
+\cst@radical{t}{Bu}%
+\newif \ifcst@notes \cst@notestrue
+\DeclareOption{ch}{\ExecuteOptions{chapter}}
+\DeclareOption{chapter}%
+ {\PassOptionsToPackage{chapter}{chemscheme}}
+\DeclareOption{chemcompounds}%
+ {\PassOptionsToPackage{chemcompounds}{chemscheme}}
+\DeclareOption{nonotes}{\cst@notesfalse}
+\let\cst@option\relax
+\DeclareOption*{%
+ \ifx\cst@option\relax\else
+ \PackageWarning{chemstyle}
+ {Extra option \cst@option\space ignored}
+ \fi
+ \edef\cst@option{\CurrentOption}
+}
+\ProcessOptions*
+\RequirePackage{chemscheme}
+\@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}
+\floatcontentscentre
+\labelformat{scheme}{\schemename~#1}
+\labelformat{figure}{\figurename~#1}
+\labelformat{table}{\tablename~#1}
+\ifx\latin\@undefined
+ \newcommand{\latinemphon}{\let\latin\emph}
+ \newcommand{\latinemphoff}{\let\latin\relax}
+ \latinemphon
+\else
+ \let\latinemphon\relax
+ \let\latinemphoff\relax
+\fi
+
+\providecommand{\etc}{\latin{etc}\@ifnextchar.{}{.\xspace}}
+\providecommand{\invacuo}{\latin{in vacuo}\xspace}
+\providecommand{\etal}{\latin{et~al}\@ifnextchar.{}{.\xspace}}
+\providecommand{\eg}{\latin{e.g}\@ifnextchar.{}{.\xspace}}
+\providecommand{\ie}{\latin{i.e}\@ifnextchar.{}{.\xspace}}
+\newif \ifcst@notesbefore \cst@notesbeforetrue
+\def\cst@name@refs#1#2#3{%
+ \ifcst@notesbefore
+ #3\ #2\ #1%
+ \else
+ #1\ #2\ #3%
+ \fi
+}
+\def\cst@language{english}
+\ifx\refname\@undefined
+ \ifx\bibname\@undefined
+ \PackageWarning{chemstyle}%
+ {No bibliography name command defined in document class}
+ \def\cst@namerefs#1#2#3#4{}%
+ \else
+ \def\cst@refsection{\bibname}
+ \fi
+ \else
+ \def\cst@refsection{\refname}
+\fi
+\ifx\cst@namerefs\@undefined
+ \def\cst@namerefs#1#2#3#4{%
+ \ifcst@notes%
+ \def\cst@language@check{#1}
+ \ifx\cst@language\cst@language@check
+ \expandafter\renewcommand\expandafter{\cst@refsection}%
+ {\cst@name@refs{#2}{#3}{#4}}%
+ \fi
+ \AtBeginDocument{%
+ \@ifpackageloaded{babel}{%
+ \expandafter\addto\expandafter{\csname captions#1\endcsname}%
+ {\expandafter\renewcommand\expandafter{\cst@refsection}%
+ {\cst@name@refs{#2}{#3}{#4}}}%
+ \expandafter\selectlanguage\expandafter{\languagename}}
+ {}}
+ \else%
+ \ifx#1\cst@language
+ \expandafter\renewcommand\expandafter{\cst@refsection}{#2}%
+ \fi
+ \AtBeginDocument{%
+ \@ifpackageloaded{babel}{%
+ \expandafter\addto\expandafter{\csname captions#1\endcsname}%
+ {\expandafter\renewcommand\expandafter{\cst@refsection}{#2}}%
+ \expandafter\selectlanguage\expandafter{\languagename}}%
+ {}}
+ \fi%
+ }
+\fi
+\cst@namerefs{english}{References}{and}{Notes}
+\cst@namerefs{UKenglish}{References}{and}{Notes}
+\cst@namerefs{ngerman}{Literatur}{und}{Notizen}
+\cst@namerefs{french}{R\'ef\'erences}{et}{Notes}
+\ifx\cst@option\relax
+ \PackageWarning{chemstyle}
+ {You didn't say which style to use \MessageBreak
+ Defaulting to the ``no change'' style: none}
+ \def\cst@option{none}
+\fi
+\InputIfFileExists{\cst@option.jdf}
+ {\PackageInfo{chemstyle}
+ {Loaded \cst@option.jdf}}
+ {\PackageWarning{chemstyle}
+ {Required style \cst@option\space does not exist}}
+\endinput
+%%
+%% End of file `chemstyle.sty'.
diff --git a/Master/texmf-dist/tex/latex/chemstyle/ic.jdf b/Master/texmf-dist/tex/latex/chemstyle/ic.jdf
new file mode 100644
index 00000000000..7735097cc98
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/chemstyle/ic.jdf
@@ -0,0 +1,21 @@
+%%
+%% This is file `ic.jdf',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% chemstyle.dtx (with options: `ic')
+%% ----------------------------------------------------------------
+%% chemstyle - Writing chemistry with style
+%% 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
+%% ----------------------------------------------------------------
+
+\ProvidesFile{ic.jdf}[2007/08/13 v1.0]
+\input {jacs.jdf}
+\captionsetup{textfont=rm}
+\endinput
+%%
+%% End of file `ic.jdf'.
diff --git a/Master/texmf-dist/tex/latex/chemstyle/jacs.jdf b/Master/texmf-dist/tex/latex/chemstyle/jacs.jdf
new file mode 100644
index 00000000000..fb685ef4c15
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/chemstyle/jacs.jdf
@@ -0,0 +1,29 @@
+%%
+%% This is file `jacs.jdf',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% chemstyle.dtx (with options: `jacs')
+%% ----------------------------------------------------------------
+%% chemstyle - Writing chemistry with style
+%% 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
+%% ----------------------------------------------------------------
+
+\ProvidesFile{jacs.jdf}[2007/08/13 v1.0]
+\RequirePackage[labelfont={bf,it,sf},textfont=sf]{caption}
+\DeclareCaptionLabelSeparator{perquad}{.\quad}
+\captionsetup{labelsep=perquad}
+\captionsetup[figure]{textfont=rm}
+\captionsetup{singlelinecheck=off}
+\let\cst@emph\emph
+\def\cst@hyph{}
+\let\cst@super\textsuperscript
+\cst@prefixtrue \floatstyle{plaintop} \restylefloat{scheme}
+\floatstyle{plain} \latinemphoff \cst@notesbeforefalse
+\endinput
+%%
+%% End of file `jacs.jdf'.
diff --git a/Master/texmf-dist/tex/latex/chemstyle/none.jdf b/Master/texmf-dist/tex/latex/chemstyle/none.jdf
new file mode 100644
index 00000000000..2d4eb3f1fd3
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/chemstyle/none.jdf
@@ -0,0 +1,28 @@
+%%
+%% This is file `none.jdf',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% chemstyle.dtx (with options: `none')
+%% ----------------------------------------------------------------
+%% chemstyle - Writing chemistry with style
+%% 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
+%% ----------------------------------------------------------------
+
+\ProvidesFile{none.jdf}[2007/08/13 v1.0]
+\RequirePackage{caption}
+\floatstyle{plain}
+\restylefloat{table}
+\labelformat{scheme}{#1}
+\labelformat{figure}{#1}
+\labelformat{table}{#1}
+\floatplacement{table}{tbp}
+\floatplacement{scheme}{tbp}
+\floatplacement{figure}{tbp}
+\endinput
+%%
+%% End of file `none.jdf'.
diff --git a/Master/texmf-dist/tex/latex/chemstyle/rsc.jdf b/Master/texmf-dist/tex/latex/chemstyle/rsc.jdf
new file mode 100644
index 00000000000..d6527b386dc
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/chemstyle/rsc.jdf
@@ -0,0 +1,25 @@
+%%
+%% This is file `rsc.jdf',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% chemstyle.dtx (with options: `rsc')
+%% ----------------------------------------------------------------
+%% chemstyle - Writing chemistry with style
+%% 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
+%% ----------------------------------------------------------------
+
+\ProvidesFile{rsc.jdf}[2007/08/13 v1.0]
+\renewcommand{\figurename}{Fig.}
+\RequirePackage[labelsep=quad,labelfont=bf]{caption}
+\let\cst@emph\relax
+\def\cst@hyph{}
+\let\cst@super\textsuperscript
+\cst@prefixfalse
+\endinput
+%%
+%% End of file `rsc.jdf'.