texlive[70260] branches/branch2023.final/Master/texmf-dist: mismath
commits+karl at tug.org
commits+karl at tug.org
Thu Feb 29 22:22:55 CET 2024
Revision: 70260
https://tug.org/svn/texlive?view=revision&revision=70260
Author: karl
Date: 2024-02-29 22:22:55 +0100 (Thu, 29 Feb 2024)
Log Message:
-----------
mismath (branch) (29feb24)
Modified Paths:
--------------
branches/branch2023.final/Master/texmf-dist/doc/latex/mismath/README.md
branches/branch2023.final/Master/texmf-dist/doc/latex/mismath/mismath.pdf
branches/branch2023.final/Master/texmf-dist/source/latex/mismath/mismath.dtx
branches/branch2023.final/Master/texmf-dist/tex/latex/mismath/mismath.sty
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/mismath/README.md
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/latex/mismath/README.md 2024-02-29 21:22:33 UTC (rev 70259)
+++ branches/branch2023.final/Master/texmf-dist/doc/latex/mismath/README.md 2024-02-29 21:22:55 UTC (rev 70260)
@@ -1,4 +1,4 @@
-# mismath - Miscellaneous mathematical macros
+# Miscellaneous mathematical macros - The mismath package
## Presentation
@@ -5,8 +5,7 @@
The package provides some mathematical macros to typeset:
- mathematical constants e, i, pi in upright shape (automatically) as recommended by ISO 80000-2,
-- vectors with beautiful arrows and adjusted norm,
-- tensors,
+- vectors with nice arrows and adjusted norm (and tensors),
- some standard operator names,
- improved spacings in mathematical formulas,
- systems of equations and small matrices,
@@ -16,7 +15,7 @@
## Installation
- run LaTeX on mismath.ins, you obtain the file mismath.sty,
-- if then you run pdfLaTeX on mismath.dtx you get the file mismath.pdf which is also in the archive,
+- if then you run XeLaTeX or LuaLaTeX on mismath.dtx you get the file mismath.pdf which is also in the archive,
- put the files mismath.sty and mismath.pdf in your TeX Directory Structure.
Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/mismath/mismath.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2023.final/Master/texmf-dist/source/latex/mismath/mismath.dtx
===================================================================
--- branches/branch2023.final/Master/texmf-dist/source/latex/mismath/mismath.dtx 2024-02-29 21:22:33 UTC (rev 70259)
+++ branches/branch2023.final/Master/texmf-dist/source/latex/mismath/mismath.dtx 2024-02-29 21:22:55 UTC (rev 70260)
@@ -20,7 +20,7 @@
%<*package>
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
\ProvidesPackage{mismath}
- [2024/02/26 v2.11 .dtx Miscellaneous mathematical macros]
+ [2024/02/29 v2.12 .dtx Miscellaneous mathematical macros]
%</package>
%<*driver>
\documentclass{ltxdoc}
@@ -83,7 +83,7 @@
%</driver>
% \fi
%
-% \CheckSum{807}
+% \CheckSum{831}
%
% \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
@@ -110,21 +110,19 @@
% - Some forgotten french 'et' -> 'and', citecolor=blue,
% - changing the default font for pinumber Euler -> Symbol}
%
-% \changes{v1.2}{2019/04/26}{
+% \changes{v1.2}{2019/04/27}{
% - Works fine with beamer now,
% - AtBeginDocument for enumber, inumber, jnumber,
% - creating general mm at operator macro,
-% - using mathup instead of mathrm}
-% \changes{v1.2}{2019/04/27}{
-% - Added mathtools package,
+% - using mathup instead of mathrm
+% - added mathtools package,
% - font definition Roman -> up,
% - changes in documentation,
% - replacing the PEroman macro by PEupright}
%
-% \changes{v1.3}{2019/05/05}{
+% \changes{v1.3}{2019/05/08}{
% - Using bslash in the internal mm at warning macro,
-% - loading of mathfixs package}
-% \changes{v1.3}{2019/05/08}{
+% - loading of mathfixs package
% - Many corrections in documentation}
%
% \changes{v1.4}{2019/05/22}{
@@ -157,7 +155,7 @@
% - default option (in upgreek) changed from Symbol to Euler.}
%
% \changes{v2.0}{2022/11/11}{
-% - pinumber command has been improved to use other Greek letters packages,
+% - pinumber command has been enhanced to use other Greek letters packages,
% (and LGR encoding pi by default), it is no longer compatible with the older,
% - paren command has been removed,
% - hvect and hlbar have been slightly modified (phantom t instead of phantom h),
@@ -175,11 +173,10 @@
% - Loading of ibrackets package is now optional, due to an error
% when using DeclarePairedDelimiter with square brackets.}
%
-% \changes{v2.3}{2023/02/06}{
+% \changes{v2.3}{2023/02/09}{
% - Introducing keyval options for enumber, inumber, jnumber, PEupright
% (corresponding old commands are maintained for now),
-% - and also for ibrackets, boldvect and arrowvect}
-% \changes{v2.3}{2023/02/09}{
+% - and also for ibrackets, boldvect and arrowvect
% - Documentation update}
%
% \changes{v2.4}{2023/02/18}{
@@ -215,16 +212,24 @@
% - New option decimalcomma
% - Some small changes in the documentation}
%
-% \changes{v2.10}{2024/02/19}{
+% \changes{v2.10}{2024/02/20}{
% - Better compatibility with unicode-math:
% for the options ibrackets, decimalcomma and the commands MathUp, MathIt
% - Explicit error message when using mathcols without loading the multicol package}
%
-% \changes{v2.11}{2024/02/22}{
+% \changes{v2.11}{2024/02/26}{
% - Enhancements of the pinumber macro with keyval options:
% * no necessity to load a Greek letters package
-% * improvements of compatibility with unicode-math}
+% * improvements of compatibility with unicode-math
+% - Now using the Adobe Utopia font with the package fourier}
%
+% \changes{v2.12}{2024/02/29}{
+% - The xparse package has been removed by mistake in v2.11,
+% this may cause some compatibility problems with unicode-math;
+% it is loaded again by mismath
+% - Improvements to make pinumber work perfectly with unicode-math
+% - Small corrections in the doc}
+%
% \GetFileInfo{mismath.sty}
%
% \title{Miscellaneous mathematical macros \\The \textsf{mismath} package\thanks{This document
@@ -231,7 +236,7 @@
% corresponds to \textsf{mismath}~\fileversion, dated \filedate.
% Thanks to François Bastouil for initial help in English translation.}}
% \author{Antoine Missier \\ \texttt{antoine.missier at ac-toulouse.fr}}
-% \date{February 26, 2024}
+% \date{February 29, 2024}
%
% \maketitle
% \tableofcontents
@@ -252,7 +257,7 @@
% To draw nice arrows above vectors, we use the \textsf{esvect} package
% by Eddie Saudrais~\cite{VECT}.
% Additionally we provide a few more macros related to vectors with arrows,
-% particularly to enhance the typesetting of the norm: $\norm{\vect{AB}}$
+% particularly to improve the typesetting of the norm: $\norm{\vect{AB}}$
% instead of the \LaTeX\ version $\lVert\vect{AB}\rVert$, which is not vertically adjusted,
% or worse $\left\Vert \vect{AB} \right\Vert$ (when using |\left|\ldots |\right|).
%
@@ -404,7 +409,8 @@
% \mbox{\textsf{kpfonts}}~\cite{KPF},
% \mbox{\textsf{fourier}}~\cite{FOUR} (used in the present document),
% \mbox{\textsf{libertinust1math}},
-% \mbox{\textsf{pxgreeks}}, \mbox{\textsf{txgreeks}}
+% \mbox{\textsf{pxgreeks}} (using \textsf{pxfonts}), \mbox{\textsf{txgreeks}}
+% (using \textsf{txfonts})
% \footnote{When using \textsf{pxgreeks} or \textsf{txgreeks},
% they should be loaded \emph{after} \textsf{mismath} to avoid an error
% due to conflict with the existing macros \texttt{\string\iint}, \texttt{\string\iiint},
@@ -464,8 +470,8 @@
% \normalfont Option & \mbox{Result} \\
% \hline
% mathdesign & \piCharter \\
+% kpfonts & \pikp \\
% fourier & \otherpi\\
-% kpfonts & \pikp \\
% pxfonts & \pipx \\
% txfonts & \pitx \\
% & \\
@@ -492,24 +498,27 @@
% \texttt{normal} (default) and \texttt{light}. The option \texttt{kpfonts=light}
% provides a slightly less bold character.
%
-% \item The keys \texttt{pxfonts} (based on Palatino) and \texttt{txfonts} (based on Times)
+% \item The keys \texttt{fourier} (based on Utopia), \texttt{pxfonts} (based on Palatino)
+% and \texttt{txfonts} (based on Times)
% are booleans whose default value is \texttt{true} (when called).
%
% \item When |\pinumber| is called without an argument in the preamble,
% it corresponds to the option \texttt{lgrmath=lmr}.
% This $\pilmr$ character is particularly well-suited
-% for use with the default Computer Modern or Latin Modern font family.
+% for use with the default Computer Modern or Latin Modern font family
% \footnote{It will look the same as the one provided by
% Günter Milde's \textsf{textalpha} package~\cite{ALPHA}.}.
% \end{itemize}
% \end{enumerate}
%
-% If \textsf{unicode-math} is used (which provides |\uppi|), the command |\pinumber[uppi]|
-% will not work, and it can be quite complicated to make some Greek letters packages work.
-% In any case, this package must be loaded after \textsf{unicode-math} and in
+% The \textsf{unicode-math} package~\cite{UNIC} provides |\uppi|, and you can use
+% |\pinumber[uppi]| to produce automatic upright pi, but, with \textsf{unicode-math},
+% it can be quite complicated
+% to make some other Greek letters packages work.
+% In any case, such a package must be loaded after \textsf{unicode-math} and in
% |\AtBeginDocument|.
% However, \textsf{unicode-math} supports |\pinumber| very well with the
-% previous key=value options, by calling |\pinumber[option]| after
+% previous \texttt{key=value} options, by calling |\pinumber[option]| after
% \mbox{\textsf{unicode-math}}.
%
% \medskip
@@ -1011,8 +1020,7 @@
% Besides, there are other approaches, for example the |\interval| macro
% from the \textsf{interval} package~\cite{INT},
% or |\DeclarePairedDelimiters| from the \textsf{mathtools} package~\cite{TOOL}
-% (but the latter is incompatible with \textsf{ibrackets}
-% for managing brackets).
+% (but this command is incompatible with \textsf{ibrackets}).
%
% \medskip
%\DescribeMacro{[decimalcomma]}
@@ -1242,7 +1250,7 @@
\@ifpackageloaded{mathtools}{}{\RequirePackage{mathtools}}
\@ifpackageloaded{esvect}{}{\RequirePackage[b]{esvect}}
\RequirePackage{ifthen}
-%\RequirePackage{xparse} % provides \NewDocumentCommand, now in LaTeX3
+\RequirePackage{xparse} % provides \NewDocumentCommand, now in LaTeX3
\RequirePackage{xspace}
\RequirePackage{iftex}
\RequirePackage{etoolbox} % provides \AtEndPreamble
@@ -1463,7 +1471,7 @@
% I discovered this powerfull macro on \texttt{iterate190.rssing.com} by searching for
% ``TeX How to iterate over a comma separated list''.
% The answer was posted under the pseudonym `wipet' on 2021/02/26.
-% Let its author, Petr Olšák, be thanked.
+% Let its author, Petr Ol\v sák, be thanked.
% This macro allows to accomplish tasks that
% usual loop instructions like |\@for| or |\foreach| cannot achieve due to
% errors like ``!~Improper alphabetic constant''.
@@ -1545,10 +1553,10 @@
\newif\ifmm at mathdesign
\define at choicekey{pinumber}{mathdesign}[\mm at mathdesign@option]%
{Utopia,Garamond,Charter}[Charter]{\mm at mathdesigntrue}
-\define at boolkey{pinumber}[mm@]{fourier}[true]{}
\newif\ifmm at kpfonts
\define at choicekey{pinumber}{kpfonts}[\mm at kp@option]%
{normal,light}[normal]{\mm at kpfontstrue}
+\define at boolkey{pinumber}[mm@]{fourier}[true]{}
\define at boolkey{pinumber}[mm@]{pxfonts}[true]{}
\define at boolkey{pinumber}[mm@]{txfonts}[true]{}
@@ -1638,7 +1646,22 @@
\fi\fi
\let\savedpi\pi
- }{\renewcommand{\pi}{\csname #1\endcsname}\let\savedpi\pi}
+ }{
+ \ifmm at unicodemath
+ \ifthenelse{\equal{#1}{uppi}}{
+ \AtBeginDocument{%
+ \let\pi\relax
+ \def\pi{\symup{\symbol{"003C0}}}
+ \let\itpi\relax
+ \def\itpi{\symit{\symbol{"003C0}}} % or "1D70B
+ }
+ }{\renewcommand{\pi}{\csname #1\endcsname}}
+ \else
+ \renewcommand{\pi}{\csname #1\endcsname}
+ \fi
+
+ \let\savedpi\pi
+ }
}}
}
}
Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/mismath/mismath.sty
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/mismath/mismath.sty 2024-02-29 21:22:33 UTC (rev 70259)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/mismath/mismath.sty 2024-02-29 21:22:55 UTC (rev 70260)
@@ -22,7 +22,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
\ProvidesPackage{mismath}
- [2024/02/26 v2.11 .dtx Miscellaneous mathematical macros]
+ [2024/02/29 v2.12 .dtx Miscellaneous mathematical macros]
\newif\ifmm at ibrackets % initialized to false
\newif\ifmm at decimalcomma
\DeclareOption{ibrackets}{\mm at ibracketstrue}
@@ -33,6 +33,7 @@
\@ifpackageloaded{mathtools}{}{\RequirePackage{mathtools}}
\@ifpackageloaded{esvect}{}{\RequirePackage[b]{esvect}}
\RequirePackage{ifthen}
+\RequirePackage{xparse} % provides \NewDocumentCommand, now in LaTeX3
\RequirePackage{xspace}
\RequirePackage{iftex}
\RequirePackage{etoolbox} % provides \AtEndPreamble
@@ -202,10 +203,10 @@
\newif\ifmm at mathdesign
\define at choicekey{pinumber}{mathdesign}[\mm at mathdesign@option]%
{Utopia,Garamond,Charter}[Charter]{\mm at mathdesigntrue}
-\define at boolkey{pinumber}[mm@]{fourier}[true]{}
\newif\ifmm at kpfonts
\define at choicekey{pinumber}{kpfonts}[\mm at kp@option]%
{normal,light}[normal]{\mm at kpfontstrue}
+\define at boolkey{pinumber}[mm@]{fourier}[true]{}
\define at boolkey{pinumber}[mm@]{pxfonts}[true]{}
\define at boolkey{pinumber}[mm@]{txfonts}[true]{}
@@ -295,7 +296,22 @@
\fi\fi
\let\savedpi\pi
- }{\renewcommand{\pi}{\csname #1\endcsname}\let\savedpi\pi}
+ }{
+ \ifmm at unicodemath
+ \ifthenelse{\equal{#1}{uppi}}{
+ \AtBeginDocument{%
+ \let\pi\relax
+ \def\pi{\symup{\symbol{"003C0}}}
+ \let\itpi\relax
+ \def\itpi{\symit{\symbol{"003C0}}} % or "1D70B
+ }
+ }{\renewcommand{\pi}{\csname #1\endcsname}}
+ \else
+ \renewcommand{\pi}{\csname #1\endcsname}
+ \fi
+
+ \let\savedpi\pi
+ }
}}
}
}
More information about the tex-live-commits
mailing list.