Math & ScienceProper aligning of equations

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
torbjorn t.
Posts: 162
Joined: Wed Jun 17, 2009 10:18 pm

Re: Proper aligning of equations

Post by torbjorn t. »

Did you look at example.pdf, that I attached? That is the compiled version of your latest example, and as far as I understand, it meets your requirements.

Recommended reading 2024:

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

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

ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

Re: Proper aligning of equations

Post by ghostanime2001 »

Yes I took a look at example.pdf but what about the first post? I understand that all my equations are left-aligned but they are indented. How do I get them in the same format as "#3" in the first post applied to all questions?
torbjorn t.
Posts: 162
Joined: Wed Jun 17, 2009 10:18 pm

Proper aligning of equations

Post by torbjorn t. »

I'd forgotten that you used a list, sorry. The enumitem package allows you to change the indentation of lists, so you can use that to remove the indent.

But if you're happy typing the numbers manually, and you don't need the first equation to be on the same line as the number, you could also write something like

Code: Select all

\documentclass[fleqn]{report}
\usepackage{amsmath}
% \allowdisplaybreaks  % allows for pagebreaks within an align-environment
\begin{document}
\noindent 1.
\begin{align*}
a &= b \\
c &= d
\end{align*}
2.
\begin{align*}
f(x) &= ax^2 + bx  + c \\
g(x) &= 2ax + b
\end{align*}
\end{document}
ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

Re: Proper aligning of equations

Post by ghostanime2001 »

LOL i do want the equations on the same line as the number.
Post Reply