0

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.

\documentclass{article}

\usepackage{titlesec}
\usepackage{mathrsfs}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage[flneq]{amsmath}
\usepackage{txfonts}

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

\setcounter{equation}{-1}

\newtheorem{lemma}{Lemma}
\setcounter{lemma}{-1}

\newtheorem{proposition}{Proposizione}
\setcounter{proposition}{-1}

\newtheorem{corollary}{Corollario}
\setcounter{corollary}{-1}

\newtheorem{theorem}{Teorema}
\setcounter{theorem}{-1}

\begin{document}

\begin{align*}
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)}
\end{align*} 

\end{document}

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.

2
  • Your equation contains typo(s) and does not compile as such at the moment.
    – Karlo
    May 12 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. May 12 at 14:04

1 Answer 1

3

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.

6
  • Okay, so I have to put the symbol & at the beginning of any line, right? May 12 at 14:06
  • Yes, you'll see what happens if you forget to put it on one line!
    – Karlo
    May 12 at 14:07
  • 1
    Okay: it works perfectly so that I upvoted and accepted your answer. Thanks very much for your assistance! :-) May 12 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
    May 12 at 14:31
  • 1
    Okay, thanks for the information!!! :-) May 12 at 14:49

You must log in to answer this question.

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