summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/siunitx/siunitx-emulation.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/siunitx/siunitx-emulation.dtx')
-rw-r--r--macros/latex/contrib/siunitx/siunitx-emulation.dtx15
1 files changed, 8 insertions, 7 deletions
diff --git a/macros/latex/contrib/siunitx/siunitx-emulation.dtx b/macros/latex/contrib/siunitx/siunitx-emulation.dtx
index 3d2e0370f1..cc60aa85e8 100644
--- a/macros/latex/contrib/siunitx/siunitx-emulation.dtx
+++ b/macros/latex/contrib/siunitx/siunitx-emulation.dtx
@@ -478,7 +478,7 @@
{ print-unity-mantissa }
\l_keys_value_tl
} ,
- retain-unity-mantisa .default:n = true ,
+ retain-unity-mantissa .default:n = true ,
retain-zero-exponent .code:n =
{
\@@_option_deprecated:nnV
@@ -1013,12 +1013,13 @@
%
% Units that have been removed: to avoid issues, we mark them as deprecated.
% \begin{macrocode}
-\msg_new:nnnn { siunitx } { unit-deprecated }
- { Unit~macro~#1~has~been~deprecated~in~this~release. }
+\msg_new:nnn { siunitx } { unit-deprecated }
{
+ Unit~macro~#1~has~been~deprecated~in~this~release. \\ \\
The~BIPM~have~removed~this~unit~from~the~SI~Brochure.~
- You~should~define~it~yourself~using~\token_to_str:N \DeclareSIUnit
- in~your~source.
+ You~should~define~it~yourself~using~\token_to_str:N \DeclareSIUnit\ %
+ in~your~source. The~current~definition~is\\ \\
+ \token_to_str:N \DeclareSIUnit \{ #2 \}
}
\cs_gset_protected:Npn \@@_tmp:w #1#2
{
@@ -1031,8 +1032,8 @@
{
\exp_not:N \bool_gset_true:N
\exp_not:c { g_@@_unit_warning_ \token_to_str:N #1 _bool }
- \msg_warning:nnn { siunitx } { unit-deprecated }
- { \token_to_str:N #1 }
+ \msg_warning:nnnn { siunitx } { unit-deprecated }
+ { \token_to_str:N #1 } {#2}
}
#2
}