Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How do I put the number of each equation in the new line (not the same line with the equation, located in the next line on the right)

This is required for all the equations in my thesis (which I found very weird). Thanks very much for your help.

share|improve this question
add comment

2 Answers

Are you sure you want this...

enter image description here

\documentclass{article}

\usepackage{amsmath}

\makeatletter
\def\maketag@@@#1{\hbox to \displaywidth{\hss\m@th\normalfont#1}}
\makeatother

\begin{document}

\begin{equation}
  f\langle s,t \rangle = \sum_{\substack{v,w \in E \\ v \in S, w \in T}}f(v,w) \\    
\end{equation}

aaa
\begin{align}
a&=b\\
c&=d
\end{align}


\end{document}
share|improve this answer
    
Thanks so much David, it works. I am not sure, but my boss is:-( This is so ugly. I don't understand why he wants the equations to be done this way. Anyway, thanks a lot. –  Shea Apr 16 '13 at 14:02
    
Wouldn't \displaywidth be better than \textwidth? I didn't test, though. –  egreg Apr 16 '13 at 15:37
    
@egreg, yes, probably. –  David Carlisle Apr 16 '13 at 15:53
add comment

Weird indeed. This should work:

\begin{align}
e^{i\pi} & = \cos(\pi) + i\sin(\pi) = -1 \notag \\
  & \label{eq:whatever}
\end{align}
%
This is Equation \eqref{eq:whatever}

enter image description here

share|improve this answer
    
Thanks so much. –  Shea Apr 17 '13 at 15:26
add comment

Your Answer

 
discard

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.