Math & ScienceLeft Alignment with Paragraphs for all Equations

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
august_month
Posts: 12
Joined: Sat May 07, 2011 3:03 pm

Left Alignment with Paragraphs for all Equations

Post by august_month »

Hello everyone,

I would like to left align all my question. Alignment should match new paragraph. Currently I have this.

Code: Select all

\documentclass[12pt,oneside,reqno,fleqn]{amsart}
\setlength{\mathindent}{0pt}
It gives me left alignment, but not at the level of new paragraph.

Any suggestions?

Regards,
august_month
Last edited by localghost on Mon Dec 09, 2013 10:29 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

tom
Posts: 73
Joined: Thu Apr 18, 2013 4:02 am

Left Alignment with Paragraphs for all Equations

Post by tom »

The class amsart overwrites \mathindent. It uses \normalparindent instead. However, setting \normalparindent to zero is not enough. The simplest solution would be to switch to article and load the amsmath package as shown in the example below.

Code: Select all

\documentclass[12pt,oneside,reqno,fleqn]{article}
\usepackage{amsmath}
\usepackage{blindtext}
\setlength{\mathindent}{\parindent}
\begin{document}
\begin{align}
y_1=ax_1+b\\
y_2=ax_2+b
\end{align}

\blindtext
\end{document}
august_month
Posts: 12
Joined: Sat May 07, 2011 3:03 pm

Re: Left Alignment with Paragraphs for all Equations

Post by august_month »

Thank you, Tom! It worked.
Post Reply