Not start a new page with scanty number of words, lines [duplicate]How do I prevent widow/orphan lines?Index...

What is the word for reserving something for yourself before others do?

Is it possible to do 50 km distance without any previous training?

Rock identification in KY

Convert two switches to a dual stack, and add outlet - possible here?

What defenses are there against being summoned by the Gate spell?

What's the output of a record needle playing an out-of-speed record

Has there ever been an airliner design involving reducing generator load by installing solar panels?

Cross compiling for RPi - error while loading shared libraries

LaTeX: Why are digits allowed in environments, but forbidden in commands?

How does quantile regression compare to logistic regression with the variable split at the quantile?

Approximately how much travel time was saved by the opening of the Suez Canal in 1869?

How does one intimidate enemies without having the capacity for violence?

I'm flying to France today and my passport expires in less than 2 months

Unable to deploy metadata from Partner Developer scratch org because of extra fields

Why is Minecraft giving an OpenGL error?

Perform and show arithmetic with LuaLaTeX

How do I deal with an unproductive colleague in a small company?

How can bays and straits be determined in a procedurally generated map?

How to determine what difficulty is right for the game?

Why do I get two different answers for this counting problem?

Does an object always see its latest internal state irrespective of thread?

Languages that we cannot (dis)prove to be Context-Free

Can you really stack all of this on an Opportunity Attack?

Was any UN Security Council vote triple-vetoed?



Not start a new page with scanty number of words, lines [duplicate]


How do I prevent widow/orphan lines?Index shouldn't start new pageSection should automatically start new page if the whole section does not fit on current pageNew page at end of subsection (not start!)Why do I get an extra white page before my TikZ picture?How to force section to not go to new page in articleTwo maketitles in one pageNot to start the bibliography in a new pageStart new page with each partTest for number of lines left on a pageHow to avoid new pages in the middle of a sentence?













0
















This question already has an answer here:




  • How do I prevent widow/orphan lines?

    6 answers




This script



documentclass{article}
usepackage{lipsum}
begin{document}
lipsum[1-5]
lipsum[6][1-2]
end{document}


produces the output



enter image description here



How can I avoid starting page 2 with such a scanty number of words, lines?










share|improve this question













marked as duplicate by Skillmon, JouleV, Kurt, Phelype Oleinik, Stefan Pinnow 6 hours ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.























    0
















    This question already has an answer here:




    • How do I prevent widow/orphan lines?

      6 answers




    This script



    documentclass{article}
    usepackage{lipsum}
    begin{document}
    lipsum[1-5]
    lipsum[6][1-2]
    end{document}


    produces the output



    enter image description here



    How can I avoid starting page 2 with such a scanty number of words, lines?










    share|improve this question













    marked as duplicate by Skillmon, JouleV, Kurt, Phelype Oleinik, Stefan Pinnow 6 hours ago


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.





















      0












      0








      0









      This question already has an answer here:




      • How do I prevent widow/orphan lines?

        6 answers




      This script



      documentclass{article}
      usepackage{lipsum}
      begin{document}
      lipsum[1-5]
      lipsum[6][1-2]
      end{document}


      produces the output



      enter image description here



      How can I avoid starting page 2 with such a scanty number of words, lines?










      share|improve this question















      This question already has an answer here:




      • How do I prevent widow/orphan lines?

        6 answers




      This script



      documentclass{article}
      usepackage{lipsum}
      begin{document}
      lipsum[1-5]
      lipsum[6][1-2]
      end{document}


      produces the output



      enter image description here



      How can I avoid starting page 2 with such a scanty number of words, lines?





      This question already has an answer here:




      • How do I prevent widow/orphan lines?

        6 answers








      page-breaking






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 8 hours ago









      ViestursViesturs

      1,93141127




      1,93141127




      marked as duplicate by Skillmon, JouleV, Kurt, Phelype Oleinik, Stefan Pinnow 6 hours ago


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









      marked as duplicate by Skillmon, JouleV, Kurt, Phelype Oleinik, Stefan Pinnow 6 hours ago


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
























          1 Answer
          1






          active

          oldest

          votes


















          2














          You can use TeX's looseness parameter. If you say looseness=<number> for a paragraph, TeX will try to make it <number> lines longer than what would have been done otherwise, without exceeding the current tolerance. <number> may be negative, so in your case, setting looseness=-1 for one of the paragraphs does the trick:



          documentclass{article}
          usepackage{lipsum}
          begin{document}
          looseness=-1 % make the next paragraph one line shorter than usual
          lipsum[1-5]

          lipsum[6][1-2]
          end{document}


          According to the TeXbook, looseness is reset to zero at the same time as hangindent, hangafter, and parshape are reset to their normal values, which is




          at the end of every paragraph, and (by local definitions) whenever it
          enters internal vertical mode.




          (TeXbook p. 103)



          Therefore, the looseness=-1 in the above example affects only the first of the five paragraphs produced by lipsum[1-5]. There is no need to do this assignment in a group.



          If I remember correctly, the TeXbook also mentions a trick to spread some looseness among several paragraphs. I could probably find it if you're interested.



          As suggested in Skillmon's comment, another way would be to play with penalties, in particular with widowpenalty (to avoid page breaking before the last line of a paragraph) and linepenalty (to make TeX's line breaking algorithm more reluctant to add lines to a paragraph: this penalty defines the “base cost” of each line).






          share|improve this answer
































            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            You can use TeX's looseness parameter. If you say looseness=<number> for a paragraph, TeX will try to make it <number> lines longer than what would have been done otherwise, without exceeding the current tolerance. <number> may be negative, so in your case, setting looseness=-1 for one of the paragraphs does the trick:



            documentclass{article}
            usepackage{lipsum}
            begin{document}
            looseness=-1 % make the next paragraph one line shorter than usual
            lipsum[1-5]

            lipsum[6][1-2]
            end{document}


            According to the TeXbook, looseness is reset to zero at the same time as hangindent, hangafter, and parshape are reset to their normal values, which is




            at the end of every paragraph, and (by local definitions) whenever it
            enters internal vertical mode.




            (TeXbook p. 103)



            Therefore, the looseness=-1 in the above example affects only the first of the five paragraphs produced by lipsum[1-5]. There is no need to do this assignment in a group.



            If I remember correctly, the TeXbook also mentions a trick to spread some looseness among several paragraphs. I could probably find it if you're interested.



            As suggested in Skillmon's comment, another way would be to play with penalties, in particular with widowpenalty (to avoid page breaking before the last line of a paragraph) and linepenalty (to make TeX's line breaking algorithm more reluctant to add lines to a paragraph: this penalty defines the “base cost” of each line).






            share|improve this answer






























              2














              You can use TeX's looseness parameter. If you say looseness=<number> for a paragraph, TeX will try to make it <number> lines longer than what would have been done otherwise, without exceeding the current tolerance. <number> may be negative, so in your case, setting looseness=-1 for one of the paragraphs does the trick:



              documentclass{article}
              usepackage{lipsum}
              begin{document}
              looseness=-1 % make the next paragraph one line shorter than usual
              lipsum[1-5]

              lipsum[6][1-2]
              end{document}


              According to the TeXbook, looseness is reset to zero at the same time as hangindent, hangafter, and parshape are reset to their normal values, which is




              at the end of every paragraph, and (by local definitions) whenever it
              enters internal vertical mode.




              (TeXbook p. 103)



              Therefore, the looseness=-1 in the above example affects only the first of the five paragraphs produced by lipsum[1-5]. There is no need to do this assignment in a group.



              If I remember correctly, the TeXbook also mentions a trick to spread some looseness among several paragraphs. I could probably find it if you're interested.



              As suggested in Skillmon's comment, another way would be to play with penalties, in particular with widowpenalty (to avoid page breaking before the last line of a paragraph) and linepenalty (to make TeX's line breaking algorithm more reluctant to add lines to a paragraph: this penalty defines the “base cost” of each line).






              share|improve this answer




























                2












                2








                2







                You can use TeX's looseness parameter. If you say looseness=<number> for a paragraph, TeX will try to make it <number> lines longer than what would have been done otherwise, without exceeding the current tolerance. <number> may be negative, so in your case, setting looseness=-1 for one of the paragraphs does the trick:



                documentclass{article}
                usepackage{lipsum}
                begin{document}
                looseness=-1 % make the next paragraph one line shorter than usual
                lipsum[1-5]

                lipsum[6][1-2]
                end{document}


                According to the TeXbook, looseness is reset to zero at the same time as hangindent, hangafter, and parshape are reset to their normal values, which is




                at the end of every paragraph, and (by local definitions) whenever it
                enters internal vertical mode.




                (TeXbook p. 103)



                Therefore, the looseness=-1 in the above example affects only the first of the five paragraphs produced by lipsum[1-5]. There is no need to do this assignment in a group.



                If I remember correctly, the TeXbook also mentions a trick to spread some looseness among several paragraphs. I could probably find it if you're interested.



                As suggested in Skillmon's comment, another way would be to play with penalties, in particular with widowpenalty (to avoid page breaking before the last line of a paragraph) and linepenalty (to make TeX's line breaking algorithm more reluctant to add lines to a paragraph: this penalty defines the “base cost” of each line).






                share|improve this answer















                You can use TeX's looseness parameter. If you say looseness=<number> for a paragraph, TeX will try to make it <number> lines longer than what would have been done otherwise, without exceeding the current tolerance. <number> may be negative, so in your case, setting looseness=-1 for one of the paragraphs does the trick:



                documentclass{article}
                usepackage{lipsum}
                begin{document}
                looseness=-1 % make the next paragraph one line shorter than usual
                lipsum[1-5]

                lipsum[6][1-2]
                end{document}


                According to the TeXbook, looseness is reset to zero at the same time as hangindent, hangafter, and parshape are reset to their normal values, which is




                at the end of every paragraph, and (by local definitions) whenever it
                enters internal vertical mode.




                (TeXbook p. 103)



                Therefore, the looseness=-1 in the above example affects only the first of the five paragraphs produced by lipsum[1-5]. There is no need to do this assignment in a group.



                If I remember correctly, the TeXbook also mentions a trick to spread some looseness among several paragraphs. I could probably find it if you're interested.



                As suggested in Skillmon's comment, another way would be to play with penalties, in particular with widowpenalty (to avoid page breaking before the last line of a paragraph) and linepenalty (to make TeX's line breaking algorithm more reluctant to add lines to a paragraph: this penalty defines the “base cost” of each line).







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 7 hours ago

























                answered 8 hours ago









                frougonfrougon

                756611




                756611















                    Popular posts from this blog

                    Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

                    Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

                    How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...