2

How would I do something like this :

    f(x)
=      < Justification >
    x + y + a
=      < according to ... >
    abc

Which math environment should I use get this kind of equations? And how can I display 2 such blocks side by side?

3

I would do it like this (this saves space too).

\documentclass{article}
\usepackage{mathtools}
\begin{document}
\[
  \begin{alignedat} {4}
    f(x) &= x + y + a & \qquad &  \text{(You say it)}\\
         &= abc       & \qquad &  \text{(According to me)}
  \end{alignedat}
\]
\end{document}

enter image description here

  • amsmath is enough and the second \qquad isn't needed. – Svend Tveskæg Feb 20 '14 at 2:46
  • @SvendTveskæg Well, I always use mathtools (habit) and use of \qquad is always subjective. Anyway, thanks for the comment. – user11232 Feb 20 '14 at 6:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.