Avoid page break between paragraphsAdd customized text at an optional page-breakfixed distance and no page...

Is a new Boolean field better than a null reference when a value can be meaningfully absent?

Cookies - Should the toggles be on?

Has any human ever had the choice to leave Earth permanently?

Salsa20 Implementation: Sum of 2 Words with Carries Suppressed

Dilemma of explaining to interviewer that he is the reason for declining second interview

General past possibility with 'could'

Is it possible to grant users sftp access without shell access? If yes, how is it implemented?

How much mayhem could I cause as a sentient fish?

How do I append a character to the end of every line in an Excel cell?

Why does photorec keep finding files after I have filled the disk free space as root?

If I delete my router's history can my ISP still provide it to my parents?

Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?

In Linux what happens if 1000 files in a directory are moved to another location while another 300 files were added to the source directory?

A Missing Symbol for This Logo

What is the purpose of easy combat scenarios that don't need resource expenditure?

Can we harness potential energy?

How to deal with possible delayed baggage?

New package vs new version?

Why would space fleets be aligned?

How to make ice magic work from a scientific point of view?

Move fast ...... Or you will lose

When do I have to declare that I want to twin my spell?

How do you voice extended chords?

How does Leonard in "Memento" remember reading and writing?



Avoid page break between paragraphs


Add customized text at an optional page-breakfixed distance and no page break between linesHow to prevent a page break between paragraphsPage break after maketitleTwo maketitles in one pageConTeXt: Prevent page break between heading and imagePreventing page break at specific locationPage break between text and tablePrevent Page Break between glossary heading and first entryAvoid that figures are put in between a lstlisting that got split by a page break













4















Consider this texample



documentclass{report}
begin{document}
Some text

medskip
textbf{Mini title}
medskip

nopagebreak
Some more text
end{document}


How can I avoid a page break between "Mini title" and "Some more text". I am exploring nopagebreak to this end but to no avail?










share|improve this question


















  • 3





    why are you using textbf font change not a propper heading such as section*{mini title} ? latex never allows a page break after section heads.

    – David Carlisle
    2 hours ago


















4















Consider this texample



documentclass{report}
begin{document}
Some text

medskip
textbf{Mini title}
medskip

nopagebreak
Some more text
end{document}


How can I avoid a page break between "Mini title" and "Some more text". I am exploring nopagebreak to this end but to no avail?










share|improve this question


















  • 3





    why are you using textbf font change not a propper heading such as section*{mini title} ? latex never allows a page break after section heads.

    – David Carlisle
    2 hours ago
















4












4








4








Consider this texample



documentclass{report}
begin{document}
Some text

medskip
textbf{Mini title}
medskip

nopagebreak
Some more text
end{document}


How can I avoid a page break between "Mini title" and "Some more text". I am exploring nopagebreak to this end but to no avail?










share|improve this question














Consider this texample



documentclass{report}
begin{document}
Some text

medskip
textbf{Mini title}
medskip

nopagebreak
Some more text
end{document}


How can I avoid a page break between "Mini title" and "Some more text". I am exploring nopagebreak to this end but to no avail?







page-breaking






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 4 hours ago









ViestursViesturs

1,79631124




1,79631124








  • 3





    why are you using textbf font change not a propper heading such as section*{mini title} ? latex never allows a page break after section heads.

    – David Carlisle
    2 hours ago
















  • 3





    why are you using textbf font change not a propper heading such as section*{mini title} ? latex never allows a page break after section heads.

    – David Carlisle
    2 hours ago










3




3





why are you using textbf font change not a propper heading such as section*{mini title} ? latex never allows a page break after section heads.

– David Carlisle
2 hours ago







why are you using textbf font change not a propper heading such as section*{mini title} ? latex never allows a page break after section heads.

– David Carlisle
2 hours ago












3 Answers
3






active

oldest

votes


















3














I copied the medbreak command from LaTeX and made a mednobreak. It does a nopagebreak and a medskip. It will attach the first line of the following paragraph to the textbf{Mini title}. Comment the line marked to see the effect.



documentclass{report}
usepackage{lipsum}
defmednobreak{parifdimlastskip<medskipamount
removelastskipnopagebreakmedskipfi}
begin{document}
lipsum[1-4]
lipsum[2]

another line % comment to see difference

medskip
textbf{Mini title}
mednobreak
lipsum[1]
end{document}





share|improve this answer































    3














    I suggest you load the needspace package and issue the directive



    Needspace*{3baselineskip}


    immediately before the first medskip directive.





    A full MWE (minimum working example):



    documentclass{report}
    usepackage{needspace}
    begin{document}
    dots

    Some text

    Needspace*{3baselineskip}
    medskip
    textbf{Mini title}
    medskip

    Some more text
    end{document}





    share|improve this answer































      2














      Avoid using explicit font change commands.



      if you use a section heading command the markup is more flexible and LaTeX automatically takes care of not allowing a page break after the heading



      documentclass{report}
      begin{document}
      Some text

      vspace{40baselineskip}% heading and text stay on this page
      %vspace{41baselineskip}% heading and text go to next page

      Some text

      subsection*{Mini title}

      Some more text
      end{document}





      share|improve this answer























        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "85"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: false,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: null,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476925%2favoid-page-break-between-paragraphs%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        3














        I copied the medbreak command from LaTeX and made a mednobreak. It does a nopagebreak and a medskip. It will attach the first line of the following paragraph to the textbf{Mini title}. Comment the line marked to see the effect.



        documentclass{report}
        usepackage{lipsum}
        defmednobreak{parifdimlastskip<medskipamount
        removelastskipnopagebreakmedskipfi}
        begin{document}
        lipsum[1-4]
        lipsum[2]

        another line % comment to see difference

        medskip
        textbf{Mini title}
        mednobreak
        lipsum[1]
        end{document}





        share|improve this answer




























          3














          I copied the medbreak command from LaTeX and made a mednobreak. It does a nopagebreak and a medskip. It will attach the first line of the following paragraph to the textbf{Mini title}. Comment the line marked to see the effect.



          documentclass{report}
          usepackage{lipsum}
          defmednobreak{parifdimlastskip<medskipamount
          removelastskipnopagebreakmedskipfi}
          begin{document}
          lipsum[1-4]
          lipsum[2]

          another line % comment to see difference

          medskip
          textbf{Mini title}
          mednobreak
          lipsum[1]
          end{document}





          share|improve this answer


























            3












            3








            3







            I copied the medbreak command from LaTeX and made a mednobreak. It does a nopagebreak and a medskip. It will attach the first line of the following paragraph to the textbf{Mini title}. Comment the line marked to see the effect.



            documentclass{report}
            usepackage{lipsum}
            defmednobreak{parifdimlastskip<medskipamount
            removelastskipnopagebreakmedskipfi}
            begin{document}
            lipsum[1-4]
            lipsum[2]

            another line % comment to see difference

            medskip
            textbf{Mini title}
            mednobreak
            lipsum[1]
            end{document}





            share|improve this answer













            I copied the medbreak command from LaTeX and made a mednobreak. It does a nopagebreak and a medskip. It will attach the first line of the following paragraph to the textbf{Mini title}. Comment the line marked to see the effect.



            documentclass{report}
            usepackage{lipsum}
            defmednobreak{parifdimlastskip<medskipamount
            removelastskipnopagebreakmedskipfi}
            begin{document}
            lipsum[1-4]
            lipsum[2]

            another line % comment to see difference

            medskip
            textbf{Mini title}
            mednobreak
            lipsum[1]
            end{document}






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 4 hours ago









            Phelype OleinikPhelype Oleinik

            23.6k54586




            23.6k54586























                3














                I suggest you load the needspace package and issue the directive



                Needspace*{3baselineskip}


                immediately before the first medskip directive.





                A full MWE (minimum working example):



                documentclass{report}
                usepackage{needspace}
                begin{document}
                dots

                Some text

                Needspace*{3baselineskip}
                medskip
                textbf{Mini title}
                medskip

                Some more text
                end{document}





                share|improve this answer




























                  3














                  I suggest you load the needspace package and issue the directive



                  Needspace*{3baselineskip}


                  immediately before the first medskip directive.





                  A full MWE (minimum working example):



                  documentclass{report}
                  usepackage{needspace}
                  begin{document}
                  dots

                  Some text

                  Needspace*{3baselineskip}
                  medskip
                  textbf{Mini title}
                  medskip

                  Some more text
                  end{document}





                  share|improve this answer


























                    3












                    3








                    3







                    I suggest you load the needspace package and issue the directive



                    Needspace*{3baselineskip}


                    immediately before the first medskip directive.





                    A full MWE (minimum working example):



                    documentclass{report}
                    usepackage{needspace}
                    begin{document}
                    dots

                    Some text

                    Needspace*{3baselineskip}
                    medskip
                    textbf{Mini title}
                    medskip

                    Some more text
                    end{document}





                    share|improve this answer













                    I suggest you load the needspace package and issue the directive



                    Needspace*{3baselineskip}


                    immediately before the first medskip directive.





                    A full MWE (minimum working example):



                    documentclass{report}
                    usepackage{needspace}
                    begin{document}
                    dots

                    Some text

                    Needspace*{3baselineskip}
                    medskip
                    textbf{Mini title}
                    medskip

                    Some more text
                    end{document}






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered 3 hours ago









                    MicoMico

                    280k31384772




                    280k31384772























                        2














                        Avoid using explicit font change commands.



                        if you use a section heading command the markup is more flexible and LaTeX automatically takes care of not allowing a page break after the heading



                        documentclass{report}
                        begin{document}
                        Some text

                        vspace{40baselineskip}% heading and text stay on this page
                        %vspace{41baselineskip}% heading and text go to next page

                        Some text

                        subsection*{Mini title}

                        Some more text
                        end{document}





                        share|improve this answer




























                          2














                          Avoid using explicit font change commands.



                          if you use a section heading command the markup is more flexible and LaTeX automatically takes care of not allowing a page break after the heading



                          documentclass{report}
                          begin{document}
                          Some text

                          vspace{40baselineskip}% heading and text stay on this page
                          %vspace{41baselineskip}% heading and text go to next page

                          Some text

                          subsection*{Mini title}

                          Some more text
                          end{document}





                          share|improve this answer


























                            2












                            2








                            2







                            Avoid using explicit font change commands.



                            if you use a section heading command the markup is more flexible and LaTeX automatically takes care of not allowing a page break after the heading



                            documentclass{report}
                            begin{document}
                            Some text

                            vspace{40baselineskip}% heading and text stay on this page
                            %vspace{41baselineskip}% heading and text go to next page

                            Some text

                            subsection*{Mini title}

                            Some more text
                            end{document}





                            share|improve this answer













                            Avoid using explicit font change commands.



                            if you use a section heading command the markup is more flexible and LaTeX automatically takes care of not allowing a page break after the heading



                            documentclass{report}
                            begin{document}
                            Some text

                            vspace{40baselineskip}% heading and text stay on this page
                            %vspace{41baselineskip}% heading and text go to next page

                            Some text

                            subsection*{Mini title}

                            Some more text
                            end{document}






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered 2 hours ago









                            David CarlisleDavid Carlisle

                            492k4111371885




                            492k4111371885






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476925%2favoid-page-break-between-paragraphs%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Benedict Cumberbatch Contingut Inicis Debut professional Premis Filmografia bàsica Premis i...

                                Monticle de plataforma Contingut Est de Nord Amèrica Interpretacions Altres cultures Vegeu...

                                Escacs Janus Enllaços externs Menú de navegacióEscacs JanusJanusschachBrainKing.comChessV