1

I have a following multiline equation,

enter image description here

\begin{equation} \label{eq:19}
\begin{split}
I_{1\to 1}(2)&=\tanh\Big(w^{ro}_{1,1}\cdot{h_1}^{x_1}(2) + w^{ro}_{2,1}\cdot{h_2}^{x_1}(2)+ w^{io}_{1,1}\cdot{x}_{1}(2)\Big) \\
&=\tanh\bigg(w^{ro}_{1,1}\cdot \Big( (1-\alpha) \cdot \alpha \cdot h_1^{x_1}(1) + \alpha \cdot \tanh \Big(w^{rr}_{1,1}\cdot h_1^{x_1}(1) + w^{rr}_{2,1}\cdot h_2^{x_1}(1) + w^{ir}_{1,1}\cdot x_1(2)\Big)\Big) \\
  &+ w^{ro}_{2,1} \cdot \Big((1-\alpha) \cdot \alpha \cdot h_2^{x_1}(1) + \alpha \cdot \tanh \Big(w^{rr}_{1,2}\cdot h_1^{x_1}(1) + w^{rr}_{2,2}\cdot h_2^{x_1}(1) + w^{ir}_{1,2}\cdot x_1(2)\Big)\Big) \\
  &+ w^{io}_{1,1}\cdot{x}_{1}(2) \bigg).
\end{split}
\end{equation}

I would like the last two lines starting with '+' to be shifted couple spaces to the right for better visual. Any help will be greatly appreciated!

  • unrelated but always use \bigl(\bigr) not \big(\big) and avoid numbers in \label – David Carlisle Jun 7 at 20:40
2

enter image description here

\documentclass[a4paper,landscape]{article}
\usepackage{geometry}
\usepackage{amsmath}

\begin{document}

qquad
\begin{equation} \label{eq:dontusenumbers-quad}
\begin{split}
I_{1\to 1}(2)&=\tanh\Bigl(w^{ro}_{1,1}\cdot{h_1}^{x_1}(2) + w^{ro}_{2,1}\cdot{h_2}^{x_1}(2)+ w^{io}_{1,1}\cdot{x}_{1}(2)\Bigr) \\
&=\tanh\biggl(w^{ro}_{1,1}\cdot \Bigl( (1-\alpha) \cdot \alpha \cdot h_1^{x_1}(1) + \alpha \cdot \tanh \Bigl(w^{rr}_{1,1}\cdot h_1^{x_1}(1) + w^{rr}_{2,1}\cdot h_2^{x_1}(1) + w^{ir}_{1,1}\cdot x_1(2)\Bigr)\Bigr) \\
  &\qquad+ w^{ro}_{2,1} \cdot \Bigl((1-\alpha) \cdot \alpha \cdot h_2^{x_1}(1) + \alpha \cdot \tanh \Bigl(w^{rr}_{1,2}\cdot h_1^{x_1}(1) + w^{rr}_{2,2}\cdot h_2^{x_1}(1) + w^{ir}_{1,2}\cdot x_1(2)\Bigr)\Bigr) \\
  &\qquad+ w^{io}_{1,1}\cdot{x}_{1}(2) \biggr).
\end{split}
\end{equation}

aligned
\begin{equation} \label{eq:dontusenumbers-aligned}
\begin{split}
I_{1\to 1}(2)&=\tanh\Bigl(w^{ro}_{1,1}\cdot{h_1}^{x_1}(2) + w^{ro}_{2,1}\cdot{h_2}^{x_1}(2)+ w^{io}_{1,1}\cdot{x}_{1}(2)\Bigr) \\
&=
\begin{aligned}[t]
\tanh\biggl(&w^{ro}_{1,1}\cdot \Bigl( (1-\alpha) \cdot \alpha \cdot h_1^{x_1}(1) + \alpha \cdot \tanh \Bigl(w^{rr}_{1,1}\cdot h_1^{x_1}(1) + w^{rr}_{2,1}\cdot h_2^{x_1}(1) + w^{ir}_{1,1}\cdot x_1(2)\Bigr)\Bigr) \\
  &+ w^{ro}_{2,1} \cdot \Bigl((1-\alpha) \cdot \alpha \cdot h_2^{x_1}(1) + \alpha \cdot \tanh \Big(w^{rr}_{1,2}\cdot h_1^{x_1}(1) + w^{rr}_{2,2}\cdot h_2^{x_1}(1) + w^{ir}_{1,2}\cdot x_1(2)\Bigr)\Bigr) \\
  &+ w^{io}_{1,1}\cdot{x}_{1}(2) \biggr).
\end{aligned}
\end{split}
\end{equation}
\end{document}
  • works great! thank you! – user32147 Jun 7 at 22:26

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.