我有以下代码/尝试:
\documentclass[]{article}
\usepackage{amsmath}
\usepackage{eqparbox}
\begin{document}
\begin{enumerate}
\item bla bla bla: $\begin{aligned} a &= 3 \end{aligned}$
\item bla: $\begin{aligned} b &= 2 \end{aligned}$
\item bla bla bla $\eqmakebox[mm][r]{$c$} = hm$
\item $\eqmakebox[mm][r]{$d$} = ah$
\end{enumerate}
\end{document}
我想让 = 在不同的项目之间对齐。
答案1
附表tabular
:
\documentclass[]{article}
\usepackage{array}
\newcounter{rownum}
\begin{document}
\begin{tabular}{>{\stepcounter{rownum}\therownum.}r @{\ } l>{$}r<{$} @{\,} >{$}l<{$}}
& bla bla bla: & a & = 3 \\
& bla: & b & = 2 \\
& bla bla bla: & c & = hm \\
& & d & = ah \\
\end{tabular}
\end{document}