LaTeX forum ⇒ Math & ScienceFlushing a single equation to the left Topic is solved

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
User avatar
Cham
Posts: 882
Joined: Sat Apr 02, 2011 4:06 pm

Flushing a single equation to the left  Topic is solved

Postby Cham » Tue Jun 05, 2018 7:45 pm

I would like to push a few equations to the left side. Do flalign is the only option to do this, for a single equation ? Here's a tiny MWE to show what I want to do :
  1. \documentclass{article}
  2. \usepackage{amsmath}
  3.  
  4. \begin{document}
  5. Blablabla
  6. \begin{equation}
  7. \frac{1}{3 x + 4} = \frac{2}{x}.
  8. \end{equation}
  9. Blabla
  10. \begin{flalign}
  11. &\frac{1}{3 x + 4} = \frac{2}{x}.&
  12. \end{flalign}
  13. \end{document}


I find it a bit weird that I have to use the align environment (with two "&") just to do this. Is there another way in achieving this?

User avatar
Stefan Kottwitz
Site Admin
Posts: 8905
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Tue Jun 05, 2018 8:35 pm

Common typography is to decide either having equations centered or flushed left. Mixing is so unusual, that there's no official support for it. flalign is the easiest and works. Just take it. Other solutions would be rather hacks. It's not officially supported (because it's uncommon) and since there's this flalign way, no implemetation is needed.

Stefan
Site admin

User avatar
Cham
Posts: 882
Joined: Sat Apr 02, 2011 4:06 pm

Postby Cham » Tue Jun 05, 2018 9:28 pm

I agree. Personally, I usually center all of my equations.

However, in the case of the course notes I'm writing, I need to mix calculations examples (all centered) with exercices for the students. In this case, I need to envisage an empty space at the right side of the equations so the students could do their own calculations there (they have to fill the empty space by hand). This is why I need some equations to be flushed to the left.


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 0 guests