<html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>man.justify</title><link rel="stylesheet" type="text/css" href="../reference.css"><meta name="generator" content="DocBook XSL Stylesheets V1.79.2"><link rel="home" href="../index.html" title="DocBook XSL Stylesheets: Reference Documentation"><link rel="up" href="general.html" title="Hyphenation, justification, and breaking"><link rel="prev" href="man.hyphenate.computer.inlines.html" title="man.hyphenate.computer.inlines"><link rel="next" href="man.break.after.slash.html" title="man.break.after.slash"><link rel="copyright" href="copyright.html" title="License"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">man.justify</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="man.hyphenate.computer.inlines.html">Prev</a> </td><th width="60%" align="center">Hyphenation, justification, and breaking</th><td width="20%" align="right"> <a accesskey="n" href="man.break.after.slash.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="man.justify"></a><div class="titlepage"></div><div class="refnamediv"><h2><span class="refentrytitle">man.justify</span></h2><p>man.justify — Justify text to both right and left margins?</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><a name="man.justify.frag"></a><pre class="programlisting"> <xsl:param name="man.justify">0</xsl:param></pre></div><div class="refsection"><a name="d0e24524"></a><h2>Description</h2><p>If non-zero, text is justified to both the right and left margins (or, in roff terminology, "adjusted and filled" to both the right and left margins). If zero (the default), text is adjusted to the left margin only -- producing what is traditionally called "ragged-right" text.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>The default value for this parameter is zero because justified text looks good only when it is also hyphenated. Without hyphenation, excessive amounts of space often end up getting between words, in order to "pad" lines out to align on the right margin.</p><p>The problem is that groff is not particularly smart about how it does hyphenation; it can end up hyphenating a lot of things that you don't want hyphenated. So, disabling both justification and hyphenation ensures that hyphens won't get inserted where you don't want to them, and you don't end up with lines containing excessive amounts of space between words.</p><p>However, if do you decide to set a non-zero value for the <em class="parameter"><code>man.justify</code></em> parameter (to enable justification), then you should probably also set a non-zero value for <em class="parameter"><code>man.hyphenate</code></em> (to enable hyphenation).</p><p>Yes, these default settings run counter to how most existing man pages are formatted. But there are some notable exceptions, such as the <code class="literal">perl</code> man pages.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="man.hyphenate.computer.inlines.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="general.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="man.break.after.slash.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">man.hyphenate.computer.inlines </td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"> man.break.after.slash</td></tr></table></div></body></html>