DEV Community

latexteada
latexteada

Posted on

1

LaTeX & Maths: Aligned Equations

Hello, how are you? :)

In this post I talk about how to align equations, for example to split a long equation with some tips, let's start!!!

Do you remember that in this post I tell you how to align the equations, but this align was centered, not according to some character, to do this you need the align environment

align Environment

This environment is used if you want to align your equations or split a huge equation, the structure is

\begin{align}
    My Equations
\end{align}
Enter fullscreen mode Exit fullscreen mode

No blank lines are permitted within the environment

  • \\ creates a new line
  • & create the alignment point

Do not put \\ at the end of the last line

code

Produces

Screenshot from 2021-09-08 21-33-50

But, wait!!! What if I want to put two columns in the align environment, well:

The symbol & has multiple purposes

  • The first & aligns the first column
  • The second & is a space between columns
  • The third & aligns the second column

code

Produces

Screenshot from 2021-09-08 21-42-14

  • Break the formula before a binary relation

This is all for today, thanks for reading

Do not forget to follow me on Twitter @latexteada
Greetings :)

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay