diff options
author | Karl Berry <karl@freefriends.org> | 2012-01-27 22:58:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-01-27 22:58:58 +0000 |
commit | f23baf3423e986c9124c0bdec38e1c85d61d083c (patch) | |
tree | 0e37d94b876401ac7f883ca6beb19484bd8dbb4f /Master/texmf-dist/source/latex/siunitx/siunitx.dtx | |
parent | 7b8c89e5c2f2d9019dbc399e6a7a0dfbc04500d0 (diff) |
siunitx (27jan12)
git-svn-id: svn://tug.org/texlive/trunk@25217 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/siunitx/siunitx.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/siunitx/siunitx.dtx | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx index 3c63dd6e44f..0681aef60c2 100644 --- a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx +++ b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx @@ -562,6 +562,8 @@ This work consists of the file siunitx.dtx % \opt{reciprocal-positive-first}} %\changes{v2.4i}{2012/01/19}{Bug fix for rounding with large numbers of % decimal places} +%\changes{v2.4j}{2012/01/26}{Leave vertical mode before any document-level +% commands} % %\begin{abstract} % Physical quantities have both numbers and units, and each physical @@ -5015,7 +5017,7 @@ This work consists of the file siunitx.dtx % % The usual preliminaries. % \begin{macrocode} -\ProvidesExplPackage {siunitx} {2012/01/19} {2.4i} +\ProvidesExplPackage {siunitx} {2012/01/26} {2.4j} {A comprehensive (SI) units package} % \end{macrocode} % @@ -15420,6 +15422,7 @@ This work consists of the file siunitx.dtx % correct then print it. % \begin{macrocode} \NewDocumentCommand \num { o m } { + \leavevmode \group_begin: \IfNoValueF {#1} { \keys_set:nn { siunitx } {#1} } @@ -15433,6 +15436,7 @@ This work consists of the file siunitx.dtx % Lists of numbers are trivially easy to work with. % \begin{macrocode} \NewDocumentCommand \numlist { o > { \SplitList { ; } } m } { + \leavevmode \group_begin: \IfNoValueF {#1} { \keys_set:nn { siunitx } {#1} } @@ -15447,6 +15451,7 @@ This work consists of the file siunitx.dtx % anything complicated. % \begin{macrocode} \NewDocumentCommand \numrange { o m m } { + \leavevmode \group_begin: \IfNoValueF {#1} { \keys_set:nn { siunitx } {#1} } @@ -15466,6 +15471,7 @@ This work consists of the file siunitx.dtx % the differences between the two make this less desirable. % \begin{macrocode} \NewDocumentCommand \SIlist { o > { \SplitList { ; } } m m } { + \leavevmode \group_begin: \IfNoValueTF {#1} { \siunitx_list_units:nnn {#2} {#3} { } } @@ -15476,6 +15482,7 @@ This work consists of the file siunitx.dtx \group_end: } \NewDocumentCommand \SIrange { o m m m } { + \leavevmode \group_begin: \IfNoValueTF {#1} { \siunitx_range_unit:nnnn {#4} { } {#2} {#3} } @@ -15493,6 +15500,7 @@ This work consists of the file siunitx.dtx % ones. % \begin{macrocode} \NewDocumentCommand \SI { o m o m } { + \leavevmode \group_begin: \IfNoValueTF {#1} { \siunitx_combined:nnnn { } {#2} {#3} {#4} } @@ -15522,6 +15530,7 @@ This work consists of the file siunitx.dtx % after \enquote{collection}. % \begin{macrocode} \NewDocumentCommand \tablenum { o m } { + \leavevmode \IfNoValueF {#1} { \keys_set:nn { siunitx } {#1} } \bool_if:NTF \l_siunitx_number_parse_bool @@ -15541,6 +15550,7 @@ This work consists of the file siunitx.dtx % set for a unit can be overridden on a one-off basis. % \begin{macrocode} \NewDocumentCommand \si { o m } { + \leavevmode \group_begin: \IfNoValueTF {#1} { \siunitx_unit_output:nn {#2} { } } @@ -16254,7 +16264,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-version-1.cfg} {2012/01/19} {2.4i} +\ProvidesExplFile {siunitx-version-1.cfg} {2012/01/26} {2.4j} {siunitx: Version 1 settings} % \end{macrocode} % @@ -17199,7 +17209,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-abbreviations.cfg} {2012/01/19} {2.4i} +\ProvidesExplFile {siunitx-abbreviations.cfg} {2012/01/26} {2.4j} {siunitx: Abbreviated units} % \end{macrocode} % @@ -17381,7 +17391,7 @@ This work consists of the file siunitx.dtx % \end{macrocode} % % \begin{macrocode} -\ProvidesExplFile {siunitx-binary.cfg} {2012/01/19} {2.4i} +\ProvidesExplFile {siunitx-binary.cfg} {2012/01/26} {2.4j} {siunitx: Binary units} % \end{macrocode} % |