Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
Prochaine révision Les deux révisions suivantes
3_composition:texte:pages:empecher_un_saut_de_page_entre_deux_lignes [2018/05/24 17:11]
joseph.wright
3_composition:texte:pages:empecher_un_saut_de_page_entre_deux_lignes [2018/10/20 21:08]
jejust
Ligne 1: Ligne 1:
 --- ---
-sectionAdjusting the typesetting +titlePreventing page breaks between lines 
-subsectionPage layout +category: formatting 
-permalink: /FAQ-nopagebrk.html +tags: layout 
-date: 2014-06-10+permalink: /FAQ-nopagebrk
 --- ---
- 
-# Preventing page breaks between lines 
  
 One commonly requires that a block of typeset material be kept on the One commonly requires that a block of typeset material be kept on the
Ligne 13: Ligne 11:
 LaTeX provides a `samepage` environment which claims it LaTeX provides a `samepage` environment which claims it
 does this sort of thing for you.  It proceeds by setting infinite does this sort of thing for you.  It proceeds by setting infinite
-penalties for all sorts of page-break situations; but in many+penalties for all sorts of page break situations; but in many
 situations where you want to prevent a page break, situations where you want to prevent a page break,
 `samepage` doesn't help.  If you're trying to keep running `samepage` doesn't help.  If you're trying to keep running
 text together, you need to end the paragraph inside the environment text together, you need to end the paragraph inside the environment
-(see [preserving paragraph parameters](FAQ-paraparam.md)).+(see [preserving paragraph parameters](FAQ-paraparam)).
 Also, if the things you are trying to keep together insert their own Also, if the things you are trying to keep together insert their own
-pagebreak hints, `samepage` has no power over them (though+page break hints, `samepage` has no power over them (though
 list items' attempts — they suggest page breaks between items — list items' attempts — they suggest page breaks between items —
 are subverted by `samepage`).  Naturally, if are subverted by `samepage`).  Naturally, if
Ligne 34: Ligne 32:
 Why do neither of these obvious things work? — Because TeX can't Why do neither of these obvious things work? — Because TeX can't
 really distinguish between infinitely awful things. really distinguish between infinitely awful things.
-`Samepage` will make any possible break point ''infinitely +`Samepage` will make any possible break point 
-bad'' and boxes don't even offer the option of breaks, but if the+"infinitely badand boxes don't even offer the option of breaks, but if the
 alternative is the leave an infinitely bad few centimetres of blank alternative is the leave an infinitely bad few centimetres of blank
 paper at the bottom of the page, TeX will take the line of least paper at the bottom of the page, TeX will take the line of least
Ligne 78: Ligne 76:
 effect is achieved.  The technique can be used in the case of effect is achieved.  The technique can be used in the case of
 sequences of LaTeX-style sections, by incorporating `\filbreak` sequences of LaTeX-style sections, by incorporating `\filbreak`
-into the definition of a command (as in  +into the definition of a command (as in 
-[patching commands](FAQ-patch.md)).  A simple and effective+[patching commands](FAQ-patch)).  A simple and effective
 patch would be: patch would be:
 <!-- {% raw %} --> <!-- {% raw %} -->
Ligne 115: Ligne 113:
 Note that both `\pagebreak` and `\nopagebreak` take an optional Note that both `\pagebreak` and `\nopagebreak` take an optional
 number argument to adjust how the command is to be interpreted.  Thus number argument to adjust how the command is to be interpreted.  Thus
-`\pagebreak[0]`, the command ''suggests'' that a page break +`\pagebreak[0]`, the command "suggeststhat a page break 
-might be worth doing, whereas `\pagebreak[4]` ''demands'' a+might be worth doing, whereas `\pagebreak[4]` "demandsa
 page break.  Similarly `\nopagebreak[0]` makes a suggestion, page break.  Similarly `\nopagebreak[0]` makes a suggestion,
 while `\nopagebreak[4]` is a demand.  In both commands, the while `\nopagebreak[4]` is a demand.  In both commands, the
 default value of the optional argument is 4. default value of the optional argument is 4.
- 
  
3_composition/texte/pages/empecher_un_saut_de_page_entre_deux_lignes.txt · Dernière modification: 2022/09/22 14:19 de dbitouze
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0