summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/decimalcomma
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-12-31 03:03:08 +0000
committerNorbert Preining <norbert@preining.info>2023-12-31 03:03:08 +0000
commit5acd803fa16526d48d5c8e990dc509df22d856b7 (patch)
treec3ed1afd62a406b906debf826d6f4648e3317e76 /macros/latex/contrib/decimalcomma
parentfb8f0178a957d045f6b876e11ab2beb02d1ac08a (diff)
CTAN sync 202312310303
Diffstat (limited to 'macros/latex/contrib/decimalcomma')
-rw-r--r--macros/latex/contrib/decimalcomma/decimalcomma.dtx29
-rw-r--r--macros/latex/contrib/decimalcomma/decimalcomma.pdfbin102789 -> 102018 bytes
2 files changed, 15 insertions, 14 deletions
diff --git a/macros/latex/contrib/decimalcomma/decimalcomma.dtx b/macros/latex/contrib/decimalcomma/decimalcomma.dtx
index 5ee720ea2c..a78b0867bf 100644
--- a/macros/latex/contrib/decimalcomma/decimalcomma.dtx
+++ b/macros/latex/contrib/decimalcomma/decimalcomma.dtx
@@ -20,7 +20,7 @@
%<*package>
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
\ProvidesPackage{decimalcomma}
- [2023/12/28 v1.3 .dtx Comma for decimal numbers]
+ [2023/12/30 v1.4 .dtx Comma for decimal numbers]
%</package>
%<*driver>
\documentclass{ltxdoc}
@@ -60,7 +60,7 @@
%</driver>
% \fi
%
-% \CheckSum{24}
+% \CheckSum{18}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -82,6 +82,7 @@
% \changes{v1.1}{2023/12/19}{Error message when unicode-math loaded after decimalcomma}
% \changes{v1.2}{2023/12/20}{Bug correction: bad typo for the boolean DC@unicodemath}
% \changes{v1.3}{2023/12/28}{Loading icomma to avoid babel-french + numprint problems}
+% \changes{v1.4}{2023/12/30}{Code improvement, first boolean unnecessary, thanks to J.F. Burnol}
%
% \GetFileInfo{decimalcomma.sty}
%
@@ -156,24 +157,24 @@
% This first piece of code aims to generate an appropriate error message, if you load
% \textsf{unicode-math} \emph{after} \textsf{decimalcomma}.
% To achieve this, first we check if \textsf{unicode-math} has been loaded before.
-% In that case, the boolean "DC@unicodemath" will be set to true.
-% Then, at the end of the preamble, when all the packages have been loaded,
-% we perform a new verification. If \textsf{unicode-math} has been loaded after
-% but not before, the appropriate error message is displayed.
+% In that case, we do nothing.
+% Else, at the end of the preamble, when all the packages have been loaded,
+% we perform a new verification. If \textsf{unicode-math} has been loaded at that time,
+% the appropriate error message is displayed.
+%
% Without this code, the compilation would produce an error message mentioning
% a problem on "\futurelet", incomprehensible for the novice.
%
% \begin{macrocode}
-\newif\ifDC@unicodemath
-\@ifpackageloaded{unicode-math}{\DC@unicodemathtrue}
-\AtBeginDocument{\@ifpackageloaded{unicode-math}{
- \ifDC@unicodemath\else
- \PackageError{decimalcomma}{decimalcomma must be loaded
- after unicode-math}{If you didn't load decimalcomma
- yourself, check which package uses it.}
- \fi
+\@ifpackageloaded{unicode-math}{}{
+ \AtBeginDocument{%
+ \@ifpackageloaded{unicode-math}{
+ \PackageError{decimalcomma}{decimalcomma must be loaded
+ after unicode-math}{If you didn't load decimalcomma
+ yourself, check which package uses it.}
}{}
+ }
}
% \end{macrocode}
diff --git a/macros/latex/contrib/decimalcomma/decimalcomma.pdf b/macros/latex/contrib/decimalcomma/decimalcomma.pdf
index a7c42c84b7..aa3913d621 100644
--- a/macros/latex/contrib/decimalcomma/decimalcomma.pdf
+++ b/macros/latex/contrib/decimalcomma/decimalcomma.pdf
Binary files differ