| 1 | <refentry id="man.justify">
|
|---|
| 2 | <refmeta>
|
|---|
| 3 | <refentrytitle>man.justify</refentrytitle>
|
|---|
| 4 | <refmiscinfo role="type">boolean</refmiscinfo>
|
|---|
| 5 | </refmeta>
|
|---|
| 6 | <refnamediv>
|
|---|
| 7 | <refname>man.justify</refname>
|
|---|
| 8 | <refpurpose>Justify text to both right and left margins?</refpurpose>
|
|---|
| 9 | </refnamediv>
|
|---|
| 10 |
|
|---|
| 11 | <refsynopsisdiv>
|
|---|
| 12 | <src:fragment id='man.justify.frag'>
|
|---|
| 13 | <xsl:param name="man.justify">0</xsl:param></src:fragment>
|
|---|
| 14 | </refsynopsisdiv>
|
|---|
| 15 |
|
|---|
| 16 | <refsect1><title>Description</title>
|
|---|
| 17 |
|
|---|
| 18 | <para>If non-zero, text is justified to both the right and left
|
|---|
| 19 | margins (or, in roff terminology, "adjusted and filled" to both the
|
|---|
| 20 | right and left margins). If zero (the default), text is adjusted to
|
|---|
| 21 | the left margin only -- producing what is traditionally called
|
|---|
| 22 | "ragged-right" text.</para>
|
|---|
| 23 |
|
|---|
| 24 | <note>
|
|---|
| 25 | <para>The default value for this parameter is zero because justified
|
|---|
| 26 | text looks good only when it is also hyphenated. Without hyphenation,
|
|---|
| 27 | excessive amounts of space often end up getting between words, in
|
|---|
| 28 | order to "pad" lines out to align on the right margin.</para>
|
|---|
| 29 |
|
|---|
| 30 | <para>The problem is that groff is not particularly smart about how it
|
|---|
| 31 | does hyphenation; it can end up hyphenating a lot of things that you
|
|---|
| 32 | don't want hyphenated. So, disabling both justification and
|
|---|
| 33 | hyphenation ensures that hyphens won't get inserted where you don't
|
|---|
| 34 | want to them, and you don't end up with lines containing excessive
|
|---|
| 35 | amounts of space between words.</para>
|
|---|
| 36 |
|
|---|
| 37 | <para>However, if do you decide to set a non-zero value for the
|
|---|
| 38 | <parameter>man.justify</parameter> parameter (to enable
|
|---|
| 39 | justification), then you should probably also set a non-zero value for
|
|---|
| 40 | <parameter>man.hyphenate</parameter> (to enable hyphenation).</para>
|
|---|
| 41 |
|
|---|
| 42 | <para>Yes, these default settings run counter to how most existing man
|
|---|
| 43 | pages are formatted. But there are some notable exceptions, such as
|
|---|
| 44 | the <literal>perl</literal> man pages.</para>
|
|---|
| 45 | </note>
|
|---|
| 46 | </refsect1>
|
|---|
| 47 | </refentry>
|
|---|