0

I am trying to center multiple equations with align, gather, and center but could have done yet. How can I do it? The picture shows what I want. Thank you

\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}

enter image description here

1 Answer 1

3

enter image description here

Use gathered or gather depending whether you want a shared equation number

\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}
2
  • You should also suggest reading the user guide (texdoc amsldoc). It's not all that long. Jun 22 at 22:57
  • Thank you so much David. I will check the guide. Have a nice day. Jun 23 at 7:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.