This question already has an answer here:

I'm trying to shorten the environment


by using the \newenvironment command as follows


But when I use this new environment like


it gives me a bunch of error messages:

! Paragraph ended before \align was complete.\par

! Missing $ inserted.$

! Missing \endgroup inserted.\endgroup

! Display math should end with $$.\par

! LaTeX Error: \begin{align} on input line 163 ended by \end{document}.See the LaTeX manual or LaTeX Companion for explanation.Type H for immediate help.... \end{document}

I used \equation instead of \align, but this gives me a weird indent within the pdf.

marked as duplicate by Werner align Aug 21 at 23:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.