LaTeX Is there a better way to format equations in LaTeX and avoid wasted space?

  • Thread starter Thread starter thegreenlaser
  • Start date Start date
  • Tags Tags
    Latex
AI Thread Summary
When using LaTeX for homework assignments that require showing all steps in equations, formatting can become challenging. The user encounters issues with both horizontal and vertical alignment of equations, leading to either cramped spacing or excessive whitespace. A suggestion is to explore the AMSmath package, specifically the align and alignat environments, which allow for more sophisticated formatting options. These environments can help present equations neatly, aligning them at equal signs while maintaining clarity, even with complex fractions. For those new to LaTeX, accessing documentation on these environments can provide valuable insights into their capabilities and usage.
thegreenlaser
Messages
524
Reaction score
16
I'm doing a homework assignment using latex, so I have to show all the steps in my equations. This creates a lot of situations where I'll have [given] = [something] = [something] ... = [final answer]. If I put it all in line, it tends to run out of room, and if I put it vertically (using amsmath align function), like:

[given] = [something]
= [something]
= ...
= [final answer]

It tends to waste a lot of space. Combining the two just tends to look messy and hard to follow especially with large fractions involved. Are there any elegant ways of doing this? Maybe like the vertical thing but in multiple columns? If so, how would I do that with LaTeX codes? (I'm still really new to LaTeX)

Thanks
 
Physics news on Phys.org
Find some documentation (online or downloadable) on the AMSmath align and alignat environments. They can do a lot more than just align equations at the "=" signs.
 

Similar threads

Replies
3
Views
2K
Replies
2
Views
3K
Replies
4
Views
3K
Replies
4
Views
4K
Replies
4
Views
3K
Replies
3
Views
2K
Replies
9
Views
2K
Back
Top