Is there a robust equation-numbering environment
in which I can:
- Have as many columns as I would like (default centered, like a matrix).
- Mark start and end of line(s) I would like numbered.
- Center the numbering across multiple lines which were group numbered.
- Use multicolumn / multirow wherever.
Actual MWE:
\documentclass{scrreprt}
\usepackage{amsmath}
\begin{document}
\begin{gather}
\begin{array}{ccccccccccccc}
K_{\ddot{\phi}}
& \cdot
\begin{bmatrix}
\ddot{\phi}_{x}\\
\ddot{\phi}_{y}\\
\end{bmatrix}
& + &
K_{\dot{\phi}}
& \cdot
\begin{bmatrix}
\dot{\phi}_{x}\\
\dot{\phi}_{y}\\
\end{bmatrix}
& + &
K_{\phi}
& \cdot
\begin{bmatrix}
\phi_{x}\\
\phi_{y}\\
\end{bmatrix}
& = &
K_{v}
& \cdot
\begin{bmatrix}
v_{mtr.l}\\
v_{mtr.r}\\
\end{bmatrix}
%%
\\[+2em]
%%
I
& \cdot
\begin{bmatrix}
\ddot{\phi}_{x}\\
\ddot{\phi}_{y}\\
\end{bmatrix}
& = &
-K_{\ddot{\phi}}^{-1}
\cdot
K_{\dot{\phi}}
& \cdot
\begin{bmatrix}
\dot{\phi}_{x}\\
\dot{\phi}_{y}\\
\end{bmatrix}
& + &
-K_{\ddot{\phi}}^{-1}
\cdot
K_{\phi}
& \cdot
\begin{bmatrix}
\phi_{x}\\
\phi_{y}\\
\end{bmatrix}
& + &
K_{\ddot{\phi}}^{-1}
\cdot
K_{v}
& \cdot
\begin{bmatrix}
v_{mtr.l}\\
v_{mtr.r}\\
\end{bmatrix}
\end{array}
%%
\end{gather}
\end{document}
This MWE does not encapsulate all requested features,
but, for example,
I would have liked to have centered all depicted vectors.
Desired Example:
\begin{Equation}
%%
\begin{numbered}
\label{EQN:A}
y & = & m \cdot x
\end{numbered}
%%
\\
%%
y & = & m & \cdot & x
%%
\\
\begin{numbered}
\label{EQN:B}
%%
y & = & M & \cdot & x
%%
\\
%%
Y & = & M & \cdot & X
%%
\end{numbered}
%%
\end{Equation}
(Sorry for the lack of originality in the example.)
Effectively, the Equation environment would allow
the entire list of equations to act as a matrix* or tabular,
and the nested enviroment numbered would encapsulate numbering,
without disrupting the indexing of the matrix.


Equationenvironment remains to be defined? – Bernard Jul 16 '17 at 18:57Equationwith a capitol E because I assumed that it doesn't exist yet. Just a generic name.. – kando Jul 16 '17 at 19:21ccolumn components such that the equals signs are vertically aligned, the vectors are vertically aligned, etcetera. Align only allows for two columns, before expecting there are multiple equations on one line and making undesired horizontal spacing adjustments. Array allows for multiple 'c' columns, but I cannot, to my knowledge, have multiple numbered lines within the same array environment. – kando Jul 16 '17 at 22:13alignandarray. On top of that, I'd like improved control over which lines are numbered, which lines are not numbered, and which sets of multiple lines are numbered. – kando Jul 16 '17 at 22:17alignatbut it is hard to guess – David Carlisle Jul 16 '17 at 22:25