Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

In a latex document I have got a section heading as the last line on a page, followed by the section content on the following page. How do I prevent this page shift between section heading and section content?

share|improve this question

closed as too localized by lockstep, Joseph Wright Jul 7 '12 at 21:21

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

4  
The default settings in LaTeX already make it infinitely bad to break within two lines of a section heading. So if it is doing that then every other option available was also disallowed. Please supply a complete small document that shows the problem. –  David Carlisle Jun 1 '12 at 11:19
3  
You probably can't provide a MWE? I at least couldn't provoke this behaviour with a simple example. Normally it's a sign of TeX panicking because it can't typeset some other stuff properly. Hard to say, really, without seeing your document. Do you redefine any typesetting penalty variables? Do you use microtype to give TeX more knobs to turn in order to save the day? –  Christian Jun 1 '12 at 11:22
    
Using \FloatBarrier might work with package placeins for Floats (Figures, tables). I hope there would something available for Sections also –  texenthusiast Jun 19 '12 at 0:37

Browse other questions tagged or ask your own question.
http://tex.stackexchange.com/questions/58109/how-do-i-prevent-a-section-heading-from-being-the-last-line-on-a-page
tex.stackexchange.com
crawl=CC-MAIN-2015-40
59801
application/http; msgtype=response
sha1:2MDOOXTEF3JMSQKMKXH73S72K2TOWXQI
<urn:uuid:d3ec1782-9423-43da-a1c4-3485534476ee>
2015-10-05T10:19:49Z
104.16.16.128
sha1:ZNC3FVMM6DWXTSMHSGZI6JP3Z6FAMQNJ
<urn:uuid:7a2fa09d-2e12-42d4-b333-3e8889217522>
http://tex.stackexchange.com/questions/58109/how-do-i-prevent-a-section-heading-from-being-the-last-line-on-a-page
length
response
<urn:uuid:1d0761e6-bf7b-4353-97db-642bca13cb38>
robots: classic
hostname: ip-10-137-6-227.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2015-40
operator: CommonCrawl Admin
description: Wide crawl of the web for September 2015
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf