Hi,
I started to use just lately in TeXnicCenter.
I'm writing a 'book' in 'twocolumns' and I tried to insert an equation which is too long thus part of the equation disappear, How can I force the equation to split/wrap? (I prefer not to write twice an equation even though it should work)
Thanks
Math & Science ⇒ How to Split an Equation
NEW: TikZ book now 40% off at Amazon.com for a short time.

How to Split an Equation
With \usepackage{amsmath} you can use:
there are other options too, like gather, multline and align environments. See the AMS math documentation.
Code: Select all
\begin{equation}
\begin{split}
(first part) \\
(second part)
\end{split}
\end{equation}
How to Split an Equation
Hi there,
I have think I have followed the example given below correctly but my equation is still not working?
Please advise.
I have think I have followed the example given below correctly but my equation is still not working?
Please advise.
Code: Select all
\documentclass{article} % Your input file must contain these two lines
\usepackage{natbib}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{bm}
\usepackage{grffile}
\usepackage{graphicx}
\usepackage[%
font=small,
labelfont=bf,
figurewithin=section,
tablewithin=section,
tableposition=top
]{caption}
\numberwithin{equation}{section}
\begin{document} % plus the \end{document} command at the end
\parskip = 1pc %change spacing between paragraphs
\parindent = 0pc %change paragraph indentation
\begin{equation}
\begin{split}
\textbf{Cpl}(0,T_{j-1},T_j,\tau_j,K)=\tau_j P(0,T-j)[\frac{F_j(0)}{2\sinh(-L_i)}(exp^{-L_i} \Phi(\overline{y}_i(T_{j-1}) + \\ A_i(T_{j-1))-\exp^{L_i}\Phi(\overline(y)_i(T_{j-1}-A_i(T{j-1})))-K\phi(\overline(y)_i(T_{j-1}))]
\end{split}
\end{equation}
\end{document}
How to Split an Equation
The reason your code isn't compiling isn't because of the split environment, but because of other errors in the equation. Here's what I noticed:
- Right after the \\-split you have A_i(T_{j-1)) whereas you probably mean A_i(T_{j-1}) -- hence that subscript never closes (hence the split never closes).
- Twice you have \overline(y) rather than \overline{y}
- There may be others, but it's not clear without knowing precisely what you were after.
-
- Posts: 34
- Joined: Sat Aug 08, 2009 1:05 pm
How to Split an Equation
You should also take a look at the following option
Check User's Guide for the amsmath Package (Version 2.0) for further details on various types for display equation environments (see especially Table 3.1 on page 4)
The difference is that your equation is aligned in a slight different way, left aligned in the first line, and then right aligned the last line. If you have, for example, three lines, the middle is aligned in the center, giving a nice formula breaking.
Check User's Guide for the amsmath Package (Version 2.0) for further details on various types for display equation environments (see especially Table 3.1 on page 4)