Avoid page break between paragraphsplace symbol or some command on page break within lstlistingWhy can't I...

Why dont electromagnetic waves interact with each other?

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

Which models of the Boeing 737 are still in production?

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

What is the offset in a seaplane's hull?

the place where lots of roads meet

Is it legal for company to use my work email to pretend I still work there?

Do VLANs within a subnet need to have their own subnet for router on a stick?

What does CI-V stand for?

How is it possible to have an ability score that is less than 3?

What would happen to a modern skyscraper if it rains micro blackholes?

Can I make popcorn with any corn?

To string or not to string

Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

If I cast Expeditious Retreat, can I Dash as a bonus action on the same turn?

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

Why doesn't H₄O²⁺ exist?

Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?

What do the dots in this tr command do: tr .............A-Z A-ZA-Z <<< "JVPQBOV" (with 13 dots)

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

What typically incentivizes a professor to change jobs to a lower ranking university?

Can I ask the recruiters in my resume to put the reason why I am rejected?

Did Shadowfax go to Valinor?



Avoid page break between paragraphs


place symbol or some command on page break within lstlistingWhy can't I prevent page break?How to prevent page break between section heading and longtabu table?How to prevent a page break before an itemize or enumerate list? (continued)Why do I get an extra white page before my TikZ picture?When does nopagebreak work?Page breaking in a glossing example environmentPage break: enumeration with headlineSpaces and page break inside a minted listingAvoid page break for multicols













0















This script:



documentclass{report}
usepackage{lipsum}
begin{document}
lipsum[1-5]
Examples:
\nopagebreak
example 1\
example 2\
example 3
end{document}


unfortunately introduces an awkward page break between "Examples:" and "example 1":



enter image description here



I attempt to tackle the problem by using nopagebreak however, my solution doesn't work. How to fix?










share|improve this question

























  • the nopagebreak in that position is preventing a break between example1 and example2, but you should not need such a command in-document.

    – David Carlisle
    10 hours ago
















0















This script:



documentclass{report}
usepackage{lipsum}
begin{document}
lipsum[1-5]
Examples:
\nopagebreak
example 1\
example 2\
example 3
end{document}


unfortunately introduces an awkward page break between "Examples:" and "example 1":



enter image description here



I attempt to tackle the problem by using nopagebreak however, my solution doesn't work. How to fix?










share|improve this question

























  • the nopagebreak in that position is preventing a break between example1 and example2, but you should not need such a command in-document.

    – David Carlisle
    10 hours ago














0












0








0








This script:



documentclass{report}
usepackage{lipsum}
begin{document}
lipsum[1-5]
Examples:
\nopagebreak
example 1\
example 2\
example 3
end{document}


unfortunately introduces an awkward page break between "Examples:" and "example 1":



enter image description here



I attempt to tackle the problem by using nopagebreak however, my solution doesn't work. How to fix?










share|improve this question
















This script:



documentclass{report}
usepackage{lipsum}
begin{document}
lipsum[1-5]
Examples:
\nopagebreak
example 1\
example 2\
example 3
end{document}


unfortunately introduces an awkward page break between "Examples:" and "example 1":



enter image description here



I attempt to tackle the problem by using nopagebreak however, my solution doesn't work. How to fix?







page-breaking






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 11 hours ago









albert

640614




640614










asked 11 hours ago









ViestursViesturs

1,94041227




1,94041227













  • the nopagebreak in that position is preventing a break between example1 and example2, but you should not need such a command in-document.

    – David Carlisle
    10 hours ago



















  • the nopagebreak in that position is preventing a break between example1 and example2, but you should not need such a command in-document.

    – David Carlisle
    10 hours ago

















the nopagebreak in that position is preventing a break between example1 and example2, but you should not need such a command in-document.

– David Carlisle
10 hours ago





the nopagebreak in that position is preventing a break between example1 and example2, but you should not need such a command in-document.

– David Carlisle
10 hours ago










1 Answer
1






active

oldest

votes


















3














That is not "between paragraphs" that is a single paragraph (\ never ends a paragraph).



Do not use \ and use a section heading like section*{Examples} latex does not allow page breaks after a section heading






share|improve this answer
























  • section does not seem right here as it has a specific formatting and goes to TOC. Can I use par instead of ``?

    – Viesturs
    11 hours ago






  • 3





    section* doesn't go in the toc by default and has user or class defined formatting so you can make it use whatever format you want. You almost never need to use par in a document as it is a simpler (and equivalent) to simply leave a blank line.

    – David Carlisle
    11 hours ago











  • section* does not go to the ToC.

    – Peter Wilson
    11 hours ago












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%2f483559%2favoid-page-break-between-paragraphs%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














That is not "between paragraphs" that is a single paragraph (\ never ends a paragraph).



Do not use \ and use a section heading like section*{Examples} latex does not allow page breaks after a section heading






share|improve this answer
























  • section does not seem right here as it has a specific formatting and goes to TOC. Can I use par instead of ``?

    – Viesturs
    11 hours ago






  • 3





    section* doesn't go in the toc by default and has user or class defined formatting so you can make it use whatever format you want. You almost never need to use par in a document as it is a simpler (and equivalent) to simply leave a blank line.

    – David Carlisle
    11 hours ago











  • section* does not go to the ToC.

    – Peter Wilson
    11 hours ago
















3














That is not "between paragraphs" that is a single paragraph (\ never ends a paragraph).



Do not use \ and use a section heading like section*{Examples} latex does not allow page breaks after a section heading






share|improve this answer
























  • section does not seem right here as it has a specific formatting and goes to TOC. Can I use par instead of ``?

    – Viesturs
    11 hours ago






  • 3





    section* doesn't go in the toc by default and has user or class defined formatting so you can make it use whatever format you want. You almost never need to use par in a document as it is a simpler (and equivalent) to simply leave a blank line.

    – David Carlisle
    11 hours ago











  • section* does not go to the ToC.

    – Peter Wilson
    11 hours ago














3












3








3







That is not "between paragraphs" that is a single paragraph (\ never ends a paragraph).



Do not use \ and use a section heading like section*{Examples} latex does not allow page breaks after a section heading






share|improve this answer













That is not "between paragraphs" that is a single paragraph (\ never ends a paragraph).



Do not use \ and use a section heading like section*{Examples} latex does not allow page breaks after a section heading







share|improve this answer












share|improve this answer



share|improve this answer










answered 11 hours ago









David CarlisleDavid Carlisle

498k4111441892




498k4111441892













  • section does not seem right here as it has a specific formatting and goes to TOC. Can I use par instead of ``?

    – Viesturs
    11 hours ago






  • 3





    section* doesn't go in the toc by default and has user or class defined formatting so you can make it use whatever format you want. You almost never need to use par in a document as it is a simpler (and equivalent) to simply leave a blank line.

    – David Carlisle
    11 hours ago











  • section* does not go to the ToC.

    – Peter Wilson
    11 hours ago



















  • section does not seem right here as it has a specific formatting and goes to TOC. Can I use par instead of ``?

    – Viesturs
    11 hours ago






  • 3





    section* doesn't go in the toc by default and has user or class defined formatting so you can make it use whatever format you want. You almost never need to use par in a document as it is a simpler (and equivalent) to simply leave a blank line.

    – David Carlisle
    11 hours ago











  • section* does not go to the ToC.

    – Peter Wilson
    11 hours ago

















section does not seem right here as it has a specific formatting and goes to TOC. Can I use par instead of ``?

– Viesturs
11 hours ago





section does not seem right here as it has a specific formatting and goes to TOC. Can I use par instead of ``?

– Viesturs
11 hours ago




3




3





section* doesn't go in the toc by default and has user or class defined formatting so you can make it use whatever format you want. You almost never need to use par in a document as it is a simpler (and equivalent) to simply leave a blank line.

– David Carlisle
11 hours ago





section* doesn't go in the toc by default and has user or class defined formatting so you can make it use whatever format you want. You almost never need to use par in a document as it is a simpler (and equivalent) to simply leave a blank line.

– David Carlisle
11 hours ago













section* does not go to the ToC.

– Peter Wilson
11 hours ago





section* does not go to the ToC.

– Peter Wilson
11 hours ago


















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%2f483559%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

Can't compile dgruyter and caption packagesLaTeX templates/packages for writing a patent specificationLatex...

Schneeberg (Smreczany) Bibliografia | Menu...

Hans Bellmer Spis treści Życiorys | Upamiętnienie | Przypisy | Bibliografia | Linki zewnętrzne |...