I want to type the following in latex enter image description here

In principal I want to have a long equation in the beginning line. Then I want to have short equations properly centered (with each other and also with the long equation) like the picture. Note that the 'imply' symbol is also properly aligned. Please help me to write a latex code which should produce the same picture. Thank you in advance.


Something like that? (loading Fourier is here only because I prefer it to Computer Modern, and you can remove it, of course).



  x_5 = i 5 + j(p + q + \gamma) + k(l+ m)\\
    i = 1, j = 1 & \implies x_5 = \beta \\
    i = 2, j = 3 & \implies x_5 = q \\
    i = 2, j = 1 & \implies x_5 = m


enter image description here

  • You should point out that \usepackage{fourier} is not necessary for the example. I believe it's better to avoid font packages, so the answer is as generic as possible.
    – egreg
    Dec 5 '15 at 20:36
  • OK I'll do that.
    – Bernard
    Dec 5 '15 at 20:37
  • Yes it works but if I want to number the beginning long line and refer to it in a later part of my text what command should I use?
    – gopal
    Dec 6 '15 at 10:27
  • You can use gather instead of gather*, and \notag with the aligned block if you don't need to refer to it.
    – Bernard
    Dec 6 '15 at 11:16

May be this is what you want,



$x_5 = i5 + j(p+q+r) + k (l+m)$   

$i=1,$   $j=1$   $\Rightarrow$  $x_5 = \beta$  \\ 
$i=2,$   $j=3$   $\Rightarrow$  $x_5 = q$  \\
$i=2,$   $j=1$   $\Rightarrow$  $x_5 = m$


Just try this.


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.