I'm using the following code. What should I do if I don't want the fixed indent from the left margin of my page?
\documentclass[fleqn,oneside]{article}
\usepackage{amsmath}
....
\begin{align}
a_1& =b_1+c_1\\
a_2& =b_2+c_2-d_2+e_2
\end{align}
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityJust to make this complete (I found an easy answer only after a lengthy search):
the standard length of \mathindent
(in KoMa scrbook class) is <\leftmargini minus \leftmargini>
. The rubber part is essential for longer equations.
EDIT: you can regulate that distance by setting \mathindent
(to 0pt, for example), with a \setlength\mathindent{<value>}
\documentclass[fleqn]{article}
\usepackage{amsmath}
\setlength\parindent{0pt}
\begin{document}
\hrulefill
\begin{align}
a_1 &= b_1+c_1\\
a_2 &= b_2+c_2-d_2+e_2
\end{align}
\setlength\mathindent{0pt}
\hrulefill
\begin{align}
a_1 &= b_1+c_1\\
a_2 &= b_2+c_2-d_2+e_2
\end{align}
\end{document}
Using Thorsten's method affects the math indent for the whole page. If that's not what you want I would suggest using the nccmath package for fleqn like this:
\documentclass{article}
\usepackage{nccmath}
\begin{document}
\noindent This is text on the page here.\\
\begin{fleqn}[0pt]
\begin{align*}
a_1 &= b_1+c_1 \\
a_2 &= b_2+c_2-d_2+e_2\\
\end{align*}
\end{fleqn}
This is more text on the page down here.\\
\end{document}
nccmath
package as I have had several problems using it. See this question for a list of them
Aug 5, 2011 at 4:44
You have to determine the length \mathindent
. See code below for an example.
\documentclass[fleqn]{article}
\usepackage{amsmath}
\setlength{\mathindent}{\parindent}
\begin{document}
\begin{align}
a_1 &= b_1+c_1 \\
a_2 &= b_2+c_2-d_2+e_2
\end{align}
\end{document}