Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.43 KB | None | 0 0
  1. documentclass{article}
  2.  
  3. clubpenalty=150
  4. flushbottom
  5. renewcommandtopfraction{.9}
  6. renewcommandtextfraction{.05}
  7. nofiles
  8. tracingpages=1
  9.  
  10. begin{document}
  11.  
  12. hrule
  13. vskip 75pt
  14. centerline{First float}
  15. vskip 100pt
  16. hrule
  17. vskipfloatsep
  18. hrule
  19. vskip 75pt
  20. centerline{Second float}
  21. vskip 100pt
  22. hrule
  23. vskiptextfloatsep
  24.  
  25. This paragraph is simply meant to be filler in order to illustrate the problem.
  26. We deliberately did not use the more common ``Lore ipsum'' to not confuse TeX hyphenation mechanism.
  27. With this minimal working example (MWE) we want to pin down a problem, when TeX/LaTeXe calculates the badness of a page.
  28. It seems that the additional vertical flexibility that is provided by floats are not considered.
  29.  
  30. The text height equals thetextheight, the baseline skip equals thebaselineskip, the separation between the last top float or the first bottom float and the text equals thetextfloatsep, the separation between an in-text float and the surrounding text equals theintextsep, and the separation between consecutive floats equals thefloatsep.
  31.  
  32. To this end, we need at least two paragraphs that both are at least four lines long.
  33. Four lines are the minimum to split a paragraph across pages without creating a club or widow.
  34. Unfortunately, we run out of ideas what we could write to fill the remaining lines.
  35. Maybe a quote from literature is our rescue: ``Be or not to be, that is the question''.
  36. Yes, this is enough.
  37. end{document}
  38.  
  39. documentclass{article}
  40.  
  41. clubpenalty=2000
  42. flushbottom
  43. renewcommandtopfraction{.9}
  44. renewcommandtextfraction{.05}
  45. nofiles
  46. tracingpages=1
  47.  
  48. begin{document}
  49.  
  50. hrule
  51. vskip 75pt
  52. centerline{First float}
  53. vskip 100pt
  54. hrule
  55. vskipfloatsep
  56. hrule
  57. vskip 75pt
  58. centerline{Second float}
  59. vskip 100pt
  60. hrule
  61. vskiptextfloatsep
  62.  
  63. This paragraph is simply meant to be filler in order to illustrate the problem.
  64. We deliberately did not use the more common ``Lore ipsum'' to not confuse TeX hyphenation mechanism.
  65. With this minimal working example (MWE) we want to pin down a problem, when TeX/LaTeXe calculates the badness of a page.
  66. It seems that the additional vertical flexibility that is provided by floats are not considered.
  67.  
  68. The text height equals thetextheight, the baseline skip equals thebaselineskip, the separation between the last top float or the first bottom float and the text equals thetextfloatsep, the separation between an in-text float and the surrounding text equals theintextsep, and the separation between consecutive floats equals thefloatsep.
  69.  
  70. To this end, we need at least two paragraphs that both are at least four lines long.
  71. Four lines are the minimum to split a paragraph across pages without creating a club or widow.
  72. Unfortunately, we run out of ideas what we could write to fill the remaining lines.
  73. Maybe a quote from literature is our rescue: ``Be or not to be, that is the question''.
  74. Yes, this is enough.
  75. end{document}
  76.  
  77. documentclass{article}
  78.  
  79. clubpenalty=2000
  80. flushbottom
  81. renewcommandtopfraction{.9}
  82. renewcommandtextfraction{.05}
  83. nofiles
  84. tracingpages=1
  85.  
  86. begin{document}
  87.  
  88. begin{figure}[t]
  89. hrule
  90. vskip 75pt
  91. centerline{First float}
  92. vskip 100pt
  93. hrule
  94. end{figure}
  95. begin{figure}[t]
  96. hrule
  97. vskip 75pt
  98. centerline{Second float}
  99. vskip 100pt
  100. hrule
  101. end{figure}
  102.  
  103. This paragraph is simply meant to be filler in order to illustrate the problem.
  104. We deliberately did not use the more common ``Lore ipsum'' to not confuse TeX hyphenation mechanism.
  105. With this minimal working example (MWE) we want to pin down a problem, when TeX/LaTeXe calculates the badness of a page.
  106. It seems that the additional vertical flexibility that is provided by floats are not considered.
  107.  
  108. The text height equals thetextheight, the baseline skip equals thebaselineskip, the separation between the last top float or the first bottom float and the text equals thetextfloatsep, the separation between an in-text float and the surrounding text equals theintextsep, and the separation between consecutive floats equals thefloatsep.
  109.  
  110. To this end, we need at least two paragraphs that both are at least four lines long.
  111. Four lines are the minimum to split a paragraph across pages without creating a club or widow.
  112. Unfortunately, we run out of ideas what we could write to fill the remaining lines.
  113. Maybe a quote from literature is our rescue: ``Be or not to be, that is the question''.
  114. Yes, this is enough.
  115. end{document}
  116.  
  117. %% goal height=550.0, max depth=5.0
  118. % t=0.0 g=550.0 b=10000 p=0 c=100000#
  119. % t=10.0 g=550.0 b=10000 p=0 c=100000#
  120. % t=91.94444 g=550.0 b=10000 p=0 c=100000#
  121. % t=192.34444 g=550.0 b=10000 p=0 c=100000#
  122. % t=204.74443 plus 2.0 minus 2.0 g=550.0 b=10000 p=0 c=100000#
  123. % t=286.68887 plus 2.0 minus 2.0 g=550.0 b=10000 p=0 c=100000#
  124. % t=387.08887 plus 2.0 minus 2.0 g=550.0 b=10000 p=0 c=100000#
  125. % t=414.03331 plus 5.0 minus 6.0 g=550.0 b=10000 p=150 c=100000#
  126. % t=426.03331 plus 5.0 minus 6.0 g=550.0 b=10000 p=0 c=100000#
  127. ...
  128. % t=534.03331 plus 6.0 minus 6.0 g=550.0 b=1881 p=0 c=1881#
  129. % t=546.03331 plus 7.0 minus 6.0 g=550.0 b=18 p=150 c=168#
  130. % t=558.03331 plus 7.0 minus 6.0 g=550.0 b=* p=0 c=*
  131.  
  132. % t=534.03331 plus 6.0 minus 6.0 g=550.0 b=1881 p=0 c=1881#
  133. % t=546.03331 plus 7.0 minus 6.0 g=550.0 b=18 p=2000 c=2018
  134. % t=558.03331 plus 7.0 minus 6.0 g=550.0 b=* p=0 c=*
  135.  
  136. %% goal height=152.51114, max depth=5.0
  137. % t=0.0 g=152.51114 b=10000 p=0 c=100000#
  138. % t=10.0 g=152.51114 b=10000 p=2000 c=100000#
  139. % t=22.0 g=152.51114 b=10000 p=0 c=100000#
  140. ...
  141. % t=130.0 plus 1.0 g=152.51114 b=10000 p=0 c=100000#
  142. % t=142.0 plus 2.0 g=152.51114 b=10000 p=2000 c=100000#
  143. % t=154.0 plus 2.0 g=152.51114 b=* p=0 c=*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement