texlive[62561] Master/texmf-dist: mhequ (9mar22)

commits+karl at tug.org commits+karl at tug.org
Wed Mar 9 22:16:36 CET 2022

Revision: 62561
Author:   karl
Date:     2022-03-09 22:16:36 +0100 (Wed, 09 Mar 2022)
Log Message:
mhequ (9mar22)

Modified Paths:

Modified: trunk/Master/texmf-dist/doc/latex/mhequ/README
--- trunk/Master/texmf-dist/doc/latex/mhequ/README	2022-03-09 21:16:19 UTC (rev 62560)
+++ trunk/Master/texmf-dist/doc/latex/mhequ/README	2022-03-09 21:16:36 UTC (rev 62561)
@@ -1,5 +1,5 @@
 mhequ package by Martin Hairer
-Version 1.7 dated 25/08/2015
+Version 1.71 dated 9 March 2022
 This package provides an easy way to typeset multilign / multicolumn 
 equations and to add subequation numbering. See the example and the 

Modified: trunk/Master/texmf-dist/doc/latex/mhequ/example.pdf
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/mhequ/example.tex
--- trunk/Master/texmf-dist/doc/latex/mhequ/example.tex	2022-03-09 21:16:19 UTC (rev 62560)
+++ trunk/Master/texmf-dist/doc/latex/mhequ/example.tex	2022-03-09 21:16:36 UTC (rev 62561)
@@ -1,4 +1,5 @@
@@ -11,25 +12,45 @@
-\title{Using the mhequ package}
+\title{Using the \texttt{mhequ} package}
 \author{Martin Hairer}
-\date{Version 1.7, \today}
+\date{Version 1.71, \today}
+This package provides two environments: \texttt{equ} for single-line equations
+and \texttt{equs} for multi-line equations. They behave similarly to the built-in
+\texttt{equation} and \texttt{amsmath}'s \texttt{align} environments and can essentially
+be used as drop-in replacements. The main difference is that equation numbers are 
+handled differently: equations are numbered if and only if they have a \verb|\label|,
+so there is no need for starred versions. This also applies to individual lines in
+a multiline equation. Also, the \texttt{equs} environment supports blocks of equation
+with more
+Since \texttt{mhequ} redefines the \verb|\tag| and \verb|\intertext| commands, it should
+always be loaded \textit{after} the \texttt{amsmath} package. However, these
+two commands should still behave correctly inside the \texttt{amsmath} environments.
+The rest of this document demonstrates the usage of the \texttt{mhequ} package,
+it is easiest to just read the source code of this document to see how it works.
+See also the description given at the start of the file \texttt{mhequ.sty}.
 Here is a simple labelled equation:
-	\sum_{i=1}^5 X_i^j X^j_i = y^j \;.
+	e^{i\pi} + 1 = 0 \;.
 Removing or adding the label does not require a change of environment:
-	\sum_{i=1}^5 X_i^j X^j_i = y^j \;.
+	e^{i\pi} + 1 = 0 \;.
 However, if the option \texttt{numberall} is set, then every single 
 equation is numbered.
 A simple list of equations can be displayed either with one number
 per equation
+	f(x) &= \sin(x) + 1\;, \label{e:equ1}\\
+	h(x) &= f(x) + g(x) -3\;, \label{e:equ3}
 	f(x) &= \sin(x) + 1\;, \label{e:equ1}\\
 	h(x) &= f(x) + g(x) -3\;, \label{e:equ3}
@@ -37,14 +58,15 @@
 or with one number for the whole list
 	f(x) &= \sin(x) + 1\;, \\
-	h(x) &= f(x) + g(x) -3\;,
+	h(x) &= f(x) + g(x) -3\;.
-using only a very small modification in the syntax. Of course, it can also have no number at all:
+Of course, it can also have no number at all:
 	f(x) &= \sin(x) + 1\;, \\
 	h(x) &= f(x) + g(x) -3\;.
-Let us make a first group:
+The command \verb|\minilab{label_name}| allows us to create a counter for the lines
+in a block of equations.
 	f(x) &= \sin(x) + 1\;, \label{e:f}\\
@@ -53,11 +75,12 @@
 One can refer to the whole block \eref{otherlabel} or to one
 line, like \eref{e:f} for example. 
-It is possible to use any tag one likes with the \texttt{\string\tag}
+It is possible to use any tag one likes with the \verb|\tag{displayed_tag}|
-	 x = y\;. \tag{$\star$}
+	 x = y\;, \tag{$\star$}
+which in this case was used as \verb|\tag{$\star$}|.
 Such an equation can be referred to as usual: \eref{mylabel}.
 Of course, \texttt{mhequ} can be used in conjunction with the usual \texttt{equation} environment, 
 but \texttt{mhequ} is great, so why would you want to do this? 
@@ -75,7 +98,8 @@
 \intertext{and also (this is some \texttt{\string\intertext})}
 	x&=y+z    &\qquad   a&= (b+c)^2 - 5 &\qquad \ell&= m\label{labb}
-We can even extend the block \eref{otherlabel} much later like
+We can even extend the block \eref{otherlabel} much later
+using the \verb|\minilab{label_name}| command:
 	x&=y+z &\quad x&=y+z  &\quad f(x)&= b\label{e:x1}\\
@@ -83,7 +107,7 @@
 	\multicol{6}{\sin^2 x + \cos^2 x = 1} \label{e:x3}
 It is possible to change the type of subnumbering and to use the 
-\texttt{\string\text} command without having to load \texttt{amstext}, like so
+\texttt{\string\text} command without having to load \texttt{amstext}:

Modified: trunk/Master/texmf-dist/tex/latex/mhequ/mhequ.sty
--- trunk/Master/texmf-dist/tex/latex/mhequ/mhequ.sty	2022-03-09 21:16:19 UTC (rev 62560)
+++ trunk/Master/texmf-dist/tex/latex/mhequ/mhequ.sty	2022-03-09 21:16:36 UTC (rev 62561)
@@ -1,6 +1,6 @@
-% mhequ.sty v1.7, Copyright 2015 by Martin Hairer
+% mhequ.sty v1.71, 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!
@@ -160,7 +160,7 @@
 \def\@MHputnumber{\if at MHhaslab\@MHstep\if at MHleft\@MHwritelabel\fi%
-        \hbox{\rm(\@MHeqno)}%
+        \hbox{\textrm(\@MHeqno)}%
 	\if at MHleft\else\@MHwritelabel\fi%

More information about the tex-live-commits mailing list.