LaTeX forum ⇒ Math & ScienceLeft Alignment with Paragraphs for all Equations Topic is solved

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

Left Alignment with Paragraphs for all Equations

Postby august_month » Mon Dec 09, 2013 12:48 am

Hello everyone,

I would like to left align all my question. Alignment should match new paragraph. Currently I have this.
  1. \documentclass[12pt,oneside,reqno,fleqn]{amsart}
  2. \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.
Reason: Longer passages of source code are tagged as code block, not as in-line code.

Tags:

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

Postby tom » Tue Dec 10, 2013 12:56 pm

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.

  1. \documentclass[12pt,oneside,reqno,fleqn]{article}
  2. \usepackage{amsmath}
  3. \usepackage{blindtext}
  4. \setlength{\mathindent}{\parindent}
  5. \begin{document}
  6. \begin{align}
  7. y_1=ax_1+b\\
  8. y_2=ax_2+b
  9. \end{align}
  10.  
  11. \blindtext
  12. \end{document}

august_month
Posts: 12
Joined: Sat May 07, 2011 3:03 pm

Postby august_month » Wed Dec 11, 2013 5:12 am

Thank you, Tom! It worked.


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 10 guests