Consider the following example from https://tex.stackexchange.com/a/12782/4011
\documentclass{article}
\usepackage{amsmath}
\newcounter{eqn}
\renewcommand*{\theeqn}{\alph{eqn})}
\newcommand{\num}{\refstepcounter{eqn}\text{\theeqn}\quad}
\begin{document}
\begin{alignat*}{6}
\num&& x^2 + y^2 &= 1 \qquad& \num&& a + b &= c
& \num&& r-x &= y+z \\
\num&\quad& f - y &= z & \num&& a - b &= 2d
\qquad& \num&& r+x &= 2y-3z
\end{alignat*}
\end{document}
Here one has (as usual) to specify where to break the line via \\
. However is there a way to do the linebreak automatically, such that you give the space between the equations and TeX
automatically decides how much equations fit (under the constraint of the given spaces) into the fullest row (say n) and breaks the lines so that you get n equations in each row alignet like in the example above.
Best Answer
You can use a vertical alignment to get the measuring done and then re-flow them in a horizontal layout: