TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to put the equation number at the end like below

enter image description here

share|improve this question
begin{equation} y =x \end{equation}? – Peter Grill Sep 19 '12 at 17:42
...also, following How to type such expression, use Q\min rather than Qmin. – Werner Sep 19 '12 at 17:48
yes you are right :) – william007 Sep 19 '12 at 17:48
up vote 5 down vote accepted

As already explained in the comments, numbered equations are get by using the numbered equation environments (equation or with package amsmath: gather, align, …). Unless some option is set (fleqn) the equation numbers are put at the right. Package amsmath is also a bit cleverer by measuring the equation first and moves the equation number out of the way right below the equation, if the equation is too wide.

The min' is a little bit tricky if \min is used, because \min' prints the prime at the wrong place in displayed equations:

min with wrong prime

\min{}' does not help, because the distance becomes too large. \min\nolimits' helps in this case without subscripts. The following example defines a new operator \minp that also supports the case, where the subscript goes below the operator name.

Q\minp(k) = \sum_{j=1}^{n} Q\min(j,k)        


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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