texlive[47684] Master/texmf-dist: siunitx (11may18)
commits+karl at tug.org
commits+karl at tug.org
Sat May 12 00:01:34 CEST 2018
Revision: 47684
http://tug.org/svn/texlive?view=revision&revision=47684
Author: karl
Date: 2018-05-12 00:01:34 +0200 (Sat, 12 May 2018)
Log Message:
-----------
siunitx (11may18)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
Modified: trunk/Master/texmf-dist/doc/latex/siunitx/siunitx.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx 2018-05-11 22:01:19 UTC (rev 47683)
+++ trunk/Master/texmf-dist/source/latex/siunitx/siunitx.dtx 2018-05-11 22:01:34 UTC (rev 47684)
@@ -673,6 +673,7 @@
% \changes{v2.7l}{2018/03/11}{Track \pkg{unicode-math} changes}
% \changes{v2.7n}{2018/04/27}{Fix issue with symbolic input
% and digit grouping}
+% \changes{v2.7q}{2018/05/11}{Patch \pkg{cellspace} only if required}
%
%\begin{abstract}
% Physical quantities have both numbers and units, and each physical
@@ -4384,12 +4385,17 @@
%\subsection{Using \pkg{siunitx} with the \pkg{cellspace} package}
%
% Both \pkg{siunitx} and \pkg{cellspace} use the letter \texttt{S} for a
-% new column type. This obviously leads to a problem. If both are
-% loaded, \pkg{siunitx} will retain the \texttt{S} column, and moves the
-% functionality of \pkg{cellspace} to the letter \texttt{C}. This
+% new column type as standard. If \pkg{cellspace} loaded and is using the
+% \texttt{S} column specifier, \pkg{siunitx} will move the
+% functionality of \pkg{cellspace} to the letter \texttt{C}, and \texttt{S}
+% will be used by \pkg{siunitx}. This
% allows the normal use of \pkg{cellspace} with standard column types:
% it does \emph{not} work with the \pkg{siunitx} \texttt{S} or
-% \texttt{s} columns.
+% \texttt{s} columns. Note that \pkg{cellspace} can be loaded with a
+% user-selectable identifier, for example
+%\begin{LaTeXdemo}[code only]
+% \usepackage[column=Q]{cellspace}
+%\end{LaTeXdemo}
%
%\subsection{Special considerations for the \cs{kWh} unit}
%
@@ -5221,7 +5227,7 @@
%
% The usual preliminaries.
% \begin{macrocode}
-\ProvidesExplPackage {siunitx} {2018-05-10} {2.7p}
+\ProvidesExplPackage {siunitx} {2018-05-11} {2.7q}
{A comprehensive (SI) units package}
% \end{macrocode}
%
@@ -13399,27 +13405,30 @@
\AtBeginDocument {
\@ifpackageloaded { cellspace }
{
- \newcolumntype { C } [1]
- { > { \bcolumn #1 \@nil } #1 < { \ecolumn } }
- \cs_set:Npn \@@_tmp:w #1 \NC at do S #2 \q_stop
- { \NC at list { #1 #2 } }
- \exp_after:wN \@@_tmp:w \tex_the:D \NC at list \q_stop
- \cs_undefine:N \NC at find@S
- \msg_new:nnn { siunitx } { moved-cellspace-column }
- { Column~type~for~cellspace~package~moved~to~'#1'. }
- \msg_warning:nnn { siunitx } { moved-cellspace-column } { C }
- \ifcellspace at m
- \def \env at matrix
- {
- \hskip -\arraycolsep
- \let \@ifnextchar \new at ifnextchar
- \array
+ \cs_if_exist:NT \NC at find@S
+ {
+ \newcolumntype { C } [1]
+ { > { \bcolumn #1 \@nil } #1 < { \ecolumn } }
+ \cs_set:Npn \@@_tmp:w #1 \NC at do S #2 \q_stop
+ { \NC at list { #1 #2 } }
+ \exp_after:wN \@@_tmp:w \tex_the:D \NC at list \q_stop
+ \cs_undefine:N \NC at find@S
+ \msg_new:nnn { siunitx } { moved-cellspace-column }
+ { Column~type~for~cellspace~package~moved~to~'#1'. }
+ \msg_warning:nnn { siunitx } { moved-cellspace-column } { C }
+ \ifcellspace at m
+ \def \env at matrix
{
- * { \c at MaxMatrixCols }
- { > { \bcolumn c \@nil $ } c < { $ \ecolumn } } @ { }
+ \hskip -\arraycolsep
+ \let \@ifnextchar \new at ifnextchar
+ \array
+ {
+ * { \c at MaxMatrixCols }
+ { > { \bcolumn c \@nil $ } c < { $ \ecolumn } } @ { }
+ }
}
- }
- \fi
+ \fi
+ }
}
{ }
}
Modified: trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty 2018-05-11 22:01:19 UTC (rev 47683)
+++ trunk/Master/texmf-dist/tex/latex/siunitx/siunitx.sty 2018-05-11 22:01:34 UTC (rev 47684)
@@ -15,7 +15,7 @@
%%
\RequirePackage{expl3}[2015/09/11]
\RequirePackage{xparse}
-\ProvidesExplPackage {siunitx} {2018-05-10} {2.7p}
+\ProvidesExplPackage {siunitx} {2018-05-11} {2.7q}
{A comprehensive (SI) units package}
\@ifpackagelater { expl3 } { 2015/11/15 }
{ }
@@ -5545,27 +5545,30 @@
\AtBeginDocument {
\@ifpackageloaded { cellspace }
{
- \newcolumntype { C } [1]
- { > { \bcolumn #1 \@nil } #1 < { \ecolumn } }
- \cs_set:Npn \__siunitx_tmp:w #1 \NC at do S #2 \q_stop
- { \NC at list { #1 #2 } }
- \exp_after:wN \__siunitx_tmp:w \tex_the:D \NC at list \q_stop
- \cs_undefine:N \NC at find@S
- \msg_new:nnn { siunitx } { moved-cellspace-column }
- { Column~type~for~cellspace~package~moved~to~'#1'. }
- \msg_warning:nnn { siunitx } { moved-cellspace-column } { C }
- \ifcellspace at m
- \def \env at matrix
- {
- \hskip -\arraycolsep
- \let \@ifnextchar \new at ifnextchar
- \array
+ \cs_if_exist:NT \NC at find@S
+ {
+ \newcolumntype { C } [1]
+ { > { \bcolumn #1 \@nil } #1 < { \ecolumn } }
+ \cs_set:Npn \__siunitx_tmp:w #1 \NC at do S #2 \q_stop
+ { \NC at list { #1 #2 } }
+ \exp_after:wN \__siunitx_tmp:w \tex_the:D \NC at list \q_stop
+ \cs_undefine:N \NC at find@S
+ \msg_new:nnn { siunitx } { moved-cellspace-column }
+ { Column~type~for~cellspace~package~moved~to~'#1'. }
+ \msg_warning:nnn { siunitx } { moved-cellspace-column } { C }
+ \ifcellspace at m
+ \def \env at matrix
{
- * { \c at MaxMatrixCols }
- { > { \bcolumn c \@nil $ } c < { $ \ecolumn } } @ { }
+ \hskip -\arraycolsep
+ \let \@ifnextchar \new at ifnextchar
+ \array
+ {
+ * { \c at MaxMatrixCols }
+ { > { \bcolumn c \@nil $ } c < { $ \ecolumn } } @ { }
+ }
}
- }
- \fi
+ \fi
+ }
}
{ }
}
More information about the tex-live-commits
mailing list