Mozete pouzit napriklad environment align* a miesta, ktore chcete zarovnat, oznacit &. Novy riadok je oznaceny \\.
Vela dalsich podobnych (a uzitocnych) environmentov mozete najst v Chapter 8 z LaTeX Companion.
Code: Select all
\begin{align*}
2(r^2+4rR) &= 2(ab+bc+ca-s^2) \\
&= 2(ab+bc+ca)-\frac{(a+b+c)^2}2 \\
&= ab+bc+ca-\frac{a^2+b^2+c^2}2.
\end{align*}
\begin{align*}
2(r^2+4rR) &= 2(ab+bc+ca-s^2) \\
&= 2(ab+bc+ca)-\frac{(a+b+c)^2}2 \\
&= ab+bc+ca-\frac{a^2+b^2+c^2}2.
\end{align*}$$
Pozicii, ktore chcem zarovnat, mozem mat i viac:
Code: Select all
\begin{align*}
89&=5.16+9 &\qquad 9&=89-5.16\\
16&=1.9+7 &\qquad 7=16-9 &= 6.16-89 \\
9&=1.7+2 &\qquad 2=9-7&=2.89-11.16\\
7&=3.2+1 &\qquad 1=7-3.2&=39.16-7.89
\end{align*}
\begin{align*}
89&=5.16+9 &\qquad 9&=89-5.16\\
16&=1.9+7 &\qquad 7=16-9 &= 6.16-89 \\
9&=1.7+2 &\qquad 2=9-7&=2.89-11.16\\
7&=3.2+1 &\qquad 1=7-3.2&=39.16-7.89
\end{align*}
$$