在列表内使用对齐

在列表内使用对齐

我想在列表内使用对齐环境,但等式不应该相对于页面宽度居中,而应该相对于列表的预期块居中。

一个简单的例子:

\documentclass[12pt,a4paper]{amsart}
\usepackage[utf8]{inputenc}
\begin{document}
Some text..
\begin{itemize}
    \item Very import point:
    \begin{enumerate}
        \item Yet another very important point substantiated by a long equation
        \begin{align*}
            x^2+y^2+5\int_{10003}^{10033455}\sin x\;dx+\tan^2(74638263x^2)=1.
        \end{align*} 
    \end{enumerate}
\end{itemize}
\end{document}

我想让长方程位于点 (1) 的中心。

答案1

您只需将aligned环境嵌套在\makebox{\linewidth}(不是 \textwidth)。当然,垂直间距的添加由你决定:

\documentclass[12pt, a4paper]{amsart}
\usepackage[utf8]{inputenc}
\usepackage{showframe}
\renewcommand{\ShowFrameLinethickness}{0.3pt}
\usepackage{amsmath}

\begin{document}
Some text.
\begin{itemize}

    \item Very import point:
    \begin{enumerate}
        \item Yet another very important point substantiated by a long equation. \bigskip

      \makebox[\linewidth]{\small$ \begin{aligned}
            & x^2+y^2+5\int_{10003}^{10033455}\sin x\;dx+\tan^2(74638263x^2)=1.\\
            & x^2 + y^2 = z^2.
        \end{aligned} $}
    \end{enumerate}
\end{itemize}

\end{document} 

在此处输入图片描述

相关内容