Suppose I have something like,
$\therefore$ we have the following:
\begin{align}
2x + 7 &= 5x + 8 \\[0.1in]
&= 2x - 7 \\[0.1in]
&= 4 \\[0.1in]
\end{align}
I randomly made equations up but the point is I want to line up all the equal signs. However when I do something like this it always tabs everything in between the align command all the way to the center of the page when I just when to align the equal signs while not shifting the whole equation over. Also, when I do this it numbers each line which I do not want it to do. Is there a way to align the equal signs without numbering each line and without moving everything over so much?
Template:
\documentclass[12pt]{article}
\newcommand{\myname}{Name: -------}
\newcommand{\course}{-------}
\newcommand{\assignment}{-------}
\newcommand{\probs}{}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb,latexsym}
\usepackage{graphicx}
\usepackage{verbatim}
\usepackage{enumerate}
\usepackage[left=1in,right=1in,top=0.75in,bottom=0.5in]{geometry}
\usepackage[dvipsnames,usenames]{color}
\usepackage{ifthen}
\usepackage{enumitem}
\newcommand{\mytitle}{
\begin{flushleft}
\bfseries
\assignment \hspace*{\fill} \course \hspace*{\fill} \myname\\
\probs \hspace*{\fill}
\rule[10pt]{\linewidth}{1pt}
\end{flushleft}
}
\pagestyle{myheadings}
\markright{\course{} \assignment: \myname}
\newenvironment{exercise}[2][Exercise]
{\begin{trivlist}\item[\hspace{0pt} \textbf{#1}~\textbf{#2.}]}
{\end{trivlist}}
\newcommand{\checkname}
{
\ifthenelse{\equal{\myname}{}}
{
\vspace*{\fill}
\begin{center}
{\LARGE \bf Your name is {\color{BrickRed} \myname}?\\[3pt]
Please change \texttt{\color{BrickRed} \textbackslash myname} and re-process.}
\end{center}
\vspace*{\fill}
\end{document}
\newpage
}
{}
}
\begin{document}
\thispagestyle{empty}
\mytitle
\renewcommand{\qedsymbol}{}
\end{document}
Best Answer
With your template: