I am using the aligned
environment in order to have a sequence of left-aligned equations.
In this latex code:
\[
\begin{aligned}
& a = b \\
& -c = d
\end{aligned}
\]
There is some space between the minus sign and the "c" even though I want it to be a unary minus.
How can I make this minus sign that comes after an &
be a unary minus?
Ideally I would like to have a way to do this that works with KaTeX, since that is what I'm using to render math (although this issue appears to happen with pdflatex too.)
&{-c}
should do what you want.