Using the following mwe i have not yet found a way to align the formulas correctly.
\documentclass{article}
\usepackage{mathtools} % extends amsmath and fixes some of its quirks
\usepackage{amssymb}
\begin{document}
\begin{align}\label{eq:mergefunction_with_weighting}
\curlyvee(v, \omega) :=
l_1 \triangleright l_2 =
\left\{
\begin{aligned}
&l_1(v) & &\text{wenn $v \in G_1 \setminus G_2$}\\
\omega(&l_1(v)) + (1-\omega)(&\hat{R}l_2(v) +\hat{t}) &\text{wenn $v \in G_1 \cap G_2$}\\
& &\hat{R}l_2(v) +\hat{t} &\text{wenn $v \in G_2 \setminus G_1$}.
\end{aligned}
\right.
\end{align}
\end{document}
My output is currently like this:
Everything is fine except the vertical and horizontal alignment/spacing within the aligned
environment. But in that you can notice the following:
- First &
works fine.
- The second &
should be aligned to
\hat{R}
and without spacing between the (
and the \hat{R}
in
the middle row
- At the last &
, the spacing in the middle row between
\hat(t))
and wenn
should be larger. (I think this one would disappear as soon as the second &
is fixed.
So the requests i have sum up to the question: Whats the best and consistent way to approach placement issues like these?