From 1cf000674b16b9f15f3c5112f70c07a08e8bb5de Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 14 Jan 2009 00:14:59 +0000 Subject: chemstyle 1.3d (10jan09) git-svn-id: svn://tug.org/texlive/trunk@11860 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/chemstyle/chemscheme.sty | 2 +- .../texmf-dist/tex/latex/chemstyle/chemstyle.sty | 52 ++++++++++++---------- 2 files changed, 29 insertions(+), 25 deletions(-) (limited to 'Master/texmf-dist/tex') 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% -- cgit v1.2.3