texlive[74752] Master/texmf-dist: mathfixs (26mar25)
commits+karl at tug.org
commits+karl at tug.org
Wed Mar 26 21:02:02 CET 2025
Revision: 74752
https://tug.org/svn/texlive?view=revision&revision=74752
Author: karl
Date: 2025-03-26 21:02:02 +0100 (Wed, 26 Mar 2025)
Log Message:
-----------
mathfixs (26mar25)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/mathfixs/README.txt
trunk/Master/texmf-dist/doc/latex/mathfixs/mafxsamp.tex
trunk/Master/texmf-dist/doc/latex/mathfixs/mathfixs.pdf
trunk/Master/texmf-dist/source/latex/mathfixs/mathfixs.dtx
trunk/Master/texmf-dist/source/latex/mathfixs/mathfixs.ins
trunk/Master/texmf-dist/tex/latex/mathfixs/mathfixs.sty
Modified: trunk/Master/texmf-dist/doc/latex/mathfixs/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mathfixs/README.txt 2025-03-26 20:01:53 UTC (rev 74751)
+++ trunk/Master/texmf-dist/doc/latex/mathfixs/README.txt 2025-03-26 20:02:02 UTC (rev 74752)
@@ -1,5 +1,5 @@
-mathfixs v1.12
-Copyright 2018-2024 Niklas Beisert
+mathfixs v1.1.3
+Copyright 2018-2025 Niklas Beisert
mathfixs is a LaTeX2e package to fix some odd behaviour in math mode
such as spacing around fractions and roots, math symbols within bold
@@ -22,8 +22,8 @@
Run "latex mathfixs.ins" to create the package mathfixs.sty
and the sample mafxsamp.tex.
-Copy the file mathfixs.sty to an appropriate directory of your LaTeX
-distribution, e.g. texmf-root/tex/latex/mathfixs.
+Copy the file mathfixs.sty to an appropriate directory
+of your LaTeX distribution, e.g. texmf-root/tex/latex/mathfixs.
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
Modified: trunk/Master/texmf-dist/doc/latex/mathfixs/mafxsamp.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/mathfixs/mafxsamp.tex 2025-03-26 20:01:53 UTC (rev 74751)
+++ trunk/Master/texmf-dist/doc/latex/mathfixs/mafxsamp.tex 2025-03-26 20:02:02 UTC (rev 74752)
@@ -6,7 +6,7 @@
%%
%% mathfixs.dtx (with options: `sample')
%%
-%% Copyright (C) 2018-2024 Niklas Beisert
+%% Copyright (C) 2018-2025 Niklas Beisert
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -17,7 +17,7 @@
%% version 2008 or later.
%%
\NeedsTeXFormat{LaTeX2e}[1996/12/01]
-\ProvidesFile{mafxsamp.tex}[2024/11/18 v1.12 sample for mathfixs]
+\ProvidesFile{mafxsamp.tex}[2025/03/25 v1.1.3 sample for mathfixs]
\documentclass[12pt]{article}
\usepackage{geometry}
Modified: trunk/Master/texmf-dist/doc/latex/mathfixs/mathfixs.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/mathfixs/mathfixs.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/mathfixs/mathfixs.dtx 2025-03-26 20:01:53 UTC (rev 74751)
+++ trunk/Master/texmf-dist/source/latex/mathfixs/mathfixs.dtx 2025-03-26 20:02:02 UTC (rev 74752)
@@ -1,7 +1,8 @@
-% \iffalse
%
-% mathfixs.dtx Copyright (C) 2018-2024 Niklas Beisert
+% \iffalse meta-comment
%
+% mathfixs.dtx Copyright (C) 2018-2025 Niklas Beisert
+%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
@@ -18,26 +19,29 @@
% and the derived files mathfixs.sty and mafxsamp.tex.
%
%<package|sample>\NeedsTeXFormat{LaTeX2e}[1996/12/01]
-%<package>\ProvidesPackage{mathfixs}[2024/11/18 v1.12 various fixes for math mode]
-%<sample>\ProvidesFile{mafxsamp.tex}[2024/11/18 v1.12 sample for mathfixs]
+%<package>\ProvidesPackage{mathfixs}[2025/03/25 v1.1.3 various fixes for math mode]
+%<sample>\ProvidesFile{mafxsamp.tex}[2025/03/25 v1.1.3 sample for mathfixs]
%<*driver>
-\def\thedate#1{2024/11/18}\def\theversion#1{v1.12}
+\def\thedate#1{2025/03/25}\def\theversion#1{v1.1.3}
\ProvidesFile{mathfixs.dtx}[\thedate{} \theversion{} mathfixs reference manual file]
\PassOptionsToClass{10pt,a4paper}{article}
\documentclass{ltxdoc}
\usepackage[margin=35mm]{geometry}
-\usepackage{hyperref}
+\usepackage[hyperindex=false]{hyperref}
\usepackage{hyperxmp}
\usepackage[usenames]{color}
\usepackage{amssymb}
-\hypersetup{colorlinks=true}
-\hypersetup{pdfstartview=FitH}
-\hypersetup{pdfpagemode=UseNone}
+\AddToHook{begindocument/before}{\hypersetup{colorlinks=false}}
+\hypersetup{urlbordercolor={.5 1 1}}
+\hypersetup{linkbordercolor={1 .7 .7}}
+\AddToHook{begindocument/before}{\hypersetup{pdfstartview=FitH}}
+\hypersetup{keeppdfinfo=true}
\hypersetup{pdfsource={}}
\hypersetup{pdflang={en-UK}}
-\hypersetup{pdfcopyright={Copyright 2018-2024 Niklas Beisert.
+\hypersetup{pdfurl={https://ctan.org/pkg/mathfixs}}
+\hypersetup{pdfcopyright={Copyright 2018-2025 Niklas Beisert.
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
of this license or (at your option) any later version.}}
@@ -50,10 +54,13 @@
\hypersetup{pdfcontactemail={nbeisert at itp.phys.ethz.ch}}
\hypersetup{pdfcontacturl={https://people.phys.ethz.ch/\xmptilde nbeisert/}}
+\newcommand{\markpkg}[1]{\textsf{#1}}
\newcommand{\secref}[1]{\hyperref[#1]{section \ref*{#1}}}
\newcommand{\ctanref}[2]{\href{https://ctan.org/#1}{#2}}
-\newcommand{\ctanpkg}[1]{\ctanref{pkg/#1}{\textsf{#1}}}
+\newcommand{\ctanpkg}[1]{\ctanref{pkg/#1}{\markpkg{#1}}}
+\def\textvert{\texttt{\char"7C}}
+
\parskip1ex
\parindent0pt
\let\olditemize\itemize
@@ -61,7 +68,7 @@
\begin{document}
-\title{The \textsf{mathfixs} Package}
+\title{The \markpkg{mathfixs} Package}
\hypersetup{pdftitle={The mathfixs Package}}
\author{Niklas Beisert\\[2ex]
Institut f\"ur Theoretische Physik\\
@@ -71,11 +78,12 @@
{\texttt{nbeisert at itp.phys.ethz.ch}}}
\hypersetup{pdfauthor={Niklas Beisert}}
\hypersetup{pdfsubject={Manual for the LaTeX2e Package mathfixs}}
-\date{\thedate{}, \theversion{}}
+\date{\thedate{}, \theversion{}\\[1ex]
+\url{https://ctan.org/pkg/mathfixs}}
\maketitle
\begin{abstract}\noindent
-\textsf{mathfixs} is a \LaTeXe{} package
+\markpkg{mathfixs} is a \LaTeXe{} package
to fix some odd behaviour in math mode such as
spacing around fractions and roots,
math symbols within bold text
@@ -126,7 +134,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Usage}
-To use the package \textsf{mathfixs} add the command
+To use the package \ctanpkg{mathfixs} add the command
%
\begin{center}
|\usepackage{mathfixs}|
@@ -207,7 +215,7 @@
which results in no surrounding space.
A simple resolution is to assign the math class
of inner objects (|\mathinner|) to fractions
-as described in the \textsf{\TeX{}book}, e.g.
+as described in the \markpkg{\TeX{}book}, e.g.
%
\begin{center}
|x\mathinner{\frac{a+b}{c+d}}\mathinner{\frac{e}{f}}.|
@@ -280,7 +288,7 @@
the expression for the fraction as its single parameter.
Likewise, the option |fracdelimclass=|\textit{class}
customises the math class of fractions with delimiters
-generated by |\genfrac| such as |\|[|d|$\vert$|t|]|binom|.
+generated by |\genfrac| such as |\|[|d|\textvert|t|]|binom|.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\paragraph{Feature \texttt{rfrac}.}
@@ -581,7 +589,7 @@
and they provide worthwhile alternative representations for some
functions and operators. All of the following features require
that the package \ctanpkg{amsopn} (part of \ctanpkg{amsmath})
-is loaded \emph{before} \textsf{mathfixs}.
+is loaded \emph{before} \ctanpkg{mathfixs}.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\paragraph{Native \LaTeX{} Functions and Operators.}
@@ -954,7 +962,7 @@
at the time of loading, it will be used.
Otherwise an upright |\pi| can be supplied by package \ctanpkg{unicode-math}.
Note that the feature |piconst| (without |*|) may interfere
-with the feature |greeklower|.
+with the feature |greeklower|.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\paragraph{Derivative Symbols.}
@@ -1047,7 +1055,7 @@
|\Real| & $\mathbb{R}$ & field of real numbers \\
|\Complex| & $\mathbb{C}$ & field of complex numbers \\
|\Quaternion| & $\mathbb{H}$ & skew field of quaternions \\
-|\Octonion| & $\mathbb{O}$ & division algebra of quaternions \\
+|\Octonion| & $\mathbb{O}$ & division algebra of octonions \\
\end{tabular}
\end{center}
%
@@ -1059,7 +1067,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Copyright}
-Copyright \copyright{} 2018--2024 Niklas Beisert
+Copyright \copyright{} 2018--2025 Niklas Beisert
This work may be distributed and/or modified under the
conditions of the \LaTeX{} Project Public License, either version 1.3
@@ -1160,6 +1168,27 @@
\subsection{Revision History}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\iffalse
+\paragraph{vN.N.N+:} 20YY/MM/NN
+
+\begin{itemize}
+\item
+\ldots
+\end{itemize}
+\fi
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\paragraph{v1.1.3:} 2025/03/25
+
+\begin{itemize}
+\item
+declared more features as robust commands (for use in titles, captions, etc.;
+thanks to Jon\'a\v{s} Dujava for bug report)
+\item
+maintenance and manual update
+\end{itemize}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\paragraph{v1.12:} 2024/11/18
\begin{itemize}
@@ -1240,7 +1269,7 @@
%\fi
%
% In this section we provide an example of how to use
-% some of the \textsf{mathfixs} features.
+% some of the \ctanpkg{mathfixs} features.
% We also test the behaviour in some special cases.
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -1251,7 +1280,7 @@
\documentclass[12pt]{article}
% \end{macrocode}
-% Use package \textsf{geometry} to adjust the page layout,
+% Use package \ctanpkg{geometry} to adjust the page layout,
% adjust the paragraph shape:
% \begin{macrocode}
\usepackage{geometry}
@@ -1262,7 +1291,7 @@
% \end{macrocode}
% Include \ctanpkg{amsmath}, \ctanpkg{amssymb}
-% and the \textsf{mathfixs} package:
+% and the \ctanpkg{mathfixs} package:
% \begin{macrocode}
\RequirePackage{amsmath,amssymb}
\RequirePackage[autobold]{mathfixs}
@@ -1512,11 +1541,11 @@
% (if not already in math mode where font selection works differently).
% The chain of |\expandafter| directives fills in the original definition:
% \begin{macrocode}
-\expandafter\def\expandafter\mafx at bfseries\expandafter
+\expandafter\DeclareRobustCommand\expandafter\mafx at bfseries\expandafter
{\bfseries\ifmmode\else\boldmath\fi}
-\expandafter\def\expandafter\mafx at mdseries\expandafter
+\expandafter\DeclareRobustCommand\expandafter\mafx at mdseries\expandafter
{\mdseries\ifmmode\else\unboldmath\fi}
-\expandafter\def\expandafter\mafx at normalfont\expandafter
+\expandafter\DeclareRobustCommand\expandafter\mafx at normalfont\expandafter
{\normalfont\ifmmode\else\unboldmath\fi}
% \end{macrocode}
@@ -1571,7 +1600,7 @@
% math class selector:
% \begin{macrocode}
\DeclareRobustCommand{\mafx at frac}[2]{%
- \mafx at frac@class{\begingroup#1\endgroup\@@over#2}}
+ \mafx at frac@class{\begingroup#1\endgroup\@@over#2}}
% \end{macrocode}
% \macro{\genfrac}
@@ -1580,7 +1609,7 @@
% If the package \ctanpkg{amsmath} is not loaded, this definition will
% have no impact:
% \begin{macrocode}
-\def\mafx@@genfrac#1#2#3#4#5{\begingroup
+\DeclareRobustCommand{\mafx@@genfrac}[5]{\begingroup
\ifx#2\@@overwithdelims\let\mafx at frac@class\mafx at frac@delimclass\fi
\ifx#2\@@abovewithdelims\let\mafx at frac@class\mafx at frac@delimclass\fi
\ifx#2\@@atopwithdelims\let\mafx at frac@class\mafx at frac@delimclass\fi
@@ -1823,8 +1852,8 @@
\let\mafx at old@dot=\.
\def\mafx at dot@skip{\thinmuskip}
\def\mafx at dot{\mskip\mafx at dot@skip}
-\def\mafx at per@dot{\begingroup\ifmmode\def\mafx at tmp{\mafx at dot}\else
- \def\mafx at tmp{\mafx at old@dot}\fi\expandafter\endgroup\mafx at tmp}
+\DeclareRobustCommand{\mafx at per@dot}{%
+ \ifmmode\expandafter\mafx at dot\else\expandafter\mafx at old@dot\fi}
% \end{macrocode}
% \macro{multskip}
@@ -1957,7 +1986,7 @@
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \paragraph{Assorted Functions, Operators, Symbols.}
%
-% The following definitions require \ctanpkg{amsmath}:
+% The following definitions require \ctanpkg{amsopn}:
% \begin{macrocode}
\ifdefined\DeclareMathOperator
% \end{macrocode}
@@ -2158,7 +2187,7 @@
\define at key{mafx@}{vecrot}[\curl]{\let#1=\mafx at rot}
% \end{macrocode}
-% The above definitions required \ctanpkg{amsmath}:
+% The above definitions required \ctanpkg{amsopn}:
% \begin{macrocode}
\fi
% \end{macrocode}
Modified: trunk/Master/texmf-dist/source/latex/mathfixs/mathfixs.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/mathfixs/mathfixs.ins 2025-03-26 20:01:53 UTC (rev 74751)
+++ trunk/Master/texmf-dist/source/latex/mathfixs/mathfixs.ins 2025-03-26 20:02:02 UTC (rev 74752)
@@ -4,7 +4,7 @@
\keepsilent
\preamble
-Copyright (C) 2018-2024 Niklas Beisert
+Copyright (C) 2018-2025 Niklas Beisert
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
@@ -16,7 +16,6 @@
\endpreamble
-% the style and sample files
\generate{\askforoverwritefalse
\file{mathfixs.sty}{\from{mathfixs.dtx}{package}}
\file{mafxsamp.tex}{\from{mathfixs.dtx}{sample}}
Modified: trunk/Master/texmf-dist/tex/latex/mathfixs/mathfixs.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/mathfixs/mathfixs.sty 2025-03-26 20:01:53 UTC (rev 74751)
+++ trunk/Master/texmf-dist/tex/latex/mathfixs/mathfixs.sty 2025-03-26 20:02:02 UTC (rev 74752)
@@ -6,7 +6,7 @@
%%
%% mathfixs.dtx (with options: `package')
%%
-%% Copyright (C) 2018-2024 Niklas Beisert
+%% Copyright (C) 2018-2025 Niklas Beisert
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -17,15 +17,15 @@
%% version 2008 or later.
%%
\NeedsTeXFormat{LaTeX2e}[1996/12/01]
-\ProvidesPackage{mathfixs}[2024/11/18 v1.12 various fixes for math mode]
+\ProvidesPackage{mathfixs}[2025/03/25 v1.1.3 various fixes for math mode]
\RequirePackage{keyval}
-\expandafter\def\expandafter\mafx at bfseries\expandafter
+\expandafter\DeclareRobustCommand\expandafter\mafx at bfseries\expandafter
{\bfseries\ifmmode\else\boldmath\fi}
-\expandafter\def\expandafter\mafx at mdseries\expandafter
+\expandafter\DeclareRobustCommand\expandafter\mafx at mdseries\expandafter
{\mdseries\ifmmode\else\unboldmath\fi}
-\expandafter\def\expandafter\mafx at normalfont\expandafter
+\expandafter\DeclareRobustCommand\expandafter\mafx at normalfont\expandafter
{\normalfont\ifmmode\else\unboldmath\fi}
\define at key{mafx@}{autobold}[]{%
@@ -44,9 +44,9 @@
\def\mafx at frac@delimclass{\mathopen{}\mathclose}
\DeclareRobustCommand{\mafx at frac}[2]{%
- \mafx at frac@class{\begingroup#1\endgroup\@@over#2}}
+ \mafx at frac@class{\begingroup#1\endgroup\@@over#2}}
-\def\mafx@@genfrac#1#2#3#4#5{\begingroup
+\DeclareRobustCommand{\mafx@@genfrac}[5]{\begingroup
\ifx#2\@@overwithdelims\let\mafx at frac@class\mafx at frac@delimclass\fi
\ifx#2\@@abovewithdelims\let\mafx at frac@class\mafx at frac@delimclass\fi
\ifx#2\@@atopwithdelims\let\mafx at frac@class\mafx at frac@delimclass\fi
@@ -151,8 +151,8 @@
\let\mafx at old@dot=\.
\def\mafx at dot@skip{\thinmuskip}
\def\mafx at dot{\mskip\mafx at dot@skip}
-\def\mafx at per@dot{\begingroup\ifmmode\def\mafx at tmp{\mafx at dot}\else
- \def\mafx at tmp{\mafx at old@dot}\fi\expandafter\endgroup\mafx at tmp}
+\DeclareRobustCommand{\mafx at per@dot}{%
+ \ifmmode\expandafter\mafx at dot\else\expandafter\mafx at old@dot\fi}
\define at key{mafx@}{multskip}[\thinmuskip]{%
\let\.=\mafx at per@dot
More information about the tex-live-commits
mailing list.