summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/siunitx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-09-12 21:25:14 +0000
committerKarl Berry <karl@freefriends.org>2015-09-12 21:25:14 +0000
commitcf9a1b30d0817d49c7ae25fb6b0d71d53b22d661 (patch)
treedf9a29d58eee4dd84790363aa28836608c524b41 /Master/texmf-dist/source/latex/siunitx
parentbfc8d9a37bf1ca7b4f5e97f270877f83158b665d (diff)
siunitx (12sep15)
git-svn-id: svn://tug.org/texlive/trunk@38362 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/siunitx')
-rw-r--r--Master/texmf-dist/source/latex/siunitx/siunitx.dtx92
1 files changed, 49 insertions, 43 deletions
diff --git a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
index 877c88caf10..1f659451e52 100644
--- a/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
+++ b/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
@@ -125,7 +125,7 @@ This work consists of the file siunitx.dtx
\fi
%</internal>
%<*driver|package>
-\RequirePackage{expl3}[2015/03/01]
+\RequirePackage{expl3}[2015/09/11]
\RequirePackage{xparse}
%</driver|package>
%<*driver>
@@ -638,6 +638,7 @@ This work consists of the file siunitx.dtx
% is set}
% \changes{v2.6j}{2015/09/01}{Print $\pm$ correctly when
% \opt{exponent-to-prefix} is set}
+% \changes{v2.6k}{2015/09/12}{Track \pkg{expl3} changes}
%
%\begin{abstract}
% Physical quantities have both numbers and units, and each physical
@@ -5161,7 +5162,7 @@ This work consists of the file siunitx.dtx
%
% The usual preliminaries.
% \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2015/09/01} {2.6j}
+\ProvidesExplPackage {siunitx} {2015/09/12} {2.6k}
{A comprehensive (SI) units package}
% \end{macrocode}
%
@@ -5169,7 +5170,7 @@ This work consists of the file siunitx.dtx
% This will also trap any problems with \pkg{l3packages} (as the two are now
% tied together, version-wise).
% \begin{macrocode}
-\@ifpackagelater { expl3 } { 2015/03/01 }
+\@ifpackagelater { expl3 } { 2015/09/11 }
{ }
{
\PackageError { siunitx } { Support~package~expl3~too~old }
@@ -5670,7 +5671,7 @@ This work consists of the file siunitx.dtx
{
\@ifpackageloaded { bidi }
{
- \xetex_if_engine:T
+ \sys_if_engine_xetex:T
{ \cs_set_protected:Npn \@@_ensure_ltr:n #1 { \LRE {#1} } }
}
{ }
@@ -12348,13 +12349,16 @@ This work consists of the file siunitx.dtx
\@@_unit_format_literal_extras_aux:nN { 197 }
\SIUnitSymbolAngstrom
}
-\cs_new_protected:Npn
- \@@_unit_format_literal_extras_aux:nN #1#2 {
- \char_set_lccode:nn { `\@ } {#1}
- \tl_to_lowercase:n
- { \tl_replace_all:NnV \l_@@_unit_tl { @ } #2 }
-}
-\pdftex_if_engine:T
+\cs_new_protected:Npn \@@_unit_format_literal_extras_aux:nN #1#2
+ {
+ \tl_replace_all:Nnc \l_@@_unit_tl
+ { \char_generate:nn { #1 } { 12 } }
+ }
+\bool_if:nF
+ {
+ \sys_if_engine_luatex_p: ||
+ \sys_if_engine_xetex_p:
+ }
{
\AtBeginDocument
{
@@ -15096,7 +15100,8 @@ This work consists of the file siunitx.dtx
%
% \begin{macro}
% {
-% \@@_table_print_S_direct_centered: ,
+% \@@_table_print_S_direct_centered: ,
+% @@_table_print_S_direct_centered_begin:,
% \@@_table_print_S_direct_centered_end:
% }
% \begin{macro}[aux]{\@@_table_print_S_direct_centered_aux:N}
@@ -15105,7 +15110,6 @@ This work consists of the file siunitx.dtx
% In that sense this is very similar to the normal method, except that
% it will work with non-numerical input.
% \begin{macrocode}
-\char_set_catcode_active:N \@
\cs_new_protected:Npn \@@_table_print_S_direct_centered:
{
\cs_set_eq:NN \@@_table_print:
@@ -15123,19 +15127,18 @@ This work consists of the file siunitx.dtx
}
\cs_new_protected:Npn \@@_table_print_S_direct_centered_aux:N #1
{
- \char_set_lccode:nn { `\@ } { `#1 }
- \char_set_mathcode:nn { `#1 } { 32768 }
- \tl_to_lowercase:n { \cs_set:Npn @ }
- {
+ \char_set_active_eq:NN #1 \@@_table_print_S_direct_centered_begin:
+ \char_set_mathcode:nn { `#1 } { "8000 }
+ }
+\cs_new_protected_nopar:Npn \@@_table_print_S_direct_centered_begin:
+ {
+ \c_math_toggle_token
+ \c_group_end_token
+ \hbox_set:Nn \l_@@_table_post_box
+ \c_group_begin_token
\c_math_toggle_token
- \c_group_end_token
- \hbox_set:Nn \l_@@_table_post_box
- \c_group_begin_token
- \c_math_toggle_token
- \l_@@_output_decimal_tl
- }
+ \l_@@_output_decimal_tl
}
-\char_set_catcode_letter:N \@
\cs_new_protected:Npn \@@_table_print_S_direct_centered_end:
{
\c_math_toggle_token
@@ -15168,7 +15171,8 @@ This work consists of the file siunitx.dtx
%
% \begin{macro}
% {
-% \@@_table_print_S_direct_reserved: ,
+% \@@_table_print_S_direct_reserved: ,
+% \@@_table_print_S_direct_reserved_begin:,
% \@@_table_print_S_direct_reserved_end:
% }
% \begin{macro}[aux]{\@@_table_print_S_direct_reserved_aux:N}
@@ -15177,7 +15181,6 @@ This work consists of the file siunitx.dtx
% but needs a bit of measuring. The first box here does need to use
% \cs{tex_hill:D} as \texttt{fil} glue will not work.
% \begin{macrocode}
-\char_set_catcode_active:N \@
\cs_new_protected:Npn \@@_table_print_S_direct_reserved:
{
\cs_set_eq:NN \@@_table_print:
@@ -15221,20 +15224,19 @@ This work consists of the file siunitx.dtx
}
\cs_new_protected:Npn \@@_table_print_S_direct_reserved_aux:N #1
{
- \char_set_lccode:nn { `\@ } { `#1 }
- \char_set_mathcode:nn { `#1 } { 32768 }
- \tl_to_lowercase:n { \cs_set:Npn @ }
- {
- \c_math_toggle_token
- \c_group_end_token
- \hbox_set_to_wd:Nnn \l_@@_table_post_box
- { \box_wd:N \l_@@_tmp_box }
- \c_group_begin_token
- \c_math_toggle_token
- \l_@@_output_decimal_tl
- }
+ \char_set_active_eq:NN #1 \@@_table_print_S_direct_reserved_begin:
+ \char_set_mathcode:nn { `#1 } { "8000 }
}
-\char_set_catcode_letter:N \@
+\cs_new_protected_nopar:Npn \@@_table_print_S_direct_reserved_begin:
+ {
+ \c_math_toggle_token
+ \c_group_end_token
+ \hbox_set_to_wd:Nnn \l_@@_table_post_box
+ { \box_wd:N \l_@@_tmp_box }
+ \c_group_begin_token
+ \c_math_toggle_token
+ \l_@@_output_decimal_tl
+ }
\cs_new_protected:Npn \@@_table_print_S_direct_reserved_end:
{
\c_math_toggle_token
@@ -15474,7 +15476,11 @@ This work consists of the file siunitx.dtx
% The single degree Celsius symbol is a compatibility character, and so
% the two separate glyphs \enquote{degree} and \enquote{C} are used.
% \begin{macrocode}
-\pdftex_if_engine:F
+\bool_if:nT
+ {
+ \sys_if_engine_luatex_p: ||
+ \sys_if_engine_xetex_p:
+ }
{
\AtBeginDocument
{
@@ -16704,7 +16710,7 @@ This work consists of the file siunitx.dtx
% \end{macrocode}
%
% \begin{macrocode}
-\ProvidesExplFile {siunitx-version-1.cfg} {2015/09/01} {2.6j}
+\ProvidesExplFile {siunitx-version-1.cfg} {2015/09/12} {2.6k}
{siunitx: Version 1 settings}
% \end{macrocode}
%
@@ -17646,7 +17652,7 @@ This work consists of the file siunitx.dtx
% \end{macrocode}
%
% \begin{macrocode}
-\ProvidesExplFile {siunitx-abbreviations.cfg} {2015/09/01} {2.6j}
+\ProvidesExplFile {siunitx-abbreviations.cfg} {2015/09/12} {2.6k}
{siunitx: Abbreviated units}
% \end{macrocode}
%
@@ -17828,7 +17834,7 @@ This work consists of the file siunitx.dtx
% \end{macrocode}
%
% \begin{macrocode}
-\ProvidesExplFile {siunitx-binary.cfg} {2015/09/01} {2.6j}
+\ProvidesExplFile {siunitx-binary.cfg} {2015/09/12} {2.6k}
{siunitx: Binary units}
% \end{macrocode}
%