0

enter image description here

I have three labelled equations (as shown above) for which I would like to align (as show below).

enter image description here

Obviously, one way to accomplish this is by putting everything into one \begin{align} block and tagging \tag* the equations separately.

Does anyone have any suggestion as to how to do this without using tag?

Code below

\documentclass{article}
\usepackage[utf8]{inputenc}

\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{thmtools}       
\usepackage{graphicx}
\setlength\parindent{0pt}
\usepackage[linesnumbered,ruled]{algorithm2e}
\usepackage{hyperref}
\usepackage{caption} 
\usepackage{cleveref}

\begin{document}
\section{Introduction}
    \begin{equation}
        a = a+c
    \end{equation}


    \begin{equation}
        a = a+c+d+e+f
    \end{equation}


    \begin{equation}
        a = b + c + d + e + sin(x)
    \end{equation}

\end{document}
  • 1
    just wrap them all in a single align environment, and place an ampersand & at the beginning of each line if you want them aligned at the left side. why do you think you have to use \tag? (wouldn't hurt to read the manual for amsmath -- texdoc amsmath.) and i don't understand why you're putting them in a figure, although i guess you have a reason. – barbara beeton Jul 30 '17 at 0:59
  • 1
    This provides the fundamental usage of an align environment. You need to read up on the use of the amsmath package. – Werner Jul 30 '17 at 4:58
2

You don't need use \tag mandatory with align environment.

\documentclass{article}
\usepackage[utf8]{inputenc}

 \usepackage{amsthm}
 \usepackage{amsmath}
 \usepackage{thmtools}       
 \usepackage{graphicx}
 \setlength\parindent{0pt}
 \usepackage[linesnumbered,ruled]{algorithm2e}
 \usepackage{hyperref}
 \usepackage{caption} 
 \usepackage{cleveref}

 \begin{document}
  \section{Introduction}
     \begin{align}
         a& = a+c \\
         a& = a+c+d+e+f \\
         a& = b + c + d + e + \sin(x) 
     \end{align}

 \end{document}
  • Hi, how can I use \label separately on each of the equations? – Carlos - the Mongoose - Danger Jul 30 '17 at 5:07
  • You can put label at begin of each equation or before of `\\` – skpblack Jul 30 '17 at 5:11
  • As @skpblack say, before \\ . For example: a& = a+c \label{eq1} \\ – juanuni Jul 30 '17 at 5:36

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.