I have a simple alignment question for Latex tables. At the moment it looks as follows:
\begin{center}
\begin{tabular}{| c | l | l | }
\hline
\tt {a} & $a = b + c + d + e + f + g + $ \\
& $ e + f + g + h + i + j$ \\ \hline
\end{tabular}
\end{center}
The problem is, that the output looks as follows:
a = b + c + ...
e + f + ....
However, I would like to have it looks as
a = b + c + ...
e + f + ...
Anyone an idea how I could do that in a table?
Thanks, Klaus
Please use the align
environment for multiline equations.
You can add a \phantom{a = }
to indicate the should-be-existing spaces.
& $\phantom{a = }e + f + g + h + i + j$ \\ \hline
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With