diff options
author | Karl Berry <karl@freefriends.org> | 2024-02-29 21:21:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-02-29 21:21:46 +0000 |
commit | 1cc77e9144e88239b8bcaa98b86171119f32e661 (patch) | |
tree | cd00a6f28ff36ad3ce33d040f77868eb40c63f4c /Master/texmf-dist/source/latex/mismath | |
parent | 54c5cd86bfbcb4ec822f93004ee30ea49b9034e9 (diff) |
mismath (29feb24)
git-svn-id: svn://tug.org/texlive/trunk@70255 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/mismath')
-rw-r--r-- | Master/texmf-dist/source/latex/mismath/mismath.dtx | 87 |
1 files changed, 55 insertions, 32 deletions
diff --git a/Master/texmf-dist/source/latex/mismath/mismath.dtx b/Master/texmf-dist/source/latex/mismath/mismath.dtx index f69aaeaffe0..88793e7e9ec 100644 --- a/Master/texmf-dist/source/latex/mismath/mismath.dtx +++ b/Master/texmf-dist/source/latex/mismath/mismath.dtx @@ -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@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}{ -% - Using bslash in the internal mm@warning macro, -% - loading of mathfixs package} % \changes{v1.3}{2019/05/08}{ +% - Using bslash in the internal mm@warning macro, +% - 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,15 +212,23 @@ % - 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} % @@ -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@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 \\ -% fourier & \otherpi\\ % kpfonts & \pikp \\ +% fourier & \otherpi\\ % 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@mathdesign \define@choicekey{pinumber}{mathdesign}[\mm@mathdesign@option]% {Utopia,Garamond,Charter}[Charter]{\mm@mathdesigntrue} -\define@boolkey{pinumber}[mm@]{fourier}[true]{} \newif\ifmm@kpfonts \define@choicekey{pinumber}{kpfonts}[\mm@kp@option]% {normal,light}[normal]{\mm@kpfontstrue} +\define@boolkey{pinumber}[mm@]{fourier}[true]{} \define@boolkey{pinumber}[mm@]{pxfonts}[true]{} \define@boolkey{pinumber}[mm@]{txfonts}[true]{} @@ -1638,7 +1646,22 @@ \fi\fi \let\savedpi\pi - }{\renewcommand{\pi}{\csname #1\endcsname}\let\savedpi\pi} + }{ + \ifmm@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 + } }} } } |