I use the following code to define math operations, here a group operation.
Code: Select all
%preamble: centers content in an alignat cell, instead of left/right alignment
\newcommand*\centermathcell[1]{\omit\hfil$\displaystyle#1$\hfil\ignorespaces}
% usage in text: definition of a binary operation with subequation label on each line
\begin{subequations}
\begin{alignat}{5}
& \circ && \ :\quad && \centermathcell{G \times G } && \centermathcell{\quad\to\quad} && G\\
& && && \centermathcell{(g, h)} && \centermathcell{\quad\mapsto\quad} && g \circ h := \circ(g, h)
\end{alignat}
\end{subequations}
Can anyone help me with the placement of the "comma"/"point" at the end of the definition and still have the sub equation labels on each line.
Thx in advance.
Kind regards,
Jens