summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/siunitx/siunitx-table.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/siunitx/siunitx-table.dtx')
-rw-r--r--macros/latex/contrib/siunitx/siunitx-table.dtx14
1 files changed, 12 insertions, 2 deletions
diff --git a/macros/latex/contrib/siunitx/siunitx-table.dtx b/macros/latex/contrib/siunitx/siunitx-table.dtx
index 269015d857..137c2e18d6 100644
--- a/macros/latex/contrib/siunitx/siunitx-table.dtx
+++ b/macros/latex/contrib/siunitx/siunitx-table.dtx
@@ -185,7 +185,7 @@
% would allow space for one digit in the integer part, two in the decimal
% part and three in the exponent part. Signs can be allowed for using any
% valid input sign, so for example |+1.2 \pm 1.2| would allow for a sign,
-% a number with one integer and two decimal digits and a uncertainty of
+% a number with one integer and two decimal digits and an uncertainty of
% the same size.
% \end{function}
%
@@ -445,12 +445,22 @@
\l_@@_after_tl
}
}
+% \end{macrocode}
+% To cover the use of REV\TeX{}, we need to allow for the insertion of
+% \cs{array@row@rst} into cell content: that explodes inside
+% \cs{protected@edef}. We use the classical solution of making locally
+% equal to \cs{scan_stop:}.
+% \begin{macrocode}
\cs_new_protected:Npn \@@_collect_end:n #1
{
\str_if_eq:eeTF { \exp_not:n {#1} }
{ { \@@_collect_end_aux:n {#1} } }
{ \tl_set:Nn }
- { \protected@edef }
+ {
+ \cs_if_exist:NT \array@row@rst
+ { \cs_set_eq:NN \array@row@rst \scan_stop: }
+ \protected@edef
+ }
\l_@@_collect_tl {#1}
}
\cs_new:Npn \@@_collect_end_aux:n #1