I would like to align equations within an enumerate-environment.
\documentclass{article}
\usepackage{amsmath,enumitem}
\begin{document}
\begin{enumerate}
\item $3x+5=18$
\item $x=27-39x$
\end{enumerate}
\end{document}
I would like to have the = aligned to each other. Is there a way to do it automatcally? I am looking for a simple solution, like typing a &. I would like to do it without unhandy solutions like a table. Is there anyway? I also do not like the command eqmakebox.
\eqmathboxmakes the alignment automatic, but requires intervention. You can also place manual\hphantoms of the largest left-/right-hand sides everywhere. But that it's automatic. – Werner Aug 26 '23 at 00:18&wherever you want alignments. Then you split up the contents of that environment at every\itemand&so you can have a handle on each component (I can't help with this). However, I foresee you suddenly wanting automated double alignments (two equations), or work with nested lists, or have some other restriction that builds on this... (La)TeX generates beautiful output, but you sometimes have to code to make it work. – Werner Aug 26 '23 at 17:27