Writing your Document Tutorial 6 - Line Numbering

Overview

This is the sixth tutorial in the Writing your Document series. Previous tutorials in this series cover different tools you can use to write your documents, but you don't have to complete this tutorial series in any particular order.

In this tutorial you will learn how to add line numbers to your document:

  • Activate Line Numbering
  • Configure Line Numbering
  • Style Line Numbering

Tutorial Steps

Line numbering is a Mellel feature that automatically numbers document elements - either lines or paragraphs. Mellel displays the line numbers outside the page margin without affecting the document layout. Line numbers are part of the section style, which means that different sections in the document can have different preferences for the format and style of their line numbering.

Activate Line Numbering

  1. Open the Writing your Document Demo Document practice file.
  2. Scroll down to the Line Numbering Auto-title.
  3. Place your cursor at the beginning of the Line Numbering Auto-title.
  4. Choose Insert > Breaks > Section break from the menu bar.
  5. Scroll down to the bottom of the page and insert another section break before the Breaks Auto-title.
  6. Click inside the current section (after the Line Numbering Auto-title and before the Breaks Auto-title).
  7. Open the Section palette.
  8. Click the Attributes tab.
  9. Use the Line Numbering popup menu to choose Continuous.

    You should now see line numbers to the left of the text in the current section.

Configure Line Numbering

  1. Use the Line Numbering popup menu in the Section palette to choose Edit Attributes.
  2. Use the Count popup menu under Number What to choose Paragraphs.

    Mellel will now count paragraphs instead of lines.

  3. Change the value of the Display every text box to 2.

    Mellel will now only display the numbering of every other paragraph.

  4. Check the Always display for first line checkbox so that the first paragraph is always numbered, no matter the Display every value.

Another very useful feature is to use different numbering channels:

  1. Create two more section breaks in the current page, so that there are three sections in it.
  2. Place your cursor in the middle section.
  3. Use the Line Numbering popup menu in the Section palette to choose Edit Attributes.
  4. Use the Numbering channel popup menu to choose Channel 2.

    This means that Mellel will now number elements in this section in a different numbering stream than the other sections (that have Channel 1 set as their numbering channel), and this channel can be configured completely differently. This enables numbering different elements in the same document.

  5. Use the Type popup menu to choose Roman.
  6. Use the Count popup menu under Number What to choose Lines.
  7. Change the value of the Display every text box to 1.

    Note the different numbering schemes on the same page.

Style Line Numbering

  1. Use the Line Numbering popup menu in the Section palette to choose Edit Attributes.
  2. Click the panel next to the Character attributes button ().
  3. Click the Color well () under Fill.

    The Color window is displayed.

  4. Click the Color Palettes tab ().
  5. Choose Red.

  6. Use the Relative to text popup menu to choose Before & After.
  7. Use the Line type popup menu under Separator to choose a simple solid line (the first option in the popup).

What's Next?

You should now be able to add, configure and style line numbers in your document. Note that this tutorial did not cover all the different options for configuring line numbers, so refer to Line Numbering in the user manual and to our Line Numbering video for more information.

In Writing your Document Tutorial 7 - Breaks you will learn all about inserting breaks in your documents.

Additional Resources