## LaTeX forum ⇒ Math & Science ⇒ Pagebreak in formula

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
esong_98
Posts: 16
Joined: Tue Jan 14, 2014 9:34 am

### Pagebreak in formula

My formula is too long. Latex won't let me break it into two pages. I've tried suggestions from past comments, but they don't work. \displaybreak[1].... \display[4] don't work, neither does \allowdisplaybreaks[1]....\allowdisplaybreaks[4] in preamble or inside formula work. My preamble is:


__________________________________

My formula is

\begin{equation}\begin{split}\underset{C_t,}{\text{maximize}} \W = \displaystyle\sum\limits_{t=1}^{T max}\mathscr{S_t}(\tau, \tau_{c,max})(1-\Omega^u_t) \beta^{t-1}U_t\bigg(C_t\Big(\displaystyle\sum_i^N E^c(\dot{m}_{it})\Big), L_t\bigg) \ \text{subject to} \\ \mathscr{S}(\tau, \tau_{c,max})(1-\Omega^Y_t)(1-\wedge_t)A_tF\Big[K_t(\Omega^K_t), H_t(\Omega^H_t), L_t(\Omega^L_t), \displaystyle\sum_i^N E^c(\dot{m}_{it})\Big] = \\= C_t\Big(\displaystyle\sum_i^N E^y(\dot{m}_{it})\Big) + K_{t+1} + (1-\delta)K_t + H_{t+1} + (1-\delta_h)H_t  \\ \dot{M}(T) = \varpi \displaystyle\sum_{i=1}^{T} \dot{m}(i) + (1-\varpi) \displaystyle\sum_{i=0}^{T} (1-\delta_p)^i \dot{m}(T-i) + \\ +(1-\varpi_x)\delta_{xm}\bigg(\displaystyle\sum_{j=1}^{T-1}\displaystyle\sum_{i=1}^{j-1} (1-\delta_{xm})\dot{m^x}_{T-j}\bigg) + \dot{M}^e(1) \\\tau = b_1\ln\frac{[\dot{M}_t]}{[\dot{M}_1]} +  b_2S_t\exp\frac{[\dot{M}_t]}{[\dot{M}_1]} \\\hat{\Omega}^y=1-(1-S)/(1+\pi^y_1\tau+\pi^y_2\tau^2) \\\hat{\Omega}^k=1-(1-S)/(1+\pi^k_1\tau+\pi^k_2\tau^2)  \\\hat{\Omega}^h=1-(1-S)/(1+\pi^h_1\tau+\pi^h_2\tau^h)  \\\hat{\Omega}^u=1-(1-S)/(1+\pi^u_1\tau+\pi^u_2\tau^u)  \\\Omega_t = \chi_y\Omega^Y _t + \chi_k \Omega^K_t + \chi_h\Omega^H_t + \chi_l\Omega^L + \chi_u\Omega^u_t\end{split}\end{equation}

___________________________________________

Any suggestions other than break the formula into two formulas?
Last edited by Stefan Kottwitz on Tue Jun 09, 2015 11:32 am, edited 1 time in total.

Tags:

Johannes_B
Site Moderator
Posts: 3805
Joined: Thu Nov 01, 2012 4:08 pm
It cannot be done with equation, but with align. Is that really one single equation? If not, align (or aligned) or surely the better choice.

Please post a minimal working example. With a large preamble and code snippets, answering a question takes too long to do it during a short break.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

esong_98
Posts: 16
Joined: Tue Jan 14, 2014 9:34 am
Nope, aligned doesn't work. The Amsmath manuel also states that you can't page break using aligned or split.

I tried using \begin{subequations} and break the problem up into separate equations. Unfortunately, each line is numbered not each equation. So this problem is still unsolved. I've tried putting a box around the equation and make it into something like a figure where I can put the box anywhere in the paper, but it just doesn't look right, and formatting the box is a problem.

The only other solution I can think of is to break it up into a sequence of equations. But I want to let the reader know that the equations should act as one unit, so I'm reluctant to go that route.

esong_98
Posts: 16
Joined: Tue Jan 14, 2014 9:34 am
I actually got the \align mode to get a page break in the formula with \displaybreak, but it made the formatting even worse. That's because the pagebreak only makes the formula box bigger. Thus, the bad box got even worse. The problem was that since Latex wants to put the formula on one page, it leaves too much space on the page before the formula. By using pagebreak, I now had too much space on the first page of the formula, while still having too much space on the page before the formula.

I worked out a partial solution where I broke up the formula into pieces, and then used \begin{equation*}, then left out the * on the last piece of the formula, this kept the numbering system intact. The format looked much better, but it didn't completely get rid of the bad box.

Johannes_B
Site Moderator
Posts: 3805
Joined: Thu Nov 01, 2012 4:08 pm
I would need a minimal working example to test anything. The code snippets abbove are huge and the time to make this into a sensible document would take too long for a short break.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.