A bit nickpicky, but \item from enumerate and flalign* don't line up correctly, such that there is a small vertical distance between the two.

Code surrounding error:


%some long text



$x * y = \dfrac{xy}{x+y+1}$

$y * x = \dfrac{yx}{y+x+1} = \dfrac{xy}{x+y+1}$

Since $x * y = y * x$, $*$ is communicative.

x*(y*z) &= x* \left(\frac{yz}{y+z+1} \right) &\\
&= \dfrac{x \cdot \frac{yz}{y+z+1}}{x + \frac{yz}{y+z+1} + 1} &\\
&= \dfrac{xyz}{(x+1)(y+z+1) + yz} &\\
&= \dfrac{xyz}{xy+xz+yz + x+y+z + 1} &

%more long text


%even more text


Output (red circle at spacing issue)

  • Welcome to TeX.SX! Please help us help you by turning your code into a minimal compilable code example (MWE). – TeXnician Feb 16 at 16:52

flalign is a display enviornment that takes the full width of the page and offsets the display with vertical space so the fact that the ii appears to the left of it is more or less accidental and there is no possibility of it aligning with the first line of text.

To use display math in an enumeration use

\item $\begin{aligned}[t].....

\begin{aligned}[t] is designed to do exactly what you want, produce an alignment with its reference point on the first line so other text will align with the first line of the display.

  • Thanks for the help! This was exactly what I was looking for! For future use, what does the [t] do in the aligned environment, and are there other optional parameters you could input? – Enver Aman Feb 16 at 18:11
  • [t] for top (which is what you asked for, try [b] to see the difference (or c) @EnverAman – David Carlisle Feb 16 at 20:14

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.