Adding Line Numbers

LibreOffice can automatically count and add line numbers to the lines in an entire document or to selected paragraphs in your document. Line numbers are included when you print your document. You can specify the line numbering interval, the starting line number, and whether to count blank lines or lines in frames. You can also add a separator between line numbers.

Note Icon

Line numbers are not available in HTML format.


To Add Line Numbers to an Entire Document

  1. Choose Tools - Line Numbering.

  2. Select Show numbering, and then select the options that you want.

  3. Click OK.

To Add Line Numbers to Specific Paragraphs

  1. Choose Tools - Line Numbering.

  2. Select Show numbering.

  3. Press to open the Styles window, and then click the Paragraph Styles icon.

  4. Right-click the "Default" paragraph style and choose Modify.

    All paragraph styles are based on the "Default" style.

  1. Click the Outline & Numbering tab.

  2. In the Line Numbering area, unmark the Include this paragraph in line numbering check box.

  3. Click OK.

  4. Select the paragraph(s) where you want to add the line numbers.

  5. Choose Format - Paragraph, and then click the Outline & Numbering tab.

  6. Select Include this paragraph in line numbering.

  7. Click OK.

You can also create a paragraph style that includes line numbering, and apply it to the paragraphs that you want to add line numbers to.

To Specify the Starting Line Number

  1. Click in a paragraph.

  2. Choose Format - Paragraph, and then click the Outline & Numbering tab.

  3. Mark the Include this paragraph in line numbering check box.

  4. Mark the Restart at the paragraph check box.

  5. Enter a line number in the Start with box.

  6. Click OK.

Tools - Line Numbering

Numbering and Numbering Styles

Format - Paragraph - Numbering

Wiki page about numbering paragraphs by styles