我正在尝试使用对齐、聚集和居中功能将多个方程式居中,但目前还无法完成。我该怎么做?图片显示了我想要的。谢谢
\documentclass{article}
\usepackage{amssymb,amsmath}
\begin{document}
\begin{equation}
\Delta l_{x}|_{x=l_x} = 0.001l_x
\Delta l_{x}|_{x=0} = \Delta l_{y}|_{y=l_y} = \Delta l_{y}|_{y=0} = \Delta l_{z}|_{z=z} = \Delta l_{z}|_{z=0} =0
\end{equation}
\end{document}
答案1
使用gathered
或gather
取决于你是否想要共享方程编号
\documentclass{article}
\usepackage{amssymb,amsmath}
\begin{document}
equation
\begin{equation}
\begin{gathered}
\Delta l_{x}|_{x=l_x} = 0.001l_x \\
\Delta l_{x}|_{x=0} = \Delta l_{y}|_{y=l_y} = \Delta l_{y}|_{y=0} = \Delta l_{z}|_{z=z} = \Delta l_{z}|_{z=0} =0
\end{gathered}
\end{equation}
gather
\begin{gather}
\Delta l_{x}|_{x=l_x} = 0.001l_x \\
\Delta l_{x}|_{x=0} = \Delta l_{y}|_{y=l_y} = \Delta l_{y}|_{y=0} = \Delta l_{z}|_{z=z} = \Delta l_{z}|_{z=0} =0
\end{gather}
\end{document}