summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-11-09 21:08:02 +0000
committerKarl Berry <karl@freefriends.org>2022-11-09 21:08:02 +0000
commitd6a12751a6fbdefb749e6a31cc8934763b18ec7f (patch)
treef971d17518322a4eb64bd2fae0299f96f0ddd6f8 /Master
parent1b3a0d2fd41be6da2783900f7e03472c9f8f6c1e (diff)
mhequ (9nov22)
git-svn-id: svn://tug.org/texlive/trunk@64978 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/mhequ/README2
-rw-r--r--Master/texmf-dist/doc/latex/mhequ/mhequ-example.pdf (renamed from Master/texmf-dist/doc/latex/mhequ/example.pdf)bin119518 -> 120072 bytes
-rw-r--r--Master/texmf-dist/doc/latex/mhequ/mhequ-example.tex (renamed from Master/texmf-dist/doc/latex/mhequ/example.tex)2
-rw-r--r--Master/texmf-dist/tex/latex/mhequ/mhequ.sty36
4 files changed, 26 insertions, 14 deletions
diff --git a/Master/texmf-dist/doc/latex/mhequ/README b/Master/texmf-dist/doc/latex/mhequ/README
index ab177e8714e..ae911a34173 100644
--- a/Master/texmf-dist/doc/latex/mhequ/README
+++ b/Master/texmf-dist/doc/latex/mhequ/README
@@ -1,5 +1,5 @@
mhequ package by Martin Hairer
-Version 1.71 dated 9 March 2022
+Version 1.72 dated 8 November 2022
This package provides an easy way to typeset multilign / multicolumn
equations and to add subequation numbering. See the example and the
diff --git a/Master/texmf-dist/doc/latex/mhequ/example.pdf b/Master/texmf-dist/doc/latex/mhequ/mhequ-example.pdf
index 34bdd22f0e3..8b5f9ee25e9 100644
--- a/Master/texmf-dist/doc/latex/mhequ/example.pdf
+++ b/Master/texmf-dist/doc/latex/mhequ/mhequ-example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/mhequ/example.tex b/Master/texmf-dist/doc/latex/mhequ/mhequ-example.tex
index e839a9d89a1..a7987f41d7c 100644
--- a/Master/texmf-dist/doc/latex/mhequ/example.tex
+++ b/Master/texmf-dist/doc/latex/mhequ/mhequ-example.tex
@@ -14,7 +14,7 @@
\title{Using the \texttt{mhequ} package}
\author{Martin Hairer}
-\date{Version 1.71, \today}
+\date{Version 1.72, 9 November 2022}
\maketitle
\thispagestyle{empty}
diff --git a/Master/texmf-dist/tex/latex/mhequ/mhequ.sty b/Master/texmf-dist/tex/latex/mhequ/mhequ.sty
index 48f7fd0bfcd..bc22f562acb 100644
--- a/Master/texmf-dist/tex/latex/mhequ/mhequ.sty
+++ b/Master/texmf-dist/tex/latex/mhequ/mhequ.sty
@@ -1,6 +1,6 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-% mhequ.sty v1.71, Copyright 2022 by Martin Hairer
+% mhequ.sty v1.72, Copyright 2022 by Martin Hairer
% This package is public domain. You are strongly encouraged to use
% it and to distribute it further. If you have some contribution to
% it, please let me know!
@@ -84,8 +84,20 @@
\newif\if@MHtag
\newif\if@MHleft
\newif\if@MHflush
+\newif\if@MHglobals
\@MHnumberallfalse
-
+\@MHglobalstrue
+
+\def\@MHsaveglobals{%
+\if@MHglobals
+\global\let\MHglobal@label=\label
+\global\let\MHglobal@ref=\ref
+\global\let\MHglobal@multicol=\multicol
+\global\let\MHglobal@notag=\notag
+\global\let\MHglobal@text\text
+\global\let\MHsavecr=\\
+\@MHglobalsfalse\fi
+}
\ProcessOptions
@@ -101,7 +113,7 @@
\def\@MHresetlab{\if@MHnumberall\global\@MHhaslabtrue\else\global\@MHhaslabfalse\fi}
\@MHresetlab
-\def\@MHref#1{\@ifundefined{r@#1}{??}{\@saveref{#1}}}
+\def\@MHref#1{\@ifundefined{r@#1}{??}{\MHglobal@ref{#1}}}
%%%%% Computes the length of its argument
\newcount\@MHLength
\def\computelength#1{\@MHLength=0 \getlength#1\end}
@@ -113,7 +125,7 @@
{}\string\setcounter{lab@#1}{0}}%
\global\expandafter\let\expandafter\c@MHCurrentCount\csname c@lab@#1\endcsname%
\global\@namedef{MHused@#1}{}%
- \def\@currentlabel{\theequation}\MHsavelabel{#1}%
+ \def\@currentlabel{\theequation}\MHglobal@label{#1}%
}
\def\@uselabel#1{\global\def\@mylabel{#1}
\global\expandafter\let\expandafter\c@MHCurrentCount\csname c@lab@#1\endcsname
@@ -153,7 +165,7 @@
\def\@MHwritelabel{\def\@currentlabel{\@MHeqno}%
\if@MHleft\kern\displaywidth\kern0.2truecm\else\kern0.2cm\fi%
- \MHsavelabel{\@MHcurrentlabel}%
+ \MHglobal@label{\@MHcurrentlabel}%
\if@MHleft\kern-\displaywidth\kern-0.2truecm\else\kern-0.2cm\fi}
\def\@MHstep{\if@MHtag\else\if@MHuseminilab\stepcounter{MHCurrentCount}%
@@ -166,18 +178,18 @@
\def\@MHnotag{\@MHhaslabfalse}
-\def\@saveMHComms{\@restoretag\let\MHsavecr=\\\let\\=\@MHcr\let\@saveref=\ref\let\ref=\@MHref%
- \let\MHsavelabel=\label\let\label=\@MHlabel\let\@MHsavemult\multicol\let\@MHsavetag\notag\let\notag\@MHnotag%
- \let\multicol\@MHspan\let\@MHsavetext\text\let\text\hbox\let\@MHsaveequation\theequation\let\theequation\@MHequation}
-\def\@restoreMHComms{\let\\=\MHsavecr\let\label=\MHsavelabel\@MHreset\let\ref=\@saveref%
- \let\multicol\@MHsavemult\let\notag\@MHsavetag\let\text\@MHsavetext\let\theequation\@MHsaveequation\global\def\@MHequation{\@MHsaveequation}}
+\def\@saveMHComms{\@MHsaveglobals\@restoretag\let\\=\@MHcr\let\ref=\@MHref%
+ \let\label=\@MHlabel\let\notag\@MHnotag%
+ \let\multicol\@MHspan\let\text\hbox}
+\def\@restoreMHComms{\let\\=\MHsavecr\let\label=\MHglobal@label\@MHreset\let\ref=\MHglobal@ref%
+ \let\multicol\MHglobal@multicol\let\notag\MHglobal@notag\let\text\MHglobal@text}
-\def\@minilab#1{\let\MHsavelabel=\label%
+\def\@minilab#1{%
\@MHUseLab{#1}\@ifundefined{MHused@#1}%
{\@makelabel{#1}}{\@uselabel{#1}}%
- \let\label=\MHsavelabel\egroup\global\@ignoretrue}
+ \let\label=\MHglobal@label\egroup\global\@ignoretrue}
\def\minilab{\bgroup\MH@changecodes\@minilab}
\def\@MHequation{\@MHsaveequation}