You could use the environ package:Pushpkant wrote:The second problem is I want to make newenvironment for this, so that I don't have to change whole document. But the "\align
" is showing the equation number and "\align*
" is not working.
Code: Select all
\documentclass{article}
\usepackage{mathtools}
\usepackage{environ}
\NewEnviron{alg}{ \begin{align*}\BODY\end{align*} }
\begin{document}
\begin{alg}
& \Rightarrow & \sin\theta &=\sin\frac{\phi}{2}
\end{alg}
\end{document}