Math & ScienceAll new equations generated with the same equation number

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

All new equations generated with the same equation number

Post by localghost »

Perhaps you should use another environment with additional adjustment of some delimiters.

Code: Select all

\begin{equation}
  \begin{aligned}
    \textbf{Cpl} (0,T_{j-1},T_j,\tau_j,K) &= \tau_j P(0,T_j) \Biggl[\sum_{i=1}^N \psi_i \exp^{-\frac{1}{2} \beta_i^2 t+ \beta_i h_t^{-1}(F_j(t))}\,\Phi\Biggl(\frac{\beta_i(T_{j-1}-t)-h_{T_{j-1}}^{-1}(K)+ h_t^{-1}(F_j(t))}{\sqrt{T_{j-1}-t}}\Biggr) \\
    &\quad -K \Phi\Biggl(\frac{h_t^{-1}(F_j(t))-h_{T_{j-1}}^{-1}(K)}{\sqrt{T_{j-1}-t}}\Biggr)\Biggr]
  \end{aligned}
\end{equation}
The amsmath user guide describes all provided environments in detail. Just choose the one which fits best your ideas.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

All new equations generated with the same equation number

Post by Stefan Kottwitz »

bazman wrote: but it comes out right justified?
you have used split but without column separator &, so all lines are like first columns, those would be right justified. It's a long formula and there could be more improvements, but for the moment here's a multline version:

Code: Select all

\begin{multline}
  \textbf{Cpl} (0,T_{j-1},T_j,\tau_j,K) \\
  \tau_j P(0,T_j) [\sum_{i=1}^N \psi_i \exp^{-\frac{1}{2} \beta_i^2 t+ \beta_i h_t^{-1}(F_j(t))} \Phi( \frac{\beta_i(T_{j-1}-t)-h_{T_{j-1}}^{-1}(K)+ h_t^{-1}(F_j(t))}{\sqrt{T_{j-1}-t}}) \\ -K \Phi(\frac{h_t^{-1}(F_j(t))-h_{T_{j-1}}^{-1}(K)}{\sqrt{T_{j-1}-t}})] 
\end{multline}
Decide, where you want to break the line, and think about enlarging parantheses/brackets.

Stefan
LaTeX.org admin
bazman
Posts: 78
Joined: Mon Jan 26, 2009 3:24 am

Re: All new equations generated with the same equation number

Post by bazman »

Perfect that's it!!!

Also I have now corrected all the errors and the numbering issue has been resolved in the process!

Thank you to you all!
bazman
Posts: 78
Joined: Mon Jan 26, 2009 3:24 am

Re: All new equations generated with the same equation number

Post by bazman »

ah hold on!

one more thing.

When I use {multiline} in no longer numbers the equation. Is their away so that a numer is generated in line with the numbers when I use {equation}?
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

All new equations generated with the same equation number

Post by gmedina »

Hi,

the unstarred versions of the environments provided by amsmath produce numbering. Please post here the code that you are using for your multline environment.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
bazman
Posts: 78
Joined: Mon Jan 26, 2009 3:24 am

Re: All new equations generated with the same equation number

Post by bazman »

So sorry it was my mistake I used typed multiline instead of multline!

Starting to think I have dyslexia!
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

All new equations generated with the same equation number

Post by phi »

There is no multiline environment, so a code like

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{multiline}
  a = b
\end{multiline}
\end{document}
issues an appropriate error message. You simply mustn't ignore error messages!
Post Reply