texlive[69251] Master/texmf-dist: decimalcomma (31dec23)
commits+karl at tug.org
commits+karl at tug.org
Sun Dec 31 22:25:25 CET 2023
Revision: 69251
https://tug.org/svn/texlive?view=revision&revision=69251
Author: karl
Date: 2023-12-31 22:25:25 +0100 (Sun, 31 Dec 2023)
Log Message:
-----------
decimalcomma (31dec23)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/decimalcomma/decimalcomma.pdf
trunk/Master/texmf-dist/source/latex/decimalcomma/decimalcomma.dtx
trunk/Master/texmf-dist/tex/latex/decimalcomma/decimalcomma.sty
Modified: trunk/Master/texmf-dist/doc/latex/decimalcomma/decimalcomma.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/decimalcomma/decimalcomma.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/decimalcomma/decimalcomma.dtx 2023-12-31 21:25:11 UTC (rev 69250)
+++ trunk/Master/texmf-dist/source/latex/decimalcomma/decimalcomma.dtx 2023-12-31 21:25:25 UTC (rev 69251)
@@ -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 at 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 at 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 at unicodemath
-\@ifpackageloaded{unicode-math}{\DC at unicodemathtrue}
-\AtBeginDocument{\@ifpackageloaded{unicode-math}{
- \ifDC at 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}
Modified: trunk/Master/texmf-dist/tex/latex/decimalcomma/decimalcomma.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/decimalcomma/decimalcomma.sty 2023-12-31 21:25:11 UTC (rev 69250)
+++ trunk/Master/texmf-dist/tex/latex/decimalcomma/decimalcomma.sty 2023-12-31 21:25:25 UTC (rev 69251)
@@ -22,17 +22,16 @@
%%
\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]
-\newif\ifDC at unicodemath
-\@ifpackageloaded{unicode-math}{\DC at unicodemathtrue}
-\AtBeginDocument{\@ifpackageloaded{unicode-math}{
- \ifDC at 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.}
}{}
+ }
}
\RequirePackage{icomma}
More information about the tex-live-commits
mailing list.