summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-12-01 00:24:27 +0000
committerKarl Berry <karl@freefriends.org>2008-12-01 00:24:27 +0000
commitd84817b2629f67853c891272ea657bdf162b275f (patch)
tree717247222834e520432b3160327db6af3eb1b93d /Master/texmf-dist/tex/latex/siunitx/siunitx.sty
parentac7c62a27fe635d3f7ec3d9aaa89aae0446ba156 (diff)
siunitx 1.1h
git-svn-id: svn://tug.org/texlive/trunk@11484 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/siunitx/siunitx.sty')
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/siunitx.sty33
1 files changed, 32 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
index b860c1116f3..122cfd80055 100644
--- a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
+++ b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
@@ -15,7 +15,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{siunitx}
- [2008/11/26 v1.1g A comprehensive (SI) units package]
+ [2008/11/31 v1.1h A comprehensive (SI) units package]
\begingroup
\@ifundefined{eTeXversion}
{\PackageError{siunitx}
@@ -2465,6 +2465,37 @@
\newcolumntype{S}{}
\newcolumntype{s}{}
\NC@list\expandafter{\si@tempa}
+\AtBeginDocument{
+ \@ifpackageloaded{colortbl}{%
+ \renewcommand*{\@classz}{%
+ \@classx
+ \@tempcnta \count@
+ \prepnext@tok
+ \expandafter\CT@extract\the\toks\@tempcnta\columncolor!\@nil
+ \@addtopreamble{%
+ \setbox\z@\hbox\bgroup\bgroup
+ \ifcase\@chnum
+ \hfil\d@llarbegin\insert@column\d@llarend\hfil\or
+ \d@llarbegin\insert@column\d@llarend\hfill\or
+ \hfill\kern\z@\d@llarbegin\insert@column\d@llarend\or
+ $\vcenter\@startpbox{\@nextchar}\insert@column\@endpbox$\or
+ \vtop\@startpbox{\@nextchar}\insert@column\@endpbox\or
+ \vbox\@startpbox{\@nextchar}\insert@column\@endpbox
+ \fi
+ \egroup\egroup
+ \begingroup
+ \CT@setup
+ \CT@column@color
+ \CT@row@color
+ \CT@cell@color
+ \CT@do@color
+ \endgroup
+ \@tempdima\ht\z@
+ \advance\@tempdima\minrowclearance
+ \vrule\@height\@tempdima\@width\z@
+ \unhbox\z@}%
+ \prepnext@tok}%
+ }{}}
\renewcommand*{\NC@rewrite@S}[1][]{%
\edef\si@tempa{\the\@temptokena
>{\noexpand\si@tab@begin@S[#1]}c%