diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-baselinepar.html')
-rw-r--r-- | Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-baselinepar.html | 113 |
1 files changed, 74 insertions, 39 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-baselinepar.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-baselinepar.html index 015e120f550..8b17ba3c0f6 100644 --- a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-baselinepar.html +++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-baselinepar.html @@ -2,10 +2,11 @@ <title>UK TeX FAQ -- question label baselinepar</title> </head><body> <h3>Only one <code>\</code><code>baselineskip</code> per paragraph</h3> -<p/>The <code>\</code><code>baselineskip</code> is not (as one might hope) a property of a -line, but of a paragraph. As a result, in a <code>10pt</code> (nominal) -document (with a default <code>\</code><code>baselineskip</code> of <code>12pt</code>), a -single character with a larger size, as: +<p/>The <code>\</code><code>baselineskip</code>, which determines the space between lines, is +not (as one might hope) a property of a line, but of a paragraph. As +a result, in a <code>10pt</code> (nominal) document (with a default +<code>\</code><code>baselineskip</code> of <code>12pt</code>), a single character with a larger +size, as: <blockquote> <pre> {\Huge A} @@ -15,7 +16,33 @@ will be squashed into the paragraph: TeX will make sure it doesn’t scrape up against the line above, but won’t give it “room to breathe”, as it does the text at standard size; that is, its size (<code>24.88pt</code>) is taken account of, but its <code>\</code><code>baselineskip</code> -(<code>30pt</code>) isn’t. Similarly +(<code>30pt</code>) isn’t. This problem may be solved by a <em>strut</em>: +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 +<code>\</code><code>strut</code> to provide the equivalent of a metal-type strut for the +size chosen. So for the example above, we would type +<blockquote> +<pre> +Paragraph text ... + {\Huge A\strut} + ... paragraph continues ... +</pre> +</blockquote><p> +This technique <em>only</em> works for such very short intrusions; if +you need several lines, you should convert your intrusion into an +<code>quote</code> environment, since it’s not possible to provide a +<code>\</code><code>strut</code> command for every line of the intrusion, in a sensible +way, so proceed by: +<blockquote> +<pre> +\begin{quote} + \Huge A LENGTHY TEXT ... + SHOUTING AT THE READER! +\end{quote} +</pre> +</blockquote><p> +<p/>The contrary case: <blockquote> <pre> Paragraph text ... @@ -24,56 +51,64 @@ Paragraph text ... ... paragraph continues ... </pre> </blockquote><p> -will look silly, since the <code>8pt</code> interjection will end up set -on the <code>12pt</code> <code>\</code><code>baselineskip</code> of the paragraph, rather than -its preferred <code>8.5pt</code>. Finally, something like +will look wrong, since the <code>8pt</code> interjection will +end up set on the <code>12pt</code> <code>\</code><code>baselineskip</code> of the paragraph, +rather than its preferred <code>8.5pt</code>. A <code>\</code><code>strut</code> here is no +help: there is no such thing as a “negative strut”, that draws lines +together, so once more, one falls back on the <code>quote</code> to +separate the interjection: +<blockquote> +<pre> +Paragraph text ... +\begin{quote} + \footnotesize Extended interjection ... + ... into the paragraph. +\end{quote} +... paragraph continues ... +</pre> +</blockquote><p> +<p/>The same effect is at work when we have something like: <blockquote> <pre> Paragraph text ... ... paragraph body ends. -{\footnotesize Short comment on paragraph.} +{\footnotesize Comment on the paragraph.} Next paragraph starts... </pre> </blockquote><p> -will set the body of the first paragraph on the constricted -<code>\</code><code>baselineskip</code> of the <code>\</code><code>footnotesize</code> comment. -<p/>So, how to deal with these problems? The oversized (short) section is -typically corrected by a <em>strut</em>: this word 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 <code>\</code><code>strut</code> to provide the -equivalent of a metal-type strut for the size chosen. So for the -example above, we would type +which will set the body of the first paragraph on the constricted +<code>\</code><code>baselineskip</code> of the <code>\</code><code>footnotesize</code> comment. Solve this +problem by ending the initial paragraph before starting the comment: <blockquote> <pre> Paragraph text ... - {\Huge A\strut} - ... paragraph continues ... + ... paragraph body ends. +\par\noindent +{\footnotesize Comment on the paragraph.} + +Next paragraph starts... </pre> </blockquote><p> -However, more extended insertions (whether of larger or smaller text) -are always going to cause problems; while you can strut larger text, -ensuring that you strut every line will be tiresome, and there’s no -such thing as a “negative strut” that pulls the lines together for -smaller text. -<p/>The only satisfactory way to deal with an extended insertion at a -different size is to set it off as a separate paragraph. A -satisfactory route to achieving this is the <code>quote</code> -environment, which sets its text modestly inset from the enclosing -paragraph: +(We suggest <code>\</code><code>noindent</code> to make the comment look as if it is part +of the paragraph it discusses; omit <code>\</code><code>noindent</code> if that is inappropriate.) +<p/>A variation of the previous issue arises from a paragraph whose size +is different from those around it: <blockquote> <pre> -Paragraph text ... -\begin{quote} - \footnotesize This is an inset account - of something relevant to the enclosing - paragraph... -\end{quote} -... paragraph continues ... +{\Large (Extended) IMPORTANT DETAILS ...} + +Main body of text... +</pre> +</blockquote><p> +Again, the problem is solved by inserting a paragraph marker in +the text with a different size: +<blockquote> +<pre> +{\Large (Extended) IMPORTANT DETAILS ...\par} + +Main body of text... </pre> </blockquote><p> -Such quote-bracketing also deals with the problem of a trailing -comment on the paragraph. <p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=baselinepar">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=baselinepar</a> </body> |