summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
diff options
context:
space:
mode:
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%