next up previous contents
Next: Smart Quotes Up: Wrap Mode Previous: Wrap Mode   Contents

Formatting paragraphs

Paragraph delimiters are: blank lines, lines that begin with either a percent character, %, or a backslash character \. This definition is ideally suited for editing LATEX documents. However, it is possible for the user to change this definition. See the discussion of the hook, is_paragraph_separator, in the section on hooks for explicit details on how to do this.

The paragraph is formatted according to the indentation of the current line. If the current line is indented, the paragraph will be given the same indentation. The default binding for this function is ESC Q.

In addition, a paragraph may be ``narrowed'' by the narrow_paragraph function which is bound to ESC N by default. This differs from the ordinary format_paragraph function described above in that the right margin is reduced by an amount equal to the indentation of the current line. For example:

      This paragraph is the result of using the
      function ``narrow_paragraph''.  Note how the
      right margin is less here than in the above
      paragraph.

Finally, if either of these functions is called from the keyboard with a prefix argument, the paragraph will be justified as well. For example, pressing ESC 1 ESC N on the previous paragraph yields:

      This paragraph  is  the  result   of   using  the
      function   ``narrow_paragraph''.    Note  how the
      right margin   is less here  than  in   the above
      paragraph.

See the discussion of format_paragraph_hook in the section on hooks for details on how this is implemented.


next up previous contents
Next: Smart Quotes Up: Wrap Mode Previous: Wrap Mode   Contents
John E. Davis 2000-03-11