如何实现表格中长公式自动换行?

2019-09-07 10:40发布

MWE:\documentclass[10pt]{article}\usepackage{amsmath}\begin{document}\usepackage{tabularx}\begin{cen...

MWE:

\documentclass[10pt]{article}

\usepackage{amsmath}

\begin{document}

\usepackage{tabularx}

\begin{center}

\begin{tabular}{|l|l|l|l|l|}

\hline   monomial($Y_i$)      & i  & $SU(n)$ & ~ & ~ \\ \hline

    $ i\langle  V^{\mu\nu}\{u^\mu u^\nu,u^\alpha u^\alpha\} \rangle$ & 1  & 4       & $i V^{\alpha} \left(-\nabla^{\mu}{u^{\mu}} u^{\alpha} u^{\nu} u^{\nu}-u^{\mu} \nabla^{\mu}{u^{\alpha}} u^{\nu} u^{\nu}-u^{\alpha} u^{\mu} \nabla^{\nu}{u^{\nu}} u^{\mu}-u^{\mu} u^{\mu} u^{\nu} \nabla^{\nu}{u^{\alpha}}+\nabla^{\mu}{u^{\alpha}} u^{\mu} u^{\nu} u^{\nu}+u^{\alpha} \nabla^{\mu}{u^{\mu}} u^{\nu} u^{\nu}+u^{\mu} u^{\mu} \nabla^{\nu}{u^{\alpha}} u^{\nu}+u^{\alpha} u^{\mu} u^{\mu} \nabla^{\nu}{u^{\nu}}\right)$ & ~ \\ \hline

\end{tabular}

\end{center}

\end{document}

    

我想让这段公式自动换行(不在乎是否对齐,只要达到一定的长度能自动换行即可)