## LaTeX forum ⇒ Text Formatting ⇒ Aligning all equations to the left

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
BigRedChess
Posts: 5
Joined: Fri Feb 07, 2014 12:14 am

### Aligning all equations to the left

Hey Guys,

I'm trying to write a math paper, and I want every single equation in an align environment to be completely left aligned. However, when I tried "fleqn" or "flalign" it would just go a little bit to the left and still leave a lot of room between the margin. I also tried the set indent length thing after doing fleqn in the document class.

What else can I do?

I've attached all the information I thought was necessary.

\documentclass[fleqn]{amsart} \usepackage{fancyhdr}\usepackage{graphicx, amssymb}\graphicspath{ {./images/} }\usepackage{enumerate}\usepackage{amsmath}\setlength{\mathindent}{-1cm} (I tried fiddling with this, and no cm length (whether it be -10, 10, or 0) changed anything)\usepackage[parfill]{parskip}\usepackage[export]{adjustbox}
Last edited by cgnieder on Fri Feb 07, 2014 12:48 am, edited 1 time in total.

Tags:

Stefan Kottwitz
Posts: 8946
Joined: Mon Mar 10, 2008 9:44 pm
Hi,

no need to use amsart, article together with amsmath would be fine as well. amsart is specifically for publishing in an AMS journal, it's focused to their needs.

Have a look at Left Alignment with Paragraphs for all Equations.

Stefan

BigRedChess
Posts: 5
Joined: Fri Feb 07, 2014 12:14 am
Hi,

I have written about 15 pages so far using the \begin{thm} and \begin{lem} environments that I assume come with the amsart document class. I am publishing this in a journal, so would say article be an acceptable document class? Would I have to change the "thm" and "lem" environments?

Thanks!

Jon

Stefan Kottwitz
Posts: 8946
Joined: Mon Mar 10, 2008 9:44 pm
Hi John,

\usepackage{amsthm}

Then you can define your theorems. All important amsmath functions are available for article and other classes as packages (amsmath, amsthm, amssymb, amscd, amstext, amsrefs, ...).

Just check if the journal already provides a style (class), that's very common. In that case you should use that style (with amsmath packages).

Stefan

BigRedChess
Posts: 5
Joined: Fri Feb 07, 2014 12:14 am
Sure - so I'm looking into the journal now but some other issues arise.

If I change from amsart to article, I get a lot of errors in these parts of my file:

\author{xxx}
\email{xxx}

\numberwithin{equation}{section} (this is for the newly stylized theorem and lemma environments

saying I have an undefined control sequence. Which document class can I use that will let me do the proper heading as well as having any kind of lemma/theorem/proof environment?

Thanks so much!

Jon

hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm
Did you include the amsthm package when changing the documentclass to article? An up to date MWE would definitely help here.
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit

BigRedChess
Posts: 5
Joined: Fri Feb 07, 2014 12:14 am
Here's the whole top attached (this uses a template that I found on Google)

\documentclass[12pt]{amsart} %% This has a default type size 10pt.  Other options are 11pt and 12pt%% This are set by replacing the command above by%% \documentclass[11pt]{amsart}%%%% or%%%% \documentclass[12pt]{amsart} \newtheorem{thm}{Theorem}[section]\newtheorem{prop}[thm]{Proposition}\newtheorem{lem}[thm]{Lemma}\newtheorem{cor}[thm]{Corollary}%\newtheorem{conj}[thm]{Conjecture}  \theoremstyle{definition}\newtheorem{definition}[thm]{Definition}\newtheorem{example}[thm]{Example} %\newtheorem{note}[thm]{Note} \theoremstyle{remark} \newtheorem{remark}[thm]{Remark} \newcommand{\R}{\mathbf{R}}  % The real numbers.he dea\usepackage{fancyhdr}\usepackage{graphicx, amssymb}\graphicspath{ {./images/} }\usepackage{enumerate}\usepackage{amsmath}\usepackage[parfill]{parskip}\usepackage[export]{adjustbox} \usepackage[margin=1in]{geometry} \DeclareMathOperator{\dist}{dist} % The distance.  \begin{document} \title{Title Goes Here} \author{xxx}\address{xxx}\email{xxx} %\begin{abstract}%Great stuff. ABSTRACT%\end{abstract}   \maketitle
Last edited by Stefan Kottwitz on Mon Feb 10, 2014 11:03 am, edited 1 time in total.
Reason: code marked

hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm
I'm sorry, but this is not a complete MWE, it will not compile as it stands. And worse, you mention getting errors when changing the documentclass to article and this snippet uses amsart.
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit

BigRedChess
Posts: 5
Joined: Fri Feb 07, 2014 12:14 am
Yes I must have incorrectly used the "amsart" template I found online. When I switch to article and use the given formatting edits I provided in my last post, it does not compile (though it does as of now). After a bit of tinkering here's everything in the top.

Like I mentioned before I just want to be able to force left align all equations for the paper.

\documentclass[12pt]{amsart} \newtheorem{thm}{Theorem}[section]\newtheorem{prop}[thm]{Proposition}\newtheorem{lem}[thm]{Lemma}\newtheorem{cor}[thm]{Corollary}  \theoremstyle{definition}\newtheorem{definition}[thm]{Definition}\newtheorem{example}[thm]{Example}  \theoremstyle{remark}  \newtheorem{remark}[thm]{Remark}  \newcommand{\R}{\mathbf{R}}  % The real numbers.he dea\usepackage{fancyhdr}\usepackage{graphicx, amssymb}\graphicspath{ {./images/} }\usepackage{enumerate}\usepackage{amsmath}\usepackage[parfill]{parskip}\usepackage[export]{adjustbox}\usepackage[margin=1in]{geometry} \DeclareMathOperator{\dist}{dist} % The distance. \begin{document} \title{x} \author{x}\address{x}\email{x}\urladdr{x}   \maketitle
Last edited by Stefan Kottwitz on Mon Mar 24, 2014 7:29 pm, edited 1 time in total.
Reason: code marked