diff options
author | Karl Berry <karl@freefriends.org> | 2009-01-14 00:14:59 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-01-14 00:14:59 +0000 |
commit | 1cf000674b16b9f15f3c5112f70c07a08e8bb5de (patch) | |
tree | 596418ba5a8a1d2c92c836a6a1aeb9945fed6be7 /Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty | |
parent | c49b4326cde7ef42ae8571be9f7e12dbdf1ec6ac (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/chemstyle.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/chemstyle/chemstyle.sty | 52 |
1 files changed, 28 insertions, 24 deletions
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% |