summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/chemstyle
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-01-14 00:14:59 +0000
committerKarl Berry <karl@freefriends.org>2009-01-14 00:14:59 +0000
commit1cf000674b16b9f15f3c5112f70c07a08e8bb5de (patch)
tree596418ba5a8a1d2c92c836a6a1aeb9945fed6be7 /Master/texmf-dist/tex/latex/chemstyle
parentc49b4326cde7ef42ae8571be9f7e12dbdf1ec6ac (diff)
chemstyle 1.3d (10jan09)
git-svn-id: svn://tug.org/texlive/trunk@11860 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/chemstyle')
-rw-r--r--Master/texmf-dist/tex/latex/chemstyle/chemscheme.sty2
-rw-r--r--Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty52
2 files changed, 29 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/latex/chemstyle/chemscheme.sty b/Master/texmf-dist/tex/latex/chemstyle/chemscheme.sty
index 461cbe2cb76..6e6a9d43e7c 100644
--- a/Master/texmf-dist/tex/latex/chemstyle/chemscheme.sty
+++ b/Master/texmf-dist/tex/latex/chemstyle/chemscheme.sty
@@ -9,7 +9,7 @@
%% The chemstyle bundle --- Schemes and style for chemistry
%% Maintained by Joseph Wright
%% E-mail: joseph.wright@morningstar2.co.uk
-%% Released under the LaTeX Project Public License v1.3c or later
+%% Released under the LaTeX Project Public License v1.3 or later
%% See http://www.latex-project.org/lppl.txt
%% ----------------------------------------------------------------
%%
diff --git a/Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty b/Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty
index 156c73038fe..7fa7d048d33 100644
--- a/Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty
+++ b/Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty
@@ -15,12 +15,12 @@
%%
\NeedsTeXFormat{LaTeX2e}
\def\cst@id$#1: #2.#3 #4 #5-#6-#7 #8 #9${%
- \def\cst@ver{#5/#6/#7\space v1.3c\space}}
-\cst@id $Id: chemstyle.dtx 50 2008-08-18 16:21:24Z joseph $
+ \def\cst@ver{#5/#6/#7\space v1.3d\space}}
+\cst@id $Id: chemstyle.dtx 51 2009-01-09 16:21:24Z joseph $
\ProvidesPackage{chemstyle}
[\cst@ver Writing chemistry with style]
\RequirePackage{xkeyval}[2005/05/07]
-\RequirePackage{graphicx,varioref,caption,xspace}
+\RequirePackage{amstext,graphicx,varioref,caption,xspace}
\newcommand*{\cst@tempa}{}
\newcommand*{\cst@tempb}{}
\newcommand*{\cst@boolkey}[1]{
@@ -129,27 +129,31 @@
\newcommand*{\cst@radical}[2]{%
\expandafter\DeclareRobustCommand\expandafter*\expandafter{%
\csname #1#2\endcsname}{%
- \ifcst@radhyphen
- \def\cst@hyphen{-}%
- \else
- \let\cst@hyphen\relax
- \fi
- \ifcst@radsuper
- \let\cst@super\textsuperscript
- \else
- \let\cst@super\relax
- \fi
- \ifcst@rademph
- \let\cst@emph\emph
- \else
- \let\cst@emph\relax
- \fi
- \ifcst@radprefix
- \cst@super{\cst@emph{#1}}\cst@hyphen#2%
- \else
- #2\cst@hyphen\cst@super{\cst@emph{#1}}%
- \fi
- \cst@xspace}}
+ \text{%
+ \ifcst@radhyphen
+ \def\cst@hyphen{-}%
+ \else
+ \let\cst@hyphen\relax
+ \fi
+ \ifcst@radsuper
+ \let\cst@super\textsuperscript
+ \else
+ \let\cst@super\relax
+ \fi
+ \ifcst@rademph
+ \let\cst@emph\emph
+ \else
+ \let\cst@emph\relax
+ \fi
+ \ifcst@radprefix
+ \cst@super{\cst@emph{#1}}\cst@hyphen#2%
+ \else
+ #2\cst@hyphen\cst@super{\cst@emph{#1}}%
+ \fi
+ \cst@xspace
+ }%
+ }%
+}
\newcommand*{\cst@xspace}{%
\ifcst@xspace
\expandafter\xspace%