summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-ragright.html
blob: 65fd6beff971179d58716f4462a1d62c80ce54b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<head>
<title>UK TeX FAQ -- question label ragright</title>
</head><body>
<h3>Setting text ragged right</h3>
<p/>The trick with typesetting ragged right is to be sure you&#8217;ve told the
TeX engine &#8220;make this paragraph ragged, but never <em>too</em>
ragged&#8221;.  The LaTeX <code>\</code><code>raggedright</code> command (and the
corresponding <code>flushleft</code> environment) has a tendency to
miss the &#8220;never&#8221; part, and will often create ridiculously short
lines, for some minor benefit later in the paragraph.  The
Plain TeX version of the command doesn&#8217;t suffer this failing, but
is rather conservative: it is loath to create too large a gap at the
end of the line, but in some circumstances &#8212; such as where
<a href="FAQ-hyphoff.html">hyphenation is suppressed</a> &#8212; painfully large gaps
may sometimes be required.
<p/>Martin Schr&#246;der&#8217;s <i>ragged2e</i> package offers the best of both
worlds: it provides raggedness which is built on the Plain TeX
model, but which is easily configurable.  It defines easily-remembered
command (e.g., <code>\</code><code>RaggedRight</code>) and environment (e.g.,
<code>FlushLeft</code>) names that are simply capitalised
transformations of the LaTeX kernel originals.  The documentation
discusses the issues and explains the significance of the various
parameters of <i>ragged2e</i>&#8217;s operation.
<dl>
<dt><tt><i>ragged2e.sty</i></tt><dd>Distributed as part of <a href="http://mirror.ctan.org/macros/latex/contrib/ms.zip">macros/latex/contrib/ms</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/ms/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/ragged2e.html">catalogue entry</a>
</dl>
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ragright">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ragright</a>
</body>