0

I thought I was doing everything correctly, but clearly not. I want my equations (all whether I use \begin{flalign} or \begin{equation}) to be aligned each other (have the same indent), and then when using the flalign I want the equations to align at the & sign. I have put in fleqn in the document class, I have used \mathindent, however when I use flalign although the equation itself aligns at the & marks like it should, the start of the equation does not match the indent of the equation above. Currently I have the following (Excuse the massive preamble I put it in incase something was countering something else or if that is where the issue is):

\documentclass[a4paper,12pt,fleqn,titlepage]{report}
\usepackage{amsmath}
\setlength{\mathindent}{1cm}

\begin{document}

\begin{equation}
\label{whatever}
a = b
\end{equation}

words and stuff

\begin{flalign*}
a & = b&
\\
& = c&
\\
& = d&
\end{flalign*}

\end{document}
  • 1
    Please reduce your example. There are irrelevant packages and commands for your issue. – Marco Daniel Apr 12 '13 at 12:30
  • 3
    It is as easy for you to remove packages from the preamble and check that the problem is still there as it is anyone else. – David Carlisle Apr 12 '13 at 12:36
  • Has been edited, apologies. – adrem7 Apr 12 '13 at 12:52
  • 1
    it is still far from minimal \documentclass[a4paper,12pt,fleqn,titlepage]{report} \usepackage{amsmath} \setlength{\mathindent}{1cm} \begin{document} would have been enough (I was going to post an answer but Ethan beat me to it by a second or two:-) – David Carlisle Apr 12 '13 at 12:53
3

Use align* instead of flalign*.

Here's the output - works with all your packages:

enter image description here

  • Perfect, thanks, just out of curiosity, what is the difference/why does this happen with flalign? – adrem7 Apr 12 '13 at 12:54
  • I don't know - I just guessed the fix. This may answer your question: stackoverflow.com/questions/2632628/… (that should really migrate to tex.se). – Ethan Bolker Apr 12 '13 at 13:03
  • 2
    @adrem7 The point is flalign flushes the output to the extremes in a page. To see this, look at the documentation (p.27 as printed, p.31 pdf page number): here – kan Apr 12 '13 at 13:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.