I am writing some algebra notes and unfortunately I have some problem with the alignment of some equation: exactly the equation appears aligned on the right whereas I would like they are aligned on the left as showed into this image which is form a paper written in a doc. format.

enter image description here

So I wrote this code hoping I would obtained a text as into the image above.



\usepackage[paperheight=29.7cm,paperwidth=21cm,textwidth=17cm,textheight=25 cm]{geometry}







x_{i\big(\sigma(0)\big)}\bot\dots\bot x_{i\big(\sigma(m)\big)}\bot x_{i\big(\sigma(m+1)\big)}=\\
    x_{i\Big(\psi_\sigma^{m+1}\big(\varphi_\sigma^{m+1}(0)\big)\Big)}\bot x_{i\Big(\psi_\sigma^{m+1}\big(\varphi_\sigma^{m+1}(1)\big)\Big)}\bot\dots\bot x_{i\Big(\psi_\sigma^{m+1}\big(\varphi_\sigma^{m+1}(m)\big)\Big)}\bot x_{i\Big(\psi_\sigma^{m+1}\big(\varphi_\sigma^{m+1}(m+1)\big)\Big)}=\\
    x_{i\Big(\psi_\sigma^{m+1}\big(\varphi_\sigma^{m+1}(0)\big)\Big)}\bot\biggl(x_{i\Big(\psi_\sigma^{m+1}\big(\varphi_\sigma^{m+1}(1)\big)\Big)}\bot\dots\bot x_{i\Big(\psi_\sigma^{m+1}\big(\varphi_\sigma^{m+1}(m)\big)\Big)}\bot x_{i\Big(\psi_\sigma^{m+1}\big(\varphi_\sigma^{m+1}(m+1)\big)\Big)}\biggl)=\\
    x_{i\big(\varphi_\sigma^{m+1}(0)\big)}\bot\biggl(x_{i\big(\varphi_\sigma^{m+1}(1)\big)}\bot\dots\bot x_{i\big(\varphi_\sigma^{m+1}(m)\big)}\bot x_{i\big(\varphi_\sigma^{m+1}(m+1)\big)}\biggl)=\\
    \biggl(x_{i\big(\varphi_\sigma^{m+1}(0)\big)}\bot x_{i\big(\varphi_\sigma^{m+1}(1)\big)}\bot\dots\bot x_{i\big(\varphi_\sigma^{m+1}(m)\big)}\biggl)\bot x_{i\big(\varphi_\sigma^{m+1}(m+1)\big)}=\\
    (x_{i(0)}\bot x_{i(1)}\bot\dots\bot x_{i(m)})\bot x_{i(m+1)}=\\
    x_{i(0)}\bot\dots\bot x_{i(m)}\bot x_{i(m+1)}


but unfortunately the out put is just this

enter image description here

which is really different. So, how to obtain a text as into the first image? I point out I proved to use \flalign command but it does not work.

  • Your equation contains typo(s) and does not compile as such at the moment.
    – Karlo
    Commented May 12, 2023 at 13:59
  • @Karlo I find only two tipos which I corrected: unfortunately nothing is changed. here you can see that the latex equation work. Commented May 12, 2023 at 14:04

1 Answer 1


You can use this construction:

\[ \begin{aligned}
     & x_{i\Big(\psi_\sigma^{m+1}\big(\varphi_\sigma^{m+1}(0)\big)\Big)}\bot x_{i\Big(\psi_\sigma^{m+1}\big(\varphi_\sigma^{m+1}(1)\big)\Big)}\bot\dots\bot x_{i\Big(\psi_\sigma^{m+1}\big(\varphi_\sigma^{m+1}(m)\big)\Big)}\bot x_{i\Big(\psi_\sigma^{m+1}\big(\varphi_\sigma^{m+1}(m+1)\big)\Big)}=\\
     & x_{i\big(\sigma(0)\big)}\bot\dots\bot x_{i\big(\sigma(m)\big)}\bot x_{i\big(\sigma(m+1)\big)}=\\
\end{aligned} \]

which gives

enter image description here

The & sign defines the alignment at the left hand side.

  • Okay, so I have to put the symbol & at the beginning of any line, right? Commented May 12, 2023 at 14:06
  • Yes, you'll see what happens if you forget to put it on one line!
    – Karlo
    Commented May 12, 2023 at 14:07
  • 1
    Okay: it works perfectly so that I upvoted and accepted your answer. Thanks very much for your assistance! :-) Commented May 12, 2023 at 14:10
  • 1
    Indeed: you can use \begin{equation} to have a numbered equation, instead of \[ or \begin{equation*} for an unnumbered one.
    – Karlo
    Commented May 12, 2023 at 14:31
  • 1
    Okay, thanks for the information!!! :-) Commented May 12, 2023 at 14:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .