1<?xml version="1.0" encoding="UTF-8"?>
2<helpdocument version="1.0">
3
4<!--
5***********************************************************************
6 *
7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8 *
9 * Copyright 2000, 2010 Oracle and/or its affiliates.
10 *
11 * OpenOffice.org - a multi-platform office productivity suite
12 *
13 * This file is part of OpenOffice.org.
14 *
15 * OpenOffice.org is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser General Public License version 3
17 * only, as published by the Free Software Foundation.
18 *
19 * OpenOffice.org is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 * GNU Lesser General Public License version 3 for more details
23 * (a copy is included in the LICENSE file that accompanied this code).
24 *
25 * You should have received a copy of the GNU Lesser General Public License
26 * version 3 along with OpenOffice.org.  If not, see
27 * <http://www.openoffice.org/license.html>
28 * for a copy of the LGPLv3 License.
29 *
30 ************************************************************************
31 -->
32
33
34<meta>
35      <topic id="textswriterguidenumbering_linesxml" indexer="include" status="PUBLISH">
36         <title xml-lang="en-US" id="tit">Adding Line Numbers</title>
37         <filename>/text/swriter/guide/numbering_lines.xhp</filename>
38      </topic>
39   </meta>
40   <body>
41<bookmark xml-lang="en-US" branch="index" id="bm_id3150101"><bookmark_value>line numbers</bookmark_value>
42      <bookmark_value>text; line numbers</bookmark_value>
43      <bookmark_value>paragraphs;line numbers</bookmark_value>
44      <bookmark_value>lines of text; numbering</bookmark_value>
45      <bookmark_value>numbering; lines</bookmark_value>
46      <bookmark_value>numbers; line numbering</bookmark_value>
47      <bookmark_value>marginal numbers on text pages</bookmark_value>
48</bookmark><comment>MW added "paragraphs;"</comment>
49<paragraph xml-lang="en-US" id="hd_id3150101" role="heading" level="1" l10n="U" oldref="3"><variable id="numbering_lines"><link href="text/swriter/guide/numbering_lines.xhp" name="Adding Line Numbers">Adding Line Numbers</link>
50</variable></paragraph>
51      <paragraph xml-lang="en-US" id="par_id3149842" role="paragraph" l10n="CHG" oldref="1">$[officename] can insert line numbers 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.</paragraph>
52      <paragraph xml-lang="en-US" id="par_id7184972" role="note" l10n="NEW">Line numbers are not available in HTML format.</paragraph>
53      <paragraph xml-lang="en-US" id="hd_id3153410" role="heading" level="2" l10n="U" oldref="6">To Add Line Numbers to an Entire Document</paragraph>
54      <list type="ordered">
55         <listitem>
56            <paragraph xml-lang="en-US" id="par_id3149640" role="listitem" l10n="U" oldref="7">Choose <emph>Tools - Line Numbering</emph>.</paragraph>
57         </listitem>
58         <listitem>
59            <paragraph xml-lang="en-US" id="par_id3149612" role="listitem" l10n="U" oldref="8">Select <emph>Show numbering</emph>, and then select the options that you want.</paragraph>
60         </listitem>
61         <listitem>
62            <paragraph xml-lang="en-US" id="par_id3145101" role="listitem" l10n="U" oldref="20">Click <emph>OK</emph>.</paragraph>
63         </listitem>
64      </list>
65      <paragraph xml-lang="en-US" id="hd_id3156241" role="heading" level="2" l10n="U"
66                 oldref="10">To Add Line Numbers to Specific Paragraphs</paragraph>
67      <list type="ordered">
68         <listitem>
69            <paragraph xml-lang="en-US" id="par_id3156264" role="listitem" l10n="U" oldref="21">Choose <emph>Tools - Line Numbering</emph>.</paragraph>
70         </listitem>
71         <listitem>
72            <paragraph xml-lang="en-US" id="par_id3153385" role="listitem" l10n="U" oldref="11">Select <emph>Show numbering</emph>.</paragraph>
73         </listitem>
74         <listitem>
75            <paragraph xml-lang="en-US" id="par_id3154248" role="listitem" l10n="U" oldref="12">Press <switchinline select="sys"><caseinline select="MAC">Command+T</caseinline><defaultinline>F11</defaultinline></switchinline> to open the <emph>Styles and Formatting</emph> window, and then click the <emph>Paragraph Styles</emph> icon.</paragraph>
76         </listitem>
77         <listitem>
78            <paragraph xml-lang="en-US" id="par_id3154853" role="listitem" l10n="U" oldref="13">Right-click the "Default" paragraph style and choose <emph>Modify</emph>.</paragraph>
79            <paragraph xml-lang="en-US" id="par_id3150222" role="listitem" l10n="U" oldref="17">All paragraph styles are based on the "Default" style.</paragraph>
80         </listitem>
81      </list>
82      <list type="ordered" startwith="5">
83         <listitem>
84            <paragraph xml-lang="en-US" id="par_id3150931" role="listitem" l10n="U" oldref="15">Click the <emph>Numbering</emph> tab.</paragraph>
85         </listitem>
86         <listitem>
87            <paragraph xml-lang="en-US" id="par_id3150956" role="listitem" l10n="U" oldref="16">In the <item type="menuitem">Line Numbering</item>
88               <emph/>area, clear the <item type="menuitem">Include this paragraph in line numbering</item>
89               <emph/>check box.</paragraph>
90         </listitem>
91         <listitem>
92            <paragraph xml-lang="en-US" id="par_id3150520" role="listitem" l10n="U" oldref="22">Click <emph>OK</emph>.</paragraph>
93         </listitem>
94         <listitem>
95            <paragraph xml-lang="en-US" id="par_id3151077" role="listitem" l10n="U" oldref="18">Select the paragraph(s) where you want to add the line numbers.</paragraph>
96         </listitem>
97         <listitem>
98            <paragraph xml-lang="en-US" id="par_id3151096" role="listitem" l10n="U" oldref="19">Choose <item type="menuitem">Format - Paragraph</item>, and then click the <item type="menuitem">Numbering</item>
99               <emph/>tab.</paragraph>
100         </listitem>
101         <listitem>
102            <paragraph xml-lang="en-US" id="par_id3153733" role="listitem" l10n="U" oldref="23">Select <emph>Include this paragraph in line numbering</emph>.</paragraph>
103         </listitem>
104         <listitem>
105            <paragraph xml-lang="en-US" id="par_id3153758" role="listitem" l10n="U" oldref="24">Click <emph>OK</emph>.</paragraph>
106         </listitem>
107      </list>
108      <paragraph xml-lang="en-US" id="par_id3146864" role="paragraph" l10n="U" oldref="2">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.</paragraph>
109      <paragraph xml-lang="en-US" id="hd_id3146880" role="heading" level="2" l10n="U"
110                 oldref="25">To Specify the Starting Line Number</paragraph>
111      <list type="ordered">
112         <listitem>
113            <paragraph xml-lang="en-US" id="par_id3150703" role="listitem" l10n="U" oldref="26">Click in a paragraph.</paragraph>
114         </listitem>
115         <listitem>
116            <paragraph xml-lang="en-US" id="par_id3150721" role="listitem" l10n="U" oldref="27">Choose <item type="menuitem">Format - Paragraph</item>, and then click the <item type="menuitem">Numbering</item>
117               <emph/>tab.</paragraph>
118         </listitem>
119         <listitem>
120            <paragraph xml-lang="en-US" id="par_id3148389" role="listitem" l10n="U" oldref="28">Select the <item type="menuitem">Include this paragraph in line numbering</item>
121               <emph/>check box.</paragraph>
122         </listitem>
123         <listitem>
124            <paragraph xml-lang="en-US" id="par_id3148414" role="listitem" l10n="U" oldref="29">Select <item type="menuitem">Restart at the paragraph</item>
125               <emph/>check box.</paragraph>
126         </listitem>
127         <listitem>
128            <paragraph xml-lang="en-US" id="par_id3153779" role="listitem" l10n="U" oldref="30">Enter a line number in the <item type="menuitem">Start with</item>
129               <emph/>box.</paragraph>
130         </listitem>
131         <listitem>
132            <paragraph xml-lang="en-US" id="par_id3153804" role="listitem" l10n="U" oldref="31">Click <emph>OK</emph>.</paragraph>
133         </listitem>
134      </list>
135      <embed href="text/shared/00/00000004.xhp#related"/>
136      <paragraph xml-lang="en-US" id="par_id3153934" role="paragraph" l10n="U" oldref="5"><link href="text/swriter/01/06180000.xhp" name="Tools - Line Numbering">Tools - Line Numbering</link></paragraph>
137      <embed href="text/swriter/guide/using_numbering.xhp#using_numbering"/>
138      <paragraph xml-lang="en-US" id="par_id3153960" role="paragraph" l10n="U" oldref="32"><link href="text/swriter/01/05030800.xhp" name="Format - Paragraph - Numbering">Format - Paragraph - Numbering</link></paragraph>
139      <paragraph xml-lang="en-US" id="par_id2212591" role="paragraph" l10n="NEW"><link href="http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Setting_up_a_Style_for_Numbering_Lines_in_Code_Listings">Wiki page about numbering paragraphs by styles</link></paragraph>
140   </body>
141</helpdocument>