summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-10-14 00:16:08 +0000
committerKarl Berry <karl@freefriends.org>2008-10-14 00:16:08 +0000
commitffd93a6c1bfb4edf3ba8d165d5f976166fd0dec6 (patch)
tree7bfc23453764bdb0574b1a81cbe9c6f41dfa9e50 /Master/texmf-dist/tex/latex/siunitx/siunitx.sty
parent5dd252b48248fa6831f6b7173fd54e9e9b24caf9 (diff)
siunitx update (13oct08)
git-svn-id: svn://tug.org/texlive/trunk@10967 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.sty11
1 files changed, 9 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
index a02960a930e..f99fb1053d3 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/09/28 v1.1a A comprehensive (SI) units package]
+ [2008/10/13 v1.1b A comprehensive (SI) units package]
\begingroup
\@ifundefined{eTeXversion}
{\PackageError{siunitx}
@@ -3317,6 +3317,11 @@
\renewcommand*{\si@tempa}{#1}%
\expandafter\ifx
\csname si@unt@lastadd\si@unt@checkstack\endcsname\si@tempa
+ \renewcommand*{\si@tempa}{prefix}%
+ \expandafter\ifx\csname si@unt@lastadd\si@unt@checkstack
+ \endcsname\si@tempa
+ \si@log@warn{Two prefixes found: only first printed}%
+ \fi
\expandafter\@gobbletwo
\else
\expandafter\si@unt@preplussp
@@ -3522,7 +3527,9 @@
\newunit{\ampere}{A}
\newunit{\kelvin}{K}
\newunit{\candela}{cd}
-\newpower{\Square}{2}
+\AtBeginDocument{
+ \@ifundefined{Square}{%
+ \newpower{\Square}{2}}{}}
\newpower{\ssquare}{2}
\newpower[post]{\squared}{2}
\newpower{\cubic}{3}