解决方案: 演示效果图: 演示代码:
我们重新定义一个新命令,\newcommand{\itemEq}[1]{%
\begingroup%
\setlength{\abovedisplayskip}{0pt}%
\setlength{\belowdisplayskip}{0pt}%
\parbox[c]{\linewidth}{\begin{flalign}#1&&\end{flalign}}%
\endgroup}\documentclass{article}
\usepackage{amsmath}
\setlength\textwidth{180.0pt}
\newcommand{\itemEq}[1]{%
\begingroup%
\setlength{\abovedisplayskip}{0pt}%
\setlength{\belowdisplayskip}{0pt}%
\parbox[c]{\linewidth}{\begin{flalign}#1&&\end{flalign}}%
\endgroup}
\begin{document}
\begin{itemize}
\item Some text here
\item \itemEq{a+b+c=d+e}
\item \itemEq{k(t) = \sqrt{\frac{\pi \rho c_{\text{p}}}{750 \lambda t}}}
\end{itemize}
\end{document}
发表评论 取消回复