``` \documentclass[10pt]{ctexart} ``` ``` \usepackage{amsmath, amssymb, amsfonts, amsthm} \usepackage[inline]{enumitem} \begin{document} \begin{enumerate}[fullwidth,itemindent=2em] \item   \begin{minipage}[t]{\textwidth}     $ \begin{aligned}     P\left(\bigcup_{i=1}^{n}A_{i}\right)     ={}&\displaystyle\sum\limits_{1\leqslant i\leqslant n}^{}P(A_{i})-\displaystyle\sum\limits_{1\leqslant i< j\leqslant n}^{}P(A_{i}A_j)+\displaystyle\sum\limits_{1\leqslant i< j< k\leqslant n}^{}\\&P(A_{i}A_jA_k)+\cdots +(-1)^{n-1}P(A_{1}A_{2}\cdots A_n);     \end{aligned} $         \end{minipage}         \end{enumerate} \end{document} ``` MWE如上,怎样利用盒子实现公式的上边缘对齐呢?

2 回答2

0
<p>可以看看这个:<a href="https://tex.stackexchange.com/questions/58141/equations-inside-enumerate-aligned-on-items-number" target="_blank" title="https://tex.stackexchange.com/questions/58141/equations-inside-enumerate-aligned-on-items-number">https://tex.stackexchange.com/questions/58141/equations-inside-enumerate-aligned-on-items-number</a></p>
0
<pre class="brush:plain;toolbar:false">\documentclass[10pt]{ctexart} \usepackage{amsmath, amssymb, amsfonts, amsthm} \usepackage[inline]{enumitem} \begin{document} \begin{enumerate}[fullwidth,itemindent=2em] \item \begin{minipage}[t]{\textwidth}   $ \begin{aligned}[t]   P\left(\bigcup_{i=1}^{n}A_{i}\right)   ={}&\displaystyle\sum\limits_{1\leqslant i\leqslant n}^{}P(A_{i})-\displaystyle\sum\limits_{1\leqslant i< j\leqslant n}^{}P(A_{i}A_j)+\displaystyle\sum\limits_{1\leqslant i< j< k\leqslant n}^{}\\&P(A_{i}A_jA_k)+\cdots +(-1)^{n-1}P(A_{1}A_{2}\cdots A_n);   \end{aligned} $ \end{minipage} \end{enumerate} \end{document}</pre><p><br></p>

你的回答

请登录后回答

你的回答将会帮助更多人,请务必认真回答问题。