How can I align the blue texts?
\documentclass{article}
\usepackage{amsmath}
\usepackage{xcolor}
\begin{document}
\begin{flalign*}
&\color{red}f:x^2+y^2=4,\qquad \color{blue}f(3)=2&\\
&\color{red}g:x^2-y^2=2,\qquad \color{blue}g(4)=1&
\end{flalign*}
\end{document}
Best Answer
I suggest to use the
fleqn
environment fromnccmath
, which works somewhat likesubequations
, and thealignat*
environment, which gives you full control on the spacing between the alignment columns: