Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| composition:texte:paragraphes:un_seul_baselineskip_par_paragraphe [2018/12/03 23:54] – jejust | 2_composition:texte:paragraphes:un_seul_baselineskip_par_paragraphe [2021/02/01 21:45] (Version actuelle) – Traduction de l'article anglais (en retranchant une partie inutile). yannick.tanguy | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== | + | ====== |
| + | La variable '' | ||
| - | The '' | + | <WRAP column 60ex> |
| - | not (as one might hope) a property of a line, but of a paragraph. | + | |
| - | a result, in a '' | + | |
| - | '' | + | |
| - | size, as: | + | |
| <code latex> | <code latex> | ||
| - | {\Huge | + | Voici ce qu'il peut arriver dès lors qu'un |
| + | typographe maladroit souhaite évoquer | ||
| + | l' | ||
| </ | </ | ||
| - | will be squashed into the paragraph: TeX will make sure it doesn' | + | </WRAP> |
| - | scrape up against the line above, but won't give it "room to | + | |
| - | breathe", | + | |
| - | ('' | + | |
| - | ('' | + | |
| - | the name comes from movable metal typography, and refers to a spacer | + | |
| - | that held the boxes (that contained the metal character shapes) apart. | + | |
| - | Every time you change font size, LaTeX redefines the command | + | |
| - | '' | + | |
| - | size chosen. | + | |
| - | <code latex> | + | <WRAP column 60ex> |
| - | Paragraph text ... | + | < |
| - | | + | \documentclass{article} |
| - | ... paragraph continues ... | + | \usepackage[width=9cm]{geometry} |
| - | </ | + | \pagestyle{empty} |
| - | This technique //only// works for such very short intrusions; if | + | \begin{document} |
| - | you need several lines, you should convert your intrusion into a | + | Voici ce qu'il peut arriver dès lors qu'un |
| - | '' | + | typographe maladroit souhaite évoquer |
| - | ''\strut'' | + | l'histoire avec un grand {\Huge H} ! |
| - | way, so proceed by: | + | \end{document} |
| + | </ | ||
| + | </ | ||
| + | <WRAP clear /> | ||
| - | <code latex> | + | ===== Avec la commande |
| - | \begin{quote} | + | |
| - | \Huge A LENGTHY TEXT ... | + | |
| - | SHOUTING AT THE READER! | + | |
| - | \end{quote} | + | |
| - | </ | + | |
| - | The contrary case: | + | < |
| + | <WRAP column 60ex> | ||
| <code latex> | <code latex> | ||
| - | Paragraph text ... | + | Voici ce qu'il peut arriver dès lors qu' |
| - | {\footnotesize Extended interjection ... | + | typographe maladroit souhaite évoquer |
| - | ... into the paragraph.} | + | l' |
| - | ... paragraph continues ... | + | |
| </ | </ | ||
| - | will look wrong, since the '' | + | </ |
| - | end up set on the '' | + | |
| - | rather than its preferred '' | + | |
| - | help: there is no such thing as a " | + | |
| - | together, so once more, one falls back on the '' | + | |
| - | separate the interjection: | + | |
| + | <WRAP column 60ex> | ||
| + | < | ||
| + | \documentclass{article} | ||
| + | \usepackage[width=9cm]{geometry} | ||
| + | \pagestyle{empty} | ||
| + | \begin{document} | ||
| + | Voici ce qu'il peut arriver dès lors qu' | ||
| + | typographe maladroit souhaite évoquer | ||
| + | l' | ||
| + | \end{document} | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP clear /> | ||
| + | |||
| + | ===== Avec l' | ||
| + | |||
| + | Dès lors que votre texte de taille plus importante tient sur plusieurs lignes, les solutions passent plutôt par l' | ||
| + | |||
| + | <WRAP column 60ex> | ||
| <code latex> | <code latex> | ||
| - | Paragraph text ... | + | Voici ce qu'il peut arriver dès lors qu'un |
| - | \begin{quote} | + | typographe maladroit souhaite |
| - | \footnotesize Extended interjection ... | + | \begin{quote} |
| - | ... into the paragraph. | + | \Huge évoquer l' |
| \end{quote} | \end{quote} | ||
| - | ... paragraph continues ... | ||
| </ | </ | ||
| + | </ | ||
| - | The same effect is at work when we have something like: | + | <WRAP column 60ex> |
| + | < | ||
| + | \documentclass{article} | ||
| + | \usepackage[width=9cm]{geometry} | ||
| + | \pagestyle{empty} | ||
| + | \begin{document} | ||
| + | Voici ce qu'il peut arriver dès lors qu'un | ||
| + | typographe maladroit souhaite | ||
| + | \begin{quote} | ||
| + | \Huge évoquer l' | ||
| + | \end{quote} | ||
| + | \end{document} | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP clear /> | ||
| - | <code latex> | + | Le cas où le texte inséré est plus petit que le texte courant n'est pas plus heureux |
| - | Paragraph text ... | + | |
| - | ... paragraph body ends. | + | |
| - | {\footnotesize Comment on the paragraph.} | + | |
| - | + | ||
| - | Next paragraph starts... | + | |
| - | </ | + | |
| - | which will set the body of the first paragraph on the constricted | + | |
| - | '' | + | |
| - | problem by ending the initial paragraph before starting the comment: | + | |
| + | <WRAP column 60ex> | ||
| <code latex> | <code latex> | ||
| - | Paragraph text ... | + | Voici ce qu'il peut arriver dès lors qu' |
| - | ... paragraph body ends. | + | typographe maladroit souhaite évoquer |
| - | \par\nothtml{\noindent} | + | {\footnotesize timidement et sans grandes |
| - | {\footnotesize Comment on the paragraph.} | + | fioritures l' |
| - | + | ||
| - | Next paragraph starts... | + | |
| </ | </ | ||
| - | (We suggest '' | + | </ |
| - | of the paragraph it discusses; omit '' | + | |
| - | A variation of the previous issue arises from a paragraph whose size | + | <WRAP column 60ex> |
| - | is different from those around it: | + | < |
| + | \documentclass{article} | ||
| + | \usepackage[width=9cm]{geometry} | ||
| + | \pagestyle{empty} | ||
| + | \begin{document} | ||
| + | Voici ce qu'il peut arriver dès lors qu'un | ||
| + | typographe maladroit souhaite évoquer | ||
| + | {\footnotesize timidement et sans grandes | ||
| + | fioritures l' | ||
| + | \end{document} | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP clear /> | ||
| - | <code latex> | + | Là, la solution de la commande '' |
| - | {\Large (Extended) IMPORTANT DETAILS | + | |
| - | + | ||
| - | Main body of text... | + | |
| - | </ | + | |
| - | Again, the problem is solved by ending the paragraph in the same group | + | |
| - | as the text with a different size: | + | |
| + | <WRAP column 60ex> | ||
| <code latex> | <code latex> | ||
| - | {\Large (Extended) IMPORTANT DETAILS ...\par} | + | Voici ce qu'il peut arriver dès lors qu'un |
| - | + | typographe maladroit souhaite évoquer | |
| - | Main body of text... | + | \begin{quote} |
| + | \footnotesize timidement et sans grandes | ||
| + | fioritures l' | ||
| + | \end{quote} | ||
| </ | </ | ||
| + | </ | ||
| + | <WRAP column 60ex> | ||
| + | < | ||
| + | \documentclass{article} | ||
| + | \usepackage[width=9cm]{geometry} | ||
| + | \pagestyle{empty} | ||
| + | \begin{document} | ||
| + | Voici ce qu'il peut arriver dès lors qu' | ||
| + | typographe maladroit souhaite évoquer | ||
| + | \begin{quote} | ||
| + | \footnotesize timidement et sans grandes | ||
| + | fioritures l' | ||
| + | \end{quote} | ||
| + | \end{document} | ||
| + | </ | ||
| + | </ | ||
| + | <WRAP clear /> | ||
| ----- | ----- | ||
| Ligne 111: | Ligne 142: | ||
| {{htmlmetatags> | {{htmlmetatags> | ||
| - | metatag-og: | + | metatag-og: |
| metatag-og: | metatag-og: | ||
| }} | }} | ||

