1

Is there an easy way to make the equation centered in this:

\[x_i = y_i \hspace{1.0em}(i=1,\dots,n)\]

The parenthetical information would be off to the right.

  • 1
    You might make the parenthetical information, together with the quad, zero wide; but why? The condition is part of the formula. By the way, \hspace{1.0em} is the same as \quad – egreg Jan 9 '17 at 10:11
3

Yes, with mathtools:

\[x_i = y_i \mathrlap{\quad(i=1,\dots,n)} \]
  • This answer gives the code for \mathrlap for those that are interested (I prefer to avoid using a whole package if all I need is one command, which I stick in my preamble instead). – Bill Wallis Jul 4 '18 at 13:00
  • Sure, but mathtools is anyway a highly recommended package, which adds many useful features to amsmath. – Bernard Jul 4 '18 at 13:05

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.