The amsmath package provides a handful of options for displaying equations. You can choose the layout that better suits your document, even if the equations are really long, or if you have to include several equations in the same line. The standard LaTeX tools for equations may lack some flexibility, causing overlapping or even trimming part of the equation when it's too long. We can surpass these difficulties with amsmath. Let's check an example:. Inside the equation environment, use the split environment to split the equations into smaller pieces, these smaller pieces will be aligned accordingly.
horizontal alignment - Aligning in text (non-math) - TeX - LaTeX Stack Exchange
It only takes a minute to sign up. I would like to align some text similar to how the align math environment works. I don't want to put the text in a table, because I don't want it to float. I tried putting the text in a tabular environment, but that doesn't flow well with the text before and after.
Justification is the default text alignment for LaTeX. In addition to justification, there are three other variants: left-justified, right-justified, and centered text alignment. The latter three have their own environments in which they can be used or switches with which they can be activated. In general, the corresponding environments should be used.
Text alignment can be manually controlled by several commands. In this article is explained how to change text justification for either part of the text, or the entire document. L a T e X default text is fully-justified, but often left-justified text may be a more suitable format. This left-alignment can be easily accomplished by importing the ragged2e package. See the next section for more information on how this package actually works.