I have an equation
environment where most equation lines start with an arrow, which I have aligned in the align*
environment, using &
. The second line in the example below is too long for the page and so I have split over two lines. Here I would like to align the start of the equations with each other rather than with the start of the arrows. I have tried using multiple &
signs (and also experimented with the alignat*
environment) but I cannot find a solution to this. A MWE is below.
\documentclass{article}
\usepackage{mathtools}
\usepackage{amsmath,bm}
\usepackage{amstext}
\begin{document}
\begin{align*}
&\xrightarrow{\frac{\pi}{2} \hat{I}_{\frac{\pi}{4}}} -\cos (\Omega_S t_1) \sin ^2 (\pi J_{IS} \tau) \cos (\Omega_I t_2) \cos (\frac{\pi}{4}) \hat{I}_z \\
&\xrightarrow{\frac{\pi}{2} \hat{S}_x } & - \frac{1}{\sqrt{2}} \cos (\Omega_{S_1} t_1) \sin ^2 (\pi J_{IS} \tau) \cos (\Omega_{I_1} t_2) (1-R_z \tau_{mix}) \hat{I}_z\\
& {} & -\frac{1}{\sqrt{2}} \cos (\Omega_{S_1} t_1) \sin ^2 (\pi J_{IS} \tau) \cos (\Omega_{I_2} t_2) (\sigma_{12} \tau_{mix}) \hat{I}_z\\
&\xrightarrow{\frac{\pi}{2} \hat{I}_x} \frac{1}{\sqrt{2}} \cos (\Omega_S t_1) \sin ^2 (\pi J_{IS} \tau) \cos (\Omega _I t_2) \hat{I}_y \\
&A = \frac{1}{\sqrt{2}} \cos (\Omega_S t_1) \sin ^2 (\pi J_{IS} \tau) \cos (\Omega _I t_2)\\
\end{align*}
\end{document}
where I would like to achieve the following effect:
--> equation...
--> equation....
.......equation continued (aligned with start of equation on previous line- I'm using dots here to avoid this line being converted into an equation)
A=equation (start of this line aligned with arrows above)
--> equation..
etc.
At the moment, the equations in lines 2 and 3 of the align environment of the MWE get shifted to the right, to the end of all the equations and hence disappear off the page.