First of all you make false use of the alignment character ("&"). Always insert it before the equal sign. The second issue is that the additional aligned environment is not necessary.
bkarpuz wrote:...I need equation number to be placed in the middle of the last two equation lines.
is that possible?
I don't know if I understood your petition correctly. If you want to adjust the vertical position of the tags you can use the \raisetag command provided by the amsmath package; however, this command will only have effect if the tag has been previously shifted from its normal position. For this reason, in the code below I used an invisible rule to force the tags to be moved and then I used \raisetag to correct their position:
bkarpuz wrote:...I need equation number to be placed in the middle of the last two equation lines.
is that possible?
I don't know if I understood your petition correctly. If you want to adjust the vertical position of the tags you can use the \raisetag command provided by the amsmath package; however, this command will only have effect if the tag has been previously shifted from its normal position. For this reason, in the code below I used an invisible rule to force the tags to be moved and then I used \raisetag to correct their position:
In general, use align for multiple equations and split for single equations that span more than one line. As you can see, the numbering is different.
Manual adjustments are unnecessary in this case.
In general, use align for multiple equations and split for single equations that span more than one line. As you can see, the numbering is different.
Manual adjustments are unnecessary in this case.
As I understood, the OP's petition involved two tags. The split environment will produce only one tag. That's the reason that led me to design my solution using a manual adjustment instead of split.
gmedina wrote:As I understood, the OP's petition involved two tags.
I don't think so.
I need equation number to be placed in the middle of the last two equation lines.
So he wants one equation number in the middle of the last two lines. That is exactly what his original code does, and there he only complains about the equal signs, which can be corrected by using a split environment. Placing the tag between these lines is sensible because they contain a split expression, but placing another tag somewhere else wouldn't make much sense.
Personally I think that every equation should have at most one vertically centered number, like this:
gmedina wrote:As I understood, the OP's petition involved two tags.
I don't think so.
Well, I thought so, and that's why I took the time to give my solution; had I thought differently then, of course I, would have suggested the use of a split environment.
phi wrote:...but placing another tag somewhere else wouldn't make much sense.
As to what makes sense or not, let me tell you that after seeing some really bizarre requirements I don't know anymore what makes sense and what doesn't.