LaTeX forum ⇒ Math & SciencePagebreak 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

Postby esong_98 » Tue Jun 09, 2015 7:13 am

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:

  1. \documentclass[12pt,a4paper,english,fleqn]{article}
  2. \usepackage{mathptmx}
  3.  
  4. %The next five packages are special mathematical formatting packages used to handle long equations, theorems and proofs.
  5. \usepackage[utf8]{inputenc}
  6. \usepackage[english]{babel}
  7. \usepackage{amsmath}
  8. \usepackage{amsthm}
  9. \usepackage{amssymb}
  10.  
  11.  
  12. %Euler cursive script form
  13. \usepackage[mathscr]{euscript}
  14.  
  15.  
  16. \newtheorem{theorem}{Theorem}
  17. \usepackage[scaled=0.86]{helvet}
  18. \renewcommand{\familydefault}{\rmdefault}
  19. \usepackage[T1]{fontenc}
  20. \usepackage[utf8]{inputenc}
  21. %\usepackage{fancyhdr}
  22. %\pagestyle{fancy}
  23. \setcounter{secnumdepth}{2}
  24. \usepackage{graphicx}
  25. \usepackage[authoryear]{natbib}
  26. %Define EconEJ colors
  27. \usepackage{xcolor}
  28. \definecolor{EconomicsGray}{RGB}{198,212,225}
  29. \definecolor{EconomicsLightBlue}{RGB}{127,191,192}
  30. \definecolor{EconomicsBlue}{RGB}{0,63,138}
  31. \definecolor{EconomicsDarkBlue}{RGB}{0,63,117}
  32.  
  33. % You need this for the headers:
  34. \usepackage{graphicx}
  35. \usepackage{lscape}
  36.  
  37.  
  38. % Caption formatting
  39. \usepackage[font=footnotesize,labelfont=bf]{caption}
  40.  
  41.  
  42. % Reduce font size for section
  43. \makeatletter
  44. \renewcommand\section{\@startsection{section}{1}{\z@}
  45. {-5ex \@plus -1ex \@minus -.2ex}{2.3ex \@plus.2ex}{\normalfont\large\bf}}
  46.  
  47. %Reduce font size for subsection
  48. \renewcommand\subsection{\@startsection{subsection}{2}
  49. {\z@}{-3.25ex\@plus -1ex \@minus -.2ex}{1.5ex \@plus .2ex}{\normalfont\bf}}
  50.  
  51.  
  52. % Enforce proper line breaks and avoid widows and orphans
  53. \tolerance 1414
  54. \hbadness 1414
  55. \emergencystretch 1.5em
  56. \hfuzz 0.3pt
  57. \widowpenalty = 10000
  58. \clubpenalty=10000
  59. \vfuzz \hfuzz
  60. \raggedbottom
  61. % Format footnotes
  62.  
  63. % Footnote formatting
  64. \usepackage[hang]{footmisc}
  65. \renewcommand{\hangfootparindent}{1em}
  66. \renewcommand{\hangfootparskip}{0em}
  67. \renewcommand{\footnotemargin}{0.00001pt}
  68. \def\footnotelayout{\hspace{1em}}
  69.  
  70. %Appendix
  71. \usepackage{appendix}
  72.  
  73. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  74.  
  75. % Place your own additions to the preable HERE, that is, BEFORE the following
  76. % call to hyperref
  77.  
  78. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  79.  
  80. %Hyperlink settings for linkcolors and initial view
  81. \usepackage[%
  82. colorlinks=true,%
  83. linkcolor=black,%
  84. citecolor=black,%
  85. urlcolor=EconomicsDarkBlue,%
  86. pdfstartview=FitH,%
  87. pdfview=FitH,%
  88. pdfpagemode=UseNone]{hyperref}
  89. \hypersetup{pdftitle={Economics: The Open Access, Open Assessment E-Journal}}
  90.  
  91. % Define font for hyperlinks
  92. \def\UrlFont{\normalfont}
  93.  
  94. % Some fine-tuning of layout
  95. \usepackage{microtype}
  96.  
  97. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  98.  
  99. % Put your additions to the preable above the call to hyperref, not here, unless you
  100. % want to modify hyperref settings, as is the case with the precvious two commands
  101.  
  102. \@ifundefined{showcaptionsetup}{}{%
  103. \PassOptionsToPackage{caption=false}{subfig}}
  104. \usepackage{subfig}
  105. \AtBeginDocument{
  106. \def\labelitemi{\tiny\(\bullet\)}
  107. }
  108. \makeindex
  109. \makeatother
  110. \setlength\intextsep{0pt plus 1pt minus 1pt}
  111. \usepackage{babel}
  112. \usepackage{graphicx}
  113. \usepackage{setspace}


__________________________________

My formula is

  1. \begin{equation}
  2. \begin{split}
  3. \underset{C_t,}{\text{maximize}} \
  4. 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) \
  5. \text{subject to} \\
  6. \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] = \\
  7. = 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 \\
  8. \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) + \\
  9. +(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) \\
  10. \tau = b_1\ln\frac{[\dot{M}_t]}{[\dot{M}_1]} + b_2S_t\exp\frac{[\dot{M}_t]}{[\dot{M}_1]} \\
  11. \hat{\Omega}^y=1-(1-S)/(1+\pi^y_1\tau+\pi^y_2\tau^2) \\
  12. \hat{\Omega}^k=1-(1-S)/(1+\pi^k_1\tau+\pi^k_2\tau^2) \\
  13. \hat{\Omega}^h=1-(1-S)/(1+\pi^h_1\tau+\pi^h_2\tau^h) \\
  14. \hat{\Omega}^u=1-(1-S)/(1+\pi^u_1\tau+\pi^u_2\tau^u) \\
  15. \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
  16. \end{split}
  17. \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:

User avatar
Johannes_B
Site Moderator
Posts: 3805
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Tue Jun 09, 2015 12:32 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

Postby esong_98 » Tue Jun 09, 2015 11:06 pm

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

Postby esong_98 » Wed Jun 10, 2015 2:44 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.

User avatar
Johannes_B
Site Moderator
Posts: 3805
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Wed Jun 10, 2015 11:38 am

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.


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 3 guests